aboutsummaryrefslogtreecommitdiff
path: root/source/core/entities
diff options
context:
space:
mode:
authorIndrajith K L2022-03-22 02:20:02 +0530
committerIndrajith K L2022-03-22 02:20:02 +0530
commitf5e60ac6142f5f3d71f5a6edc581094df840f12e (patch)
tree68b7071b9862082ce3d0943b8b1f76744e411642 /source/core/entities
downloadYEAD-haxe-f5e60ac6142f5f3d71f5a6edc581094df840f12e.tar.gz
YEAD-haxe-f5e60ac6142f5f3d71f5a6edc581094df840f12e.tar.bz2
YEAD-haxe-f5e60ac6142f5f3d71f5a6edc581094df840f12e.zip
Initial Commit
* Basic Entity System Implemented
Diffstat (limited to 'source/core/entities')
-rw-r--r--source/core/entities/Player.hx20
-rw-r--r--source/core/entities/Sekeleton.hx20
2 files changed, 40 insertions, 0 deletions
diff --git a/source/core/entities/Player.hx b/source/core/entities/Player.hx
new file mode 100644
index 0000000..a66271c
--- /dev/null
+++ b/source/core/entities/Player.hx
@@ -0,0 +1,20 @@
+package core.entities;
+
+import core.enums.EnityTypes.EntityType;
+import flixel.util.FlxColor;
+import utils.Debug;
+
+class Player extends Entity
+{
+ public function new(x:Float, y:Float)
+ {
+ super(x, y, EntityType.PLAYER);
+ makeGraphic(16, 16, FlxColor.LIME);
+ Debug.log("Player Spawned");
+ }
+
+ override public function update(dt:Float)
+ {
+ super.update(dt);
+ }
+}
diff --git a/source/core/entities/Sekeleton.hx b/source/core/entities/Sekeleton.hx
new file mode 100644
index 0000000..b5039b2
--- /dev/null
+++ b/source/core/entities/Sekeleton.hx
@@ -0,0 +1,20 @@
+package core.entities;
+
+import core.enums.EnityTypes.EntityType;
+import flixel.util.FlxColor;
+import utils.Debug;
+
+class Skeleton extends Entity
+{
+ public function new(x:Float, y:Float)
+ {
+ super(x, y, EntityType.ENEMY);
+ makeGraphic(16, 16, FlxColor.RED);
+ Debug.log("Skeleton Spawned");
+ }
+
+ override public function update(dt:Float)
+ {
+ super.update(dt);
+ }
+}