Added aliens and glow on the numbers

This commit is contained in:
2024-05-08 19:51:02 +01:00
parent 6e2721bef8
commit bff1c6864b
66 changed files with 1552 additions and 135 deletions

View File

@@ -47,7 +47,7 @@ func _show_block() -> void:
tween.tween_property($TextureRect, "modulate", original_color, 0.25)
visible = true
if not pass_mode:
collision_layer = 1
collision_layer = 0b10001
func type(base : int, color : Color) -> void:
@@ -78,15 +78,13 @@ func type(base : int, color : Color) -> void:
func _on_area_2d_body_entered(body: Node2D) -> void:
if not pass_mode: return
if body is Ball:
print("Area hit ball")
body._on_body_exited(self)
pass # Replace with function body.
func enable_pass() -> void:
collision_layer = 0
collision_layer = 0b10000
pass_mode = true
func disable_pass() -> void:
if visible:
collision_layer = 1
collision_layer = 0b10001
pass_mode = false