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 +1 -1
- data/VERSION +1 -1
- data/lib/flashsdk/generators/templates/CitrusActionScript3GameState.as +39 -7
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.9
|
@@ -1,9 +1,41 @@
|
|
1
|
-
package
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
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:
|
28
|
+
hash: -597877251
|
29
29
|
segments:
|
30
30
|
- 1
|
31
31
|
- 1
|