aboutsummaryrefslogtreecommitdiff
path: root/source/Player.hx
diff options
context:
space:
mode:
authorIndrajith K L2020-06-29 03:14:32 +0530
committerIndrajith K L2020-06-29 03:14:32 +0530
commitffd6706cb02fdd37f5f461a37287a5860e69fb6c (patch)
treee5a4b81cc73b710e4ef4312b192021072da000a4 /source/Player.hx
downloaddungeon-client-ffd6706cb02fdd37f5f461a37287a5860e69fb6c.tar.gz
dungeon-client-ffd6706cb02fdd37f5f461a37287a5860e69fb6c.tar.bz2
dungeon-client-ffd6706cb02fdd37f5f461a37287a5860e69fb6c.zip
:tada: Initial Commit
* Integrates Colyseus Server * Implements Basic Player movement * Player Remove/Update Events
Diffstat (limited to 'source/Player.hx')
-rw-r--r--source/Player.hx13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/Player.hx b/source/Player.hx
new file mode 100644
index 0000000..80c3f78
--- /dev/null
+++ b/source/Player.hx
@@ -0,0 +1,13 @@
+package;
+
+import flixel.FlxSprite;
+import flixel.util.FlxColor;
+
+class Player extends FlxSprite
+{
+ public function new(x:Float = 0, y:Float = 0)
+ {
+ super(x, y);
+ loadGraphic("assets/images/player.png");
+ }
+}