various updates
This commit is contained in:
parent
8d6da7bf7e
commit
43b52fcea9
17 changed files with 244 additions and 109 deletions
12
games/space invaders/invaders_bullet.gd
Normal file
12
games/space invaders/invaders_bullet.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
extends Area2D
|
||||
|
||||
@export var speed : float = 100
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
position.y -= delta * speed
|
||||
Loading…
Add table
Add a link
Reference in a new issue