RPG tutorial coins

This commit is contained in:
2021-01-09 14:39:03 -07:00
parent 0c3427cf84
commit 6dd2c8f6a7
7 changed files with 97 additions and 6 deletions

View File

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