Add a map-loader sctipt
This commit is contained in:
22
scenes/maps/base/bullet_spawner/bullet_controller.gd
Normal file
22
scenes/maps/base/bullet_spawner/bullet_controller.gd
Normal file
@ -0,0 +1,22 @@
|
||||
extends Node
|
||||
|
||||
# This script shoud be able to find the player
|
||||
|
||||
var players: Dictionary = {}
|
||||
|
||||
func spawn_a_bullet():
|
||||
# -- Get
|
||||
pass
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
var world: MapController = find_parent("Map")
|
||||
# Get all the players on the server and add
|
||||
# corresponding nodes to them
|
||||
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
8
scenes/maps/base/bullet_spawner/bullet_spawner.tscn
Normal file
8
scenes/maps/base/bullet_spawner/bullet_spawner.tscn
Normal file
@ -0,0 +1,8 @@
|
||||
[gd_scene format=3 uid="uid://sh5diukewgs5"]
|
||||
|
||||
[node name="BulletSpawner" type="Node3D"]
|
||||
|
||||
[node name="MultiplayerSpawner" type="MultiplayerSpawner" parent="."]
|
||||
spawn_path = NodePath("../Node3D")
|
||||
|
||||
[node name="Node3D" type="Node3D" parent="."]
|
Reference in New Issue
Block a user