13 lines
300 B
GDScript3
13 lines
300 B
GDScript3
|
extends RigidBody2D
|
||
|
|
||
|
|
||
|
# Called when the node enters the scene tree for the first time.
|
||
|
func _ready() -> void:
|
||
|
$Sprite.frame = randi_range(0,4)
|
||
|
position.x += randi_range(-10,10)
|
||
|
|
||
|
|
||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||
|
func _process(delta: float) -> void:
|
||
|
pass
|