DevLog4
Ultra Shapes » Devlog
Dev Log 4: Monster Creation System and Random Encounter System
Overview:
This update covers the addition of two major systems: the Monster Creation System and the Random Encounter System. The Monster Creation System allows for flexible monster generation using ScriptableObjects
, while the Random Encounter System introduces chance-based battles as players explore designated areas, adding excitement and unpredictability to the gameplay.
Details:
- Monster Creation with ScriptableObjects:
- Developed a
MonsterBase
ScriptableObject class that defines the core attributes of each monster, including name, description, sprite, type, max HP, attack, and defense. - The
Monster
class allows individual monster instances to scale with level, dynamically adjusting stats like HP, attack, and defense. Skills are also assigned based on level, with each monster able to learn up to four skills. - This system makes it easy to create and manage a diverse roster of monsters with different strengths, weaknesses, and abilities, all from the Unity Inspector.
- Developed a
- Random Encounter System:
- Implemented a
BattleTrigger
script that attaches to specific zones. AbattleChance
variable controls the probability that a battle will start when the player enters a zone. - The
Encounter
class inBattleTrigger
defines possible monsters for each zone, with anencounterRate
determining each monster’s chance of appearing if a battle is triggered. - Battle Triggering: When the player enters the zone, the system rolls for a random encounter. If successful, a monster is selected based on cumulative encounter rates and passed to
BattleManagerMain
to start the battle. The system includes a cooldown to prevent frequent encounters.
- Implemented a
Get Ultra Shapes
Ultra Shapes
Ultra Shapes
Status | Released |
Authors | taejaun100, 2OwenK2 |
Genre | Role Playing, Action, Adventure |
Tags | 2D, Indie, Pixel Art, Top-Down, Turn-based, Unity |
More posts
- DevLog 7 Part ADec 14, 2024
- DevLog 6 part ADec 14, 2024
- DevLog 5 Part ADec 14, 2024
- DevLog 4 Part ADec 14, 2024
- DevLog 3 Part ADec 14, 2024
- DevLog 2 Part ADec 14, 2024
- DevLog1 Part BDec 14, 2024
- DevLog7Dec 13, 2024
- DevLog5Nov 22, 2024
Leave a comment
Log in with itch.io to leave a comment.