Happy V-Day everyone!
I worked on Yokai Trainers over the weekend for a few hours
and I started from scratch. I ditched jquery entirely and am
writing it in pure javascript for the client and started with the
battle system.
The battle system currently supports (after only a few
hours):
User Interface
- Live UI system
- Display of Player and Enemy information
- Display of Player menu
- Display of Turn #
- Button to reset everything
- Victory Screen
- Game Over Screen (Death)
- Battle Log Debug system
Function
- Player attack functions
- Player Magic menu system with scroll support (This is for
debug. Actual magic is limited to a certain number and won't ever
scroll)
- Player Item menu system with scroll support (Once again, meant
for debug)
- Player Magic ( 4 base spells prepared )
- Player Items (31 Items prepared, almost all will have unique
functions. This is mainly for test purposes)
- Player can attack the enemy
- Enemy can attack the player
- Enemy uses its own A.I. to determine if it should heal or
attack. However, heal doesn't exist yet and it can only heal if it
has that spell.
- Basic calcuations made to determine hit/miss/derived damage
values
- If player health reaches 0, it goes to the game over
screen
- If enemy health reaches 0, it goes to the victory screen
- If both player and enemy health reaches 0, stalemate occurs and
leads to game over screen
- Support for multiple Party Members
- Support for multiple Enemies
Base Player Stat Values
(Currently)
- Hit Poits
- Magic Points
- Physical Attack
- Magick Attack
- Physical Defense
- Magical Defense
- Speed
- Elemental Property
- Affliction
Enemies
- Enemies have similar but more consolidated stats. They also
have conditional weights and max-use for spells instead of it being
MP based (for now).
Yokai
Slime added (Player)
Slime added (Enemy)
Coming Next
Once the battle system is refined and is ready to be used, I
will add a shop that lets the player buy things for cheap (like 1
Yokai Coin). After that, I will add different levels which will
spawn different enemies of different difficulty. This will give the
player the ability to defeat monsters, earn XP, level up, buy
things. The logical thing to do afterwards is to allow yokai to
equip items and learn spells. Once all of that is done, I will
mention what happens next.
Unlike before where I started with how I thought the game
should maybe look like, this time I'm building it with function in
mind first. The reason why I did it the other way before is because
I needed a baseline to get a better understanding if the concept
might work. This is called the prototype phase where things may
work a bit but a lot of shortcuts are taken and it's really crude
and ugly.
Until next time!