Allow &meta and :Void to co-exist

This commit is contained in:
2021-03-17 11:44:20 -06:00
parent 023648b90e
commit 188c78073d
4 changed files with 20 additions and 17 deletions

View File

@@ -1,9 +1,8 @@
(defmethod new [:Float x :Float y]
(super x y)
(loadGraphic AssetPaths.coin__png false 8 8)
(return))
(loadGraphic AssetPaths.coin__png false 8 8))
(defmethod &override kill []
(defmethod &override :Void kill []
(set alive false)
(FlxTween.tween
this
@@ -13,8 +12,7 @@
0.33
(object
ease FlxEase.circOut
onComplete finishKill))
(return))
onComplete finishKill)))
(defmethod finishKill [_]
(set exists false))