- Published on
Devlog #14 - Clustering & Casting
I started the week fixing a few bugs with the website and then moved on to looking at http://docs-overcast.smartfoxserver.com/Clustering/introduction which is awesome. I'm going to migrate to this. It will take a bit of code change but it will be worth it to have a login server that can then redirect to game servers with very little code.
So I partially set that up and rewrote a bit of the server code to accommodate so I can continue development on the actual game! Which I can now get to since I've adapted the server code to handle the new account/character system that the website uses.
Mobs are getting too powerful for me to take down with my fists so I think we need to equip weapons and get skills working finally!
At least I can equip my Adult Diapers...
On to skills! After adding a click handler to the skill slots and adding a cast request handler on the server I'm ready to cast on the server. When a skill cast request is sent to the server it is sent with the hotbar id and the hotbar slot id of the skill that is going to be cast. On the server we check for not moving, not already casting, and then we get the SkillDefinition for the hotbar slot. We then check for enough energy and either execute the skill immediately or create a SkillCast object if the skill has a cast time. At the end we send the cast message back to the client so it can start the casting animations.
On the client I put a semi-transparent Rectangle over the top of a skill slot and animated it growing when casting and shrinking when on cooldown. Looking good!
Next up I decided to fix character animation as it was very broken. It looks decent now. Still need to adjust for movement speed but that can be done later. Also, fixed a few bugs that had been lying around. Next lets get weapon equipping actually functioning.
Looking good. Along with weapon equipping I added right click to quick equip and fixed the code that changes appearance when changing equipment. Toy Bow is really terrible. These items are going to need some retuning!
Who's a noob now!?
Once I get the tile map graphical bug fixed by the BabylonJS crew I'll start putting out videos as there's quite a bit going on now!
In the upcoming week we may start to see the fruits of Lighterthief and boshed labor as mapping is coming along nicely. I will continue working on skills, quests, and items as I work my way towards level 8.
Alpha Halo counts on the website should now be accurate for 95% of users.
See you next Friday!
Have Fun & Keep Gaming!
P.S. - As of today, 256 names have been reserved. Reserve yours today. https://fantasyonline2.com/