Loading...
0
Game
Blade Ballad
3 months ago

0.4.1

Combat receives another improvement by implementation of a spatial grid system for NPC targeting with expanded armor slots.


Combat

Spatial Partition

Previously, NPC targeting would be done by colliders, which was implemented by a large sphere enclosing the character, and any other character that enters it would be evaluated for targeting. Conceptually, it functioned like a sonar, but this approach only worked for close range targets and became unmanageable as more NPCs are added all running their individual targeting call, while the sphere radius would have to be increased out of proportion to detect further targets.

So I asked my senior software developer ChatGPT for some ideas and learned about spatial grids, which worked by registering NPCs to a grid cell approximated from their position, and from there, find other NPCs within that grid and neighboring ones to determine their target from a manager class based on closest distance. This solved the problem of performance, where only a single class was responsible for handling targeting logic, instead of per NPC, and organized them into partitioned cells.

This also solved the problem of retargeting which was very apparent in 0.4.0 when multiple gladiators are spawned in the arena, only to bunch up because they all decided to target the same person. As you can see in the video, NPCs would fight their closest target then quickly pivot towards another attacker if they got to close.

041_-_pause.png

Melee has also been further refined, removing a lot of the jitter present in the last version from a short I posted (which for no reason, warning or notification, died suddenly after reaching 500 views two days after it was uploaded). That stutter you feel when attacking is mostly eliminated, and crouching has been reimplemented.

Models

Decoupled Armor

Greave and sleeve armor now have their own specific armor slot, bringing the total count to 10. This addition is to complement gear degradation, as your armor will lose condition after taking damage, encouraging you to scavenge better ones from fallen foes, a practice found in games where scarcity is emphasized.

041_-_new_armor_system.png

Placeable V3

I've been reworking the building system introduced in my first blog, but due to lack of polish and general instability, I won't go into detail for it, at least not until the next post. You can try it out in Story Mode if you're really curious.



0 comments

Loading...

Next up

The Colosseum

Binds and Spears

Overhauled IK Combat & Design

Bandana Dee the Dream Friend

Smile! Here, take some happy pills! ✨💊 #Blender #3DModelling #3DArt Buy me a Ko-fi: https://ko-fi.com/barbarafb_

Heya there! I really wanted to show you all a little gameplay preview of the first boss fight i'm currently working on i hope you like it ^^

I have added rewards for quests so that villagers can give you something in return for your hard work helping them. 🥳

I want to know - what's your favourite quest reward?

Shadow The Hedgehog X pixel art

Szayel Aporro Granz - Bleach