-
Notifications
You must be signed in to change notification settings - Fork 4
Level
Each Level represents a Level of the game. Since the game is in 2.5D a Level consits of 3 Canvas Lavers scrolling indipendent to give more dept to the game. Each of these Layer contain a Tilemap and a Canvas Modulate to build the basic map from tiles and modulate them (if neccessary). Additional Scenes like Sprites may be attached seperately to a node (needs to be created on demand) for each layer. The Mid Layer contains the Klengan-Scene and Nodes to group Enemys, Floors, Interactables and Props.
All Levels must inherit from Level.tscn. For loading each level must have a numberin a form of an integer. The Name of the scene should be like 'Level_<level_number>' and must be placed with its script in an folder at 'res://scenes/levels/<level_number>', e.g. the path to level 0 would be 'res://scenes/levels/0/Level_0.tscn'.
The position on which Klengan should be placed ititially should be at (0, -100) so that the floor of the level is at position (0,0). Everything else should be placed relative to that.
All scenes (derived from Enemy.tscn/Interactable.tscn/Props) should be attached to it.
All Floors (LevelFloor.tscn) should be attached to it. You will also need to add collisions to the sides of the level so the player won't fall off.
© 2019-2020 Klengan the Game - Ein Community-Spiel.
Von Stefans, für Stefans (aber besonders für den Alpha-Stefan)