diff --git a/project.godot b/project.godot index 80c0093..127a278 100644 --- a/project.godot +++ b/project.godot @@ -29,7 +29,7 @@ _global_script_classes=[{ "language": &"GDScript", "path": "res://scripts/Logic/MapNode.gd" }, { -"base": "StaticBody3D", +"base": "Node", "class": &"Module", "language": &"GDScript", "path": "res://scripts/Modules/Module.gd" diff --git a/scripts/Logic/Game.gd b/scripts/Logic/Game.gd index ed546e8..7b3e39c 100644 --- a/scripts/Logic/Game.gd +++ b/scripts/Logic/Game.gd @@ -32,7 +32,7 @@ func _ready(): p2_node = StartNode p2_train.get_node("CharacterBody3D").is_player1 = false p2_train.is_P1 = false - p1_train.current_speed = 10 + p1_train.current_speed = 8 p1_train.hit.connect(_on_hit_player) p2_train.hit.connect(_on_hit_player) @@ -81,6 +81,7 @@ func _process(delta): tween.tween_property($Control/VSlider2,"scale",Vector2(0,0),1) p1_train.current_speed *= 0.5 p2_train.current_speed *= 0.5 + elif(fight_state == FIGHTING): @@ -106,4 +107,3 @@ func _process(delta): $Control/VSlider.value = p1_train.distance_from_start $Control/VSlider2.value = p2_train.distance_from_start -