first work

This commit is contained in:
2024-03-07 22:17:10 +01:00
parent af7ecc10e3
commit f83f6989b4
10 changed files with 146 additions and 72 deletions
+21
View File
@@ -0,0 +1,21 @@
extends RigidBody2D
const SPEED = 300.00
func _ready():
randomize()
global_position = Vector2(640, 360)
var x_direction = pow(-1, randi() % 2)
var y_direction = pow(-1, randi() % 2)
await get_tree().create_timer(1.0).timeout
linear_velocity = Vector2(x_direction, y_direction) * SPEED
func _process(delta):
pass