Camera system YAY!!!
This commit is contained in:
@@ -1,23 +1,20 @@
|
||||
class_name cGame
|
||||
|
||||
var night: cNight
|
||||
var rooms: Dictionary = {}
|
||||
var enemies: Dictionary = {}
|
||||
var locations: Dictionary = {}
|
||||
var cameras: Array = []
|
||||
|
||||
var nightStarted = false
|
||||
var nightCompleted = false
|
||||
|
||||
func build_rooms():
|
||||
for id_str in locations.keys():
|
||||
var data = locations[id_str]
|
||||
func make_cameras():
|
||||
var camera
|
||||
for key in Global.cameras:
|
||||
print(key)
|
||||
camera = cCamera.new(key)
|
||||
cameras.append(camera)
|
||||
|
||||
var room = cRoom.new()
|
||||
room.id = int(id_str)
|
||||
room.name = data.name
|
||||
room.connections = data.connections
|
||||
|
||||
rooms[room.id] = room
|
||||
|
||||
func make_enemies():
|
||||
var eConstruct = npcConstruct.new()
|
||||
@@ -31,11 +28,10 @@ func make_enemies():
|
||||
"yoshida": eYoshida
|
||||
}
|
||||
|
||||
func _setup() -> Array:
|
||||
func _setup():
|
||||
print("Setting up Game")
|
||||
night = cNight.new()
|
||||
locations = Global.locations
|
||||
build_rooms()
|
||||
|
||||
make_cameras()
|
||||
make_enemies()
|
||||
print([rooms, enemies])
|
||||
return [rooms, enemies]
|
||||
|
||||
Reference in New Issue
Block a user