Maped out concepts that need to be worked on

This commit is contained in:
2024-05-12 01:17:58 -04:00
parent c7ce3be782
commit 604b631bfb
5 changed files with 31 additions and 4 deletions

View File

@ -1,9 +1,10 @@
extends Area2D
# TODO: Tweak speed and LifeTimer values
@export var speed := 1400.00
var direction := Vector2.UP
func _physics_process(delta: float) -> void:
# Movement
position += direction.rotated(rotation) * speed * delta

View File

@ -1,5 +1,8 @@
extends CharacterBody2D
# TODO: Add the ability to "warp"
# TODO: Tweak speed and shoot time values
const BULLET = preload("res://scenes/bullet.tscn")
@export var accleration := 90.0
@ -43,6 +46,7 @@ func fire_gun(pos : Vector2, rot : float) -> void:
$ShotCooldown.start()
func crash():
# TODO: Maybe emit a signal that the main game node listens for "game over" state
$AnimationPlayer.play("crash")