First godot-ci commit

This commit is contained in:
2025-05-13 13:29:35 +02:00
commit d3e99bc70e
47 changed files with 3158 additions and 0 deletions

25
scripts/Player.gd Executable file
View File

@@ -0,0 +1,25 @@
extends "res://scripts/ColoredEntity.gd"
signal unblock
var blocked_controls: bool = true
func _ready():
self.highlight()
func _input(event):
if blocked_controls:
return
if Input.is_action_just_pressed("swap"):
GLOBAL.swap_nodes_color()
if Input.is_action_pressed("fire"):
self.shoot_bullet()
func shoot_bullet() -> void:
$Cannon.shoot()
# --- Signals ---
func _on_Player_unblock():
self.blocked_controls = false