deprecate old projects & reduce CI workload
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package;
|
||||
|
||||
import asciilib.GameLogic;
|
||||
import asciilib.Graphics;
|
||||
import asciilib.Colors;
|
||||
import asciilib.Assets;
|
||||
import asciilib.Game;
|
||||
import kiss.Prelude;
|
||||
|
||||
@:build(kiss.Kiss.build())
|
||||
class AsciiGameLogic implements GameLogic {}
|
@@ -0,0 +1,8 @@
|
||||
(defNew [])
|
||||
|
||||
(method :Void initialize [:Assets assets]
|
||||
(assets.loadSurface "laptop" AssetPaths.laptop__srf))
|
||||
(method :Void update [:Game game :Float deltaSeconds] 0)
|
||||
(method :Void draw [:Void->Graphics graphics :Assets assets]
|
||||
(oncePerInstance
|
||||
(.blitSurface (graphics) (assets.getSurface "laptop") 0 0)))
|
@@ -0,0 +1,4 @@
|
||||
package;
|
||||
|
||||
@:build(flixel.system.FlxAssets.buildFileReferences("assets", true))
|
||||
class AssetPaths {}
|
13
projects/_deprecated/flixel-ascii-game/source/Main.hx
Normal file
13
projects/_deprecated/flixel-ascii-game/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));
|
||||
}
|
||||
}
|
26
projects/_deprecated/flixel-ascii-game/source/PlayState.hx
Normal file
26
projects/_deprecated/flixel-ascii-game/source/PlayState.hx
Normal file
@@ -0,0 +1,26 @@
|
||||
package;
|
||||
|
||||
import flixel.FlxState;
|
||||
import asciilib.Game;
|
||||
import asciilib.backends.flixel.*;
|
||||
import flixel.graphics.FlxGraphic;
|
||||
|
||||
class PlayState extends FlxState
|
||||
{
|
||||
var game:Game;
|
||||
|
||||
override public function create()
|
||||
{
|
||||
super.create();
|
||||
game = new Game("Ascii Game", 40, 24, 8, 12, new AsciiGameLogic(), new FlxAssetsBackend(),
|
||||
new FlxGraphicsBackend(this, FlxGraphic.fromAssetKey("assets/images/size12.png"),
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz,.;:/?!@#$%^&*()-_=+[]{}~ÁÉÍÑÓÚÜáéíñóúü¡¿0123456789\"'<>|"));
|
||||
}
|
||||
|
||||
override public function update(elapsed:Float)
|
||||
{
|
||||
super.update(elapsed);
|
||||
game.update(elapsed);
|
||||
game.draw();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user