Port the template's classes
This commit is contained in:
@@ -35,6 +35,8 @@
|
|||||||
|
|
||||||
<haxelib name="flixel" />
|
<haxelib name="flixel" />
|
||||||
|
|
||||||
|
<haxelib name="kiss" />
|
||||||
|
|
||||||
<!--In case you want to use the addons package-->
|
<!--In case you want to use the addons package-->
|
||||||
<!--<haxelib name="flixel-addons" />-->
|
<!--<haxelib name="flixel-addons" />-->
|
||||||
|
|
||||||
|
|||||||
@@ -3,11 +3,5 @@ package;
|
|||||||
import flixel.FlxGame;
|
import flixel.FlxGame;
|
||||||
import openfl.display.Sprite;
|
import openfl.display.Sprite;
|
||||||
|
|
||||||
class Main extends Sprite
|
@:build(kiss.Kiss.build("source/Main.kiss"))
|
||||||
{
|
class Main extends Sprite {}
|
||||||
public function new()
|
|
||||||
{
|
|
||||||
super();
|
|
||||||
addChild(new FlxGame(0, 0, PlayState));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
4
projects/flixel/rpg-tutorial/source/Main.kiss
Normal file
4
projects/flixel/rpg-tutorial/source/Main.kiss
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
(defmethod new []
|
||||||
|
(super)
|
||||||
|
(addChild (new FlxGame 0 0 PlayState))
|
||||||
|
(return))
|
||||||
@@ -2,15 +2,5 @@ package;
|
|||||||
|
|
||||||
import flixel.FlxState;
|
import flixel.FlxState;
|
||||||
|
|
||||||
class PlayState extends FlxState
|
@:build(kiss.Kiss.build("source/PlayState.kiss"))
|
||||||
{
|
class PlayState extends FlxState {}
|
||||||
override public function create()
|
|
||||||
{
|
|
||||||
super.create();
|
|
||||||
}
|
|
||||||
|
|
||||||
override public function update(elapsed:Float)
|
|
||||||
{
|
|
||||||
super.update(elapsed);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
7
projects/flixel/rpg-tutorial/source/PlayState.kiss
Normal file
7
projects/flixel/rpg-tutorial/source/PlayState.kiss
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
(defmethod &override create []
|
||||||
|
(super.create)
|
||||||
|
(return))
|
||||||
|
|
||||||
|
(defmethod &override update [:Float elapsed]
|
||||||
|
(super.update elapsed)
|
||||||
|
(return))
|
||||||
Reference in New Issue
Block a user