Der Exports-Ordner zu .gitignore hinzugefügt, Checkpoints temporär deaktiviert
This commit is contained in:
parent
507a49cb8b
commit
7b91967e38
2 changed files with 11 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
# Godot 4+ specific ignores
|
# Godot 4+ specific ignores
|
||||||
.godot/
|
.godot/
|
||||||
/android/
|
/android/
|
||||||
|
Exports
|
||||||
|
|
20
player.gd
20
player.gd
|
@ -14,11 +14,11 @@ var levelcore: Node
|
||||||
var checkpoint: Vector3
|
var checkpoint: Vector3
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
|
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
|
||||||
while not get_node_or_null("/Level_Core/LevelCore"):
|
# while not get_node_or_null("/Level_Core/LevelCore"):
|
||||||
await get_tree().process_frame # Yield until the next frame
|
# await get_tree().process_frame # Yield until the next frame
|
||||||
levelcore = get_node("/Level_Core/LevelCore")
|
# levelcore = get_node("/Level_Core/LevelCore")
|
||||||
checkpoint = levelcore.checkpoint
|
# checkpoint = levelcore.checkpoint
|
||||||
var player = get_node("/player/Player")
|
# var player = get_node("/player/Player")
|
||||||
|
|
||||||
# If touches object
|
# If touches object
|
||||||
var touched = false
|
var touched = false
|
||||||
|
@ -32,14 +32,14 @@ func teleport_to_checkpoint():
|
||||||
print("checkpoint ", checkpoint, " does not exist")
|
print("checkpoint ", checkpoint, " does not exist")
|
||||||
|
|
||||||
func _integrate_forces(state):
|
func _integrate_forces(state):
|
||||||
while not get_node_or_null("/root/Level_Core/LevelCore"):
|
# while not get_node_or_null("/Level_Core/LevelCore"):
|
||||||
await get_tree().process_frame
|
# await get_tree().process_frame
|
||||||
levelcore = get_node("/root/Level_Core/LevelCore")
|
# levelcore = get_node("/Level_Core/LevelCore")
|
||||||
print("levelcore set!")
|
# print("levelcore set!")
|
||||||
for i in range(state.get_contact_count()):
|
for i in range(state.get_contact_count()):
|
||||||
var collider = state.get_contact_collider_object(i)
|
var collider = state.get_contact_collider_object(i)
|
||||||
if collider is StaticBody3D and collider.name == "StaticBody3D_S1":
|
if collider is StaticBody3D and collider.name == "StaticBody3D_S1":
|
||||||
checkpoint = levelcore.checkpoint1
|
#checkpoint = levelcore.checkpoint1
|
||||||
print("chat we hit the checkpoint one")
|
print("chat we hit the checkpoint one")
|
||||||
|
|
||||||
#func _integrate_forces(state):
|
#func _integrate_forces(state):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue