20 lines
281 B
GDScript3
20 lines
281 B
GDScript3
|
extends Entity
|
||
|
class_name Character
|
||
|
|
||
|
enum States {
|
||
|
Alive,
|
||
|
Dead
|
||
|
}
|
||
|
|
||
|
export var Health = 100
|
||
|
var State = States.Alive
|
||
|
|
||
|
func _init():
|
||
|
gravity_scale = 10
|
||
|
mass = 10
|
||
|
|
||
|
|
||
|
# Called when the node enters the scene tree for the first time.
|
||
|
func _ready():
|
||
|
pass # Replace with function body.
|