Completely change naming conventions of field forms and definition macros. Close #32

This commit is contained in:
2021-07-24 14:22:10 -06:00
parent 9d6a4b2054
commit f5a5cdfb40
67 changed files with 433 additions and 447 deletions

View File

@@ -1,6 +1,6 @@
(defvar &inline :Float SPEED 200)
(var &inline :Float SPEED 200)
(defmethod new [:Float x :Float y]
(method new [:Float x :Float y]
(super x y)
(loadGraphic AssetPaths.player__png true 16 16)
(setFacingFlip FlxObject.LEFT false false)
@@ -12,7 +12,7 @@
(setSize 8 8)
(offset.set 4 4))
(defmethod :Void updateMovement []
(method :Void updateMovement []
(let [[&mut up &mut down &mut left &mut right]
(map [[UP W] [DOWN S] [LEFT A] [RIGHT D]] FlxG.keys.anyPressed)]
(when (and up down)
@@ -62,6 +62,6 @@
(otherwise
(return))))))
(defmethod &override update [:Float elapsed]
(method &override update [:Float elapsed]
(updateMovement)
(super.update elapsed))
(super.update elapsed))