bullet hell, asteroid and reaction done,. i think ill drop space invaders , 40 minutes left

This commit is contained in:
Tabby 2025-05-17 17:20:23 +10:00
parent 82652730f2
commit c000461fd6
23 changed files with 377 additions and 23 deletions

View file

@ -0,0 +1,20 @@
extends Area2D
var speed : float = 50
var target_pos : Vector2
@export var sprite : Sprite2D
var spin_speed : float = 50
# 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:
sprite.rotation_degrees += spin_speed * delta
global_position = global_position.move_toward(target_pos, delta * speed)
func _on_area_entered(area: Area2D) -> void:
queue_free()