h4oflashsdk 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- h4oflashsdk (1.0.8)
4
+ h4oflashsdk (1.0.9)
5
5
  sprout (>= 1.1.18.pre)
6
6
 
7
7
  GEM
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.8
1
+ 1.0.9
@@ -1,9 +1,41 @@
1
- package <%= package_name %>{
2
-
3
- public class <%= class_name %> {
4
-
5
- public function <%= class_name %>() {
1
+ package states
2
+ {
3
+ import com.citrusengine.core.*;
4
+ import com.citrusengine.physics.box2d.*;
5
+ import com.citrusengine.objects.platformer.box2d.*;
6
+ import com.citrusengine.math.*;
7
+ import flash.display.*;
8
+
9
+ public class GameState extends State
10
+ {
11
+
12
+ public function GameState()
13
+ {
14
+ super();
15
+ }
16
+
17
+ override public function initialize():void
18
+ {
19
+ super.initialize();
20
+
21
+ var box2D:Box2D=new Box2D("box2d");
22
+ add(box2D);
23
+ box2D.visible=true;
24
+
25
+ var hero:Hero=new Hero('hero');
26
+
27
+
28
+ add(hero);
29
+ hero.x=320;
30
+ hero.y=200;
31
+
32
+ view.setupCamera(hero, new MathVector(400,300));
33
+
34
+ var platform:Platform=new Platform('platform',{width: 1000, height: 20});
35
+ add(platform);
36
+ platform.x=-100;
37
+ platform.y=400;
38
+
6
39
  }
7
40
  }
8
- }
9
-
41
+ }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: h4oflashsdk
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 8
10
- version: 1.0.8
9
+ - 9
10
+ version: 1.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Guenael LABOIS - H4o Studio
@@ -25,7 +25,7 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- hash: 1063137592
28
+ hash: -597877251
29
29
  segments:
30
30
  - 1
31
31
  - 1