mirror of
https://github.com/kristoferssolo/FuncIt.git
synced 2025-10-21 19:30:35 +00:00
Minor changes
This commit is contained in:
parent
bd3e44cc0f
commit
43b48daddd
1
.gitignore
vendored
1
.gitignore
vendored
@ -16,3 +16,4 @@ data_*/
|
||||
test/
|
||||
build/*
|
||||
builds/*
|
||||
*.zip
|
||||
@ -140,7 +140,7 @@ func _physics_process(delta) -> void:
|
||||
if "0" in VDIR:
|
||||
if VDIR["1"]["0"]["ray"]["length"] - dimensions["collider"]["radius"] > 2 and jumpState == false:
|
||||
gravityVector = (VDIR["1"]["0"]["ray"]["position"] - user_state["global_position"]).normalized()
|
||||
print("Gravity on")
|
||||
#print("Gravity on")
|
||||
elif jumpState == false:
|
||||
gravityVector = Vector2(0,0)
|
||||
movementVector = Vector2(0,0)
|
||||
|
||||
@ -4,6 +4,6 @@ sync func return_to_lobby():
|
||||
get_tree().change_scene("res://source/scenes/GUI/main_menu.tscn")
|
||||
|
||||
|
||||
#func _on_win_timer_timeout():
|
||||
# if get_tree().is_network_server():
|
||||
# rpc("return_to_lobby")
|
||||
func _on_win_timer_timeout():
|
||||
if get_tree().is_network_server():
|
||||
rpc("return_to_lobby")
|
||||
|
||||
@ -128,7 +128,6 @@ script = ExtResource( 2 )
|
||||
script = ExtResource( 6 )
|
||||
|
||||
[node name="Control" type="Control" parent="game_UI"]
|
||||
visible = false
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
__meta__ = {
|
||||
@ -156,6 +155,6 @@ __meta__ = {
|
||||
}
|
||||
|
||||
[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"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user