mirror of
https://codeberg.org/Melon-Bread/Comets.gd.git
synced 2025-07-06 22:54:36 -04:00
Added Comet sizes
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
extends Area2D
|
||||
|
||||
# TODO: Tweak speed and LifeTimer values
|
||||
# FIXME: Tweak speed and LifeTimer values
|
||||
|
||||
@export var speed := 1400.00
|
||||
var direction := Vector2.UP
|
||||
|
@ -1,7 +1,8 @@
|
||||
extends CharacterBody2D
|
||||
|
||||
# TODO: Add the ability to "warp"
|
||||
# TODO: Tweak speed and shoot time values
|
||||
# FIXME: Tweak speed and shoot time values
|
||||
# FIXME: Tweak Ship's scale
|
||||
|
||||
const BULLET = preload("res://scenes/bullet.tscn")
|
||||
|
||||
@ -41,7 +42,7 @@ func fire_gun(pos : Vector2, rot : float) -> void:
|
||||
bullet.position = pos
|
||||
bullet.rotation = rot
|
||||
$Projectiles.add_child(bullet)
|
||||
$ShootSounds.play()
|
||||
$ShootSound.play()
|
||||
can_shoot = false
|
||||
$ShotCooldown.start()
|
||||
|
||||
|
Reference in New Issue
Block a user