Minor changes

This commit is contained in:
Kristofers Solo 2021-11-05 19:28:15 +02:00
parent bd3e44cc0f
commit 43b48daddd
4 changed files with 7 additions and 7 deletions

3
.gitignore vendored
View File

@ -15,4 +15,5 @@ data_*/
*.log *.log
test/ test/
build/* build/*
builds/* builds/*
*.zip

View File

@ -140,7 +140,7 @@ func _physics_process(delta) -> void:
if "0" in VDIR: if "0" in VDIR:
if VDIR["1"]["0"]["ray"]["length"] - dimensions["collider"]["radius"] > 2 and jumpState == false: if VDIR["1"]["0"]["ray"]["length"] - dimensions["collider"]["radius"] > 2 and jumpState == false:
gravityVector = (VDIR["1"]["0"]["ray"]["position"] - user_state["global_position"]).normalized() gravityVector = (VDIR["1"]["0"]["ray"]["position"] - user_state["global_position"]).normalized()
print("Gravity on") #print("Gravity on")
elif jumpState == false: elif jumpState == false:
gravityVector = Vector2(0,0) gravityVector = Vector2(0,0)
movementVector = Vector2(0,0) movementVector = Vector2(0,0)

View File

@ -4,6 +4,6 @@ sync func return_to_lobby():
get_tree().change_scene("res://source/scenes/GUI/main_menu.tscn") get_tree().change_scene("res://source/scenes/GUI/main_menu.tscn")
#func _on_win_timer_timeout(): func _on_win_timer_timeout():
# if get_tree().is_network_server(): if get_tree().is_network_server():
# rpc("return_to_lobby") rpc("return_to_lobby")

View File

@ -128,7 +128,6 @@ script = ExtResource( 2 )
script = ExtResource( 6 ) script = ExtResource( 6 )
[node name="Control" type="Control" parent="game_UI"] [node name="Control" type="Control" parent="game_UI"]
visible = false
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
__meta__ = { __meta__ = {
@ -156,6 +155,6 @@ __meta__ = {
} }
[node name="win_timer" type="Timer" parent="game_UI/Control/winner"] [node name="win_timer" type="Timer" parent="game_UI/Control/winner"]
wait_time = 2.0 wait_time = 4.0
[connection signal="timeout" from="game_UI/Control/winner/win_timer" to="game_UI/Control/winner" method="_on_win_timer_timeout"] [connection signal="timeout" from="game_UI/Control/winner/win_timer" to="game_UI/Control/winner" method="_on_win_timer_timeout"]