init
This commit is contained in:
commit
18efc36800
161 changed files with 5008 additions and 0 deletions
21
scripts/effects/lights.gd
Normal file
21
scripts/effects/lights.gd
Normal file
|
@ -0,0 +1,21 @@
|
|||
extends Node2D
|
||||
|
||||
@export var light1: Sprite2D
|
||||
@export var light2: Sprite2D
|
||||
@export var light3: Sprite2D
|
||||
@export var light4: Sprite2D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
light1.visible = false
|
||||
light2.visible = false
|
||||
light3.visible = false
|
||||
light4.visible = false
|
||||
|
||||
|
||||
func _process(_delta):
|
||||
light1.visible = Input.is_action_pressed("BTN_1")
|
||||
light2.visible = Input.is_action_pressed("BTN_2")
|
||||
light3.visible = Input.is_action_pressed("BTN_3")
|
||||
light4.visible = Input.is_action_pressed("BTN_4")
|
Loading…
Add table
Add a link
Reference in a new issue