Level Design - Creating Levels

3 - World

This is the controller of many level chunks which coordinates the tear down and instantiation of a new Level Chunk.

Node Tree

World_001 // Root Node for World World_XXX (Based on Chapter)
	GameplayCamera // Used to follow the Player/Pan to a new Level
	DebugCamera // Used for debugging (Roaming around Map in Debug mode)
	LevelChunks // Container for adding/removing Level chunks and transitioning/fading between
		// You would only have 2 chunks at any one time that are freeing or creating then swapping
		LevelChunk_001 // Instantiated Chunk (2 - Level Chunk)
		LevelChunk_002 // Instantiated Chunk (2 - Level Chunk)
	LootGenerators // Used to generate random items from Bushes and Chests
	LevelChunkCoordinator // Used to coordinate the swap out of level chunks
	FadeEffect // Used to fade in or out to Black (LevelChunk swapping)
	DayNightCycle // Controls the visual time of day in the game

Code Location

tribe-of-the-accord/
	src/
		Worlds/
			World_001.tscn // Chapter 1 World
			World_002.tscn // Chapter 2 World
			World_003.tscn // Chapter 3 World
			World_004.tscn // Chapter 4 World
			// ...

Template

These are the files used to generate the source code above 'Code Location'

tribe-of-the-accord/
	src/
		TemplatesWorlds/ // None of these files are to be used directly, they should be created by the ChapterGenerator
			AbstractWorld.tscn // This is the scene that the World template 'Inherits' from.
			TemplateWorld.tscn // This is the template scene used to create World scenes