kiss new-flixel-project
This commit is contained in:
4
template/source/AssetPaths.hx
Normal file
4
template/source/AssetPaths.hx
Normal file
@@ -0,0 +1,4 @@
|
||||
package;
|
||||
|
||||
@:build(flixel.system.FlxAssets.buildFileReferences("assets", true))
|
||||
class AssetPaths {}
|
13
template/source/Main.hx
Normal file
13
template/source/Main.hx
Normal file
@@ -0,0 +1,13 @@
|
||||
package;
|
||||
|
||||
import flixel.FlxGame;
|
||||
import openfl.display.Sprite;
|
||||
|
||||
class Main extends Sprite
|
||||
{
|
||||
public function new()
|
||||
{
|
||||
super();
|
||||
addChild(new FlxGame(0, 0, PlayState));
|
||||
}
|
||||
}
|
6
template/source/PlayState.hx
Normal file
6
template/source/PlayState.hx
Normal file
@@ -0,0 +1,6 @@
|
||||
package;
|
||||
|
||||
import flixel.FlxState;
|
||||
|
||||
@:build(kiss.Kiss.build())
|
||||
class PlayState extends FlxState {}
|
5
template/source/PlayState.kiss
Normal file
5
template/source/PlayState.kiss
Normal file
@@ -0,0 +1,5 @@
|
||||
(method &override :Void create []
|
||||
(super.create))
|
||||
|
||||
(method &override :Void update [:Float elapsed]
|
||||
(super.update elapsed))
|
Reference in New Issue
Block a user