From f5e60ac6142f5f3d71f5a6edc581094df840f12e Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Tue, 22 Mar 2022 02:20:02 +0530 Subject: Initial Commit * Basic Entity System Implemented --- source/levels/Level1.hx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 source/levels/Level1.hx (limited to 'source/levels') diff --git a/source/levels/Level1.hx b/source/levels/Level1.hx new file mode 100644 index 0000000..1bf927f --- /dev/null +++ b/source/levels/Level1.hx @@ -0,0 +1,22 @@ +package levels; + +import core.entities.Player; +import core.entities.Sekeleton.Skeleton; +import flixel.FlxState; + +class Level1 extends FlxState +{ + override public function create() + { + super.create(); + add(new Player(12, 12)); + add(new Skeleton(0, 1)); + add(new Skeleton(12, 32)); + add(new Skeleton(56, 12)); + } + + override public function update(dt:Float) + { + super.update(dt); + } +} -- cgit v1.2.3