Initial commit

This commit is contained in:
ItsDrike 2025-02-27 23:50:12 +01:00
commit a0b34dd454
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
54 changed files with 1826 additions and 0 deletions

11
scripts/boost.gd Normal file
View file

@ -0,0 +1,11 @@
extends Area2D
@export var boost_strength: float = 450.0 # Acceleration applied over time
@onready var audio_stream_player: AudioStreamPlayer2D = $AudioStreamPlayer2D
func _on_body_entered(body: Node2D) -> void:
if body is CharacterBody2D:
var direction = Vector2.RIGHT.rotated(rotation)
body.velocity += direction * boost_strength
audio_stream_player.play()