Port the template's classes
This commit is contained in:
@@ -3,11 +3,5 @@ package;
|
||||
import flixel.FlxGame;
|
||||
import openfl.display.Sprite;
|
||||
|
||||
class Main extends Sprite
|
||||
{
|
||||
public function new()
|
||||
{
|
||||
super();
|
||||
addChild(new FlxGame(0, 0, PlayState));
|
||||
}
|
||||
}
|
||||
@:build(kiss.Kiss.build("source/Main.kiss"))
|
||||
class Main extends Sprite {}
|
||||
|
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;
|
||||
|
||||
class PlayState extends FlxState
|
||||
{
|
||||
override public function create()
|
||||
{
|
||||
super.create();
|
||||
}
|
||||
|
||||
override public function update(elapsed:Float)
|
||||
{
|
||||
super.update(elapsed);
|
||||
}
|
||||
}
|
||||
@:build(kiss.Kiss.build("source/PlayState.kiss"))
|
||||
class PlayState extends FlxState {}
|
||||
|
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