h4oflashsdk 1.0.9 → 1.0.10
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/CitrusActionScript3MainClass.as +8 -34
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.10
|
@@ -1,41 +1,15 @@
|
|
1
|
-
package
|
1
|
+
package <%= package_name %>
|
2
2
|
{
|
3
3
|
import com.citrusengine.core.*;
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
import flash.display.*;
|
8
|
-
|
9
|
-
public class GameState extends State
|
4
|
+
|
5
|
+
[SWF(width='800', height='600')]
|
6
|
+
public class <%= class_name %> extends CitrusEngine
|
10
7
|
{
|
11
|
-
|
12
|
-
public function GameState()
|
8
|
+
public function <%= class_name %>()
|
13
9
|
{
|
14
10
|
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
|
-
|
11
|
+
state=new GameState();
|
39
12
|
}
|
40
13
|
}
|
41
|
-
}
|
14
|
+
}
|
15
|
+
|
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: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 10
|
10
|
+
version: 1.0.10
|
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: -409877976
|
29
29
|
segments:
|
30
30
|
- 1
|
31
31
|
- 1
|