45193fc27f
- performance improvements - shake effect - keyboard support
13 lines
339 B
GDScript
13 lines
339 B
GDScript
extends RigidBody2D
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
$Sprite.frame = randi_range(0,12)
|
|
position.x += randi_range(-10,10)
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta: float) -> void:
|
|
if global_position.y > 100:
|
|
queue_free()
|