basics of ai, ready for soundeffects

This commit is contained in:
Jonas Mucke
2020-04-19 17:41:57 +02:00
parent ac97b3b49e
commit 78af384563
6 changed files with 90 additions and 64 deletions

View File

@@ -37,6 +37,8 @@ var experience := 0.0
func _debug_update():
debug_label.text = str(player_stats.health) + "/" + str(player_stats.max_health) + " HP\n" + str(currency) + ""
func _ready():
grid = get_tree().current_scene.get_child(3)
func _physics_process(delta):
totaldamage += damage_per_second*delta

View File

@@ -619,7 +619,10 @@ font_data = ExtResource( 6 )
[node name="Player" type="KinematicBody2D"]
script = ExtResource( 1 )
debug = null
ROLL_SPEED = null
FRICTION = 270
ACCELERATION = null
[node name="Kind" parent="." instance=ExtResource( 7 )]
kind = 1