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/core/entities/Sekeleton.hx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 source/core/entities/Sekeleton.hx (limited to 'source/core/entities/Sekeleton.hx') 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); + } +} -- cgit v1.2.3