mirror of
https://codeberg.org/Melon-Bread/Comets.gd.git
synced 2025-07-06 22:54:36 -04:00
Maped out concepts that need to be worked on
This commit is contained in:
@ -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
|
||||
|
@ -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")
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user