Tabs? Spaces?! WHO KNOWS!

This commit is contained in:
Henry 2025-08-24 15:45:41 +01:00
parent ba3630f69b
commit 3d047f3a8b
2 changed files with 7 additions and 3 deletions

2
.gitignore vendored
View file

@ -1,4 +1,6 @@
# Godot 4+ specific ignores
.godot/
/android/
# Directories
.zed/

View file

@ -5,8 +5,10 @@ const SPEED : float = 300.0
func _ready() -> void:
initialize()
func _physics_process(_delta: float) -> void:
move_and_slide()
func _physics_process(delta: float) -> void:
var collision = move_and_collide(velocity * _delta)
if collision:
velocity = velocity.bounce(collision.get_normal())
func initialize():
var extra_offset = 0.0 if randf() < 0.5 else PI