godot squash the creeps player movement

This commit is contained in:
2021-09-04 13:39:10 -06:00
parent 217ea99717
commit 8aed0fe77f
9 changed files with 64 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
package;
import kiss.Prelude;
@:build(kiss.Kiss.build())
class Player extends KinematicBody {
// Don't forget to rebuild the project so the editor knows about the new export variable.
// TODO is it possible to provide the export annotation from .kiss?
// How fast the player moves in meters per second.
@:export public var speed = 14;
// The downward acceleration when in the air, in meters per second squared.
@:export public var fallAcceleration = 75;
}