16 lines
320 B
GDScript
16 lines
320 B
GDScript
extends Node
|
|
|
|
@onready var game: GameController = $".."
|
|
#var bullet = preload("res://scenes/bullet.tscn")
|
|
|
|
func buildLevel() -> void:
|
|
pass
|
|
|
|
func _ready() -> void:
|
|
buildLevel()
|
|
|
|
func makeBullet(pos, dir) -> void:
|
|
print("pos: %s \n dir: %s" % [pos, dir])
|
|
var bullet = Bullet.create(pos, dir)
|
|
game.add_child(bullet)
|