godot squash the creeps player movement
This commit is contained in:
14
projects/godot-squash-the-creeps-3d/scripts/Player.hx
Normal file
14
projects/godot-squash-the-creeps-3d/scripts/Player.hx
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user