Sacred cellar is an isometric action game with strong emphasis on movement for mobile platforms. Using three different kind of movement actions and an attack set for each of it, players must defeat waves of enemies to proceed further into the depths of the sacred cellar.
Levels are created using the map creation tool Tiled.
A custom parser is run during Unity edit-mode to generate levels from tile files, generating the environment, enemies, player and initial potential fields.
A mechanism system was implemented with integration with Tiled, used for different logic purposes, like opening a gate once a key was picked up or once all enemies in a room were eliminated.
Dungeon-like levels, and so the mechanism system, were dropped out of the project once it was seen they were out of the projects scope.
Player moves in a square grid through three different type of movements: walking, dodging and sliding.
Different movement types are achieved making gestures on the movement control panel in-game.
Movement and attack UI are customizable in the options menu for different user preferences.
Each move type has a different attack set, and each attack set has a different attack depending on the attack and movement directions.
A state-machine was implemented for enemy AI using the Unity animation system.
By design enemies needed to move only through adjacent grid squares, so a potential field solution was implemented, using three different potential fields for optimization:
Damage numbers, enemies and other objects are created through object pools for less memory waste.
As with object pooling, sound and music is management centralized for easier usage, limiting the number of sound effects playing and possible global volume control.
Code available on GitHub: Unity-AudioManager