Added aliens and glow on the numbers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user