first Prototype
This commit is contained in:
parent
89503407e7
commit
c887a2168c
78 changed files with 2494 additions and 2 deletions
17
scenes/spaceShip/timeGhost/timeghost.gd
Normal file
17
scenes/spaceShip/timeGhost/timeghost.gd
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
class_name TimeGhost extends "res://scenes/spaceShip/spaceShip.gd"
|
||||
|
||||
@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()
|
||||
|
||||
func setSpaceship(_spaceShip: Spaceship):
|
||||
spaceShip = _spaceShip
|
||||
speed = spaceShip.speed
|
||||
acceleration = spaceShip.acceleration
|
||||
global_position = spaceShip.global_position
|
||||
sprite.texture = spaceShip.sprite.texture
|
||||
Loading…
Add table
Add a link
Reference in a new issue