added Graphics and sound Effects and more overhauls
This commit is contained in:
parent
c887a2168c
commit
b9d4288900
214 changed files with 3378 additions and 198 deletions
|
|
@ -1,11 +1,15 @@
|
|||
class_name TimeGhost extends "res://scenes/spaceShip/spaceShip.gd"
|
||||
|
||||
@onready var damageArea = $DamageArea
|
||||
|
||||
@export var spaceShip: Spaceship = null
|
||||
|
||||
|
||||
#func _init(_speed: int, _acceleration: float) -> void:
|
||||
# speed = _speed
|
||||
#acceleration = _acceleration
|
||||
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
move_and_slide()
|
||||
|
||||
|
|
@ -15,3 +19,8 @@ func setSpaceship(_spaceShip: Spaceship):
|
|||
acceleration = spaceShip.acceleration
|
||||
global_position = spaceShip.global_position
|
||||
sprite.texture = spaceShip.sprite.texture
|
||||
|
||||
|
||||
func _on_damage_area_area_entered(area: Area2D) -> void:
|
||||
if area.get_parent().is_in_group("player"):
|
||||
damageArea.damageHurtArea(area, Globals.getPlayer().maxHealth)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue