• Register

No longer discontinued, update coming any moment now.

  • View media
  • View media
  • View media
  • View media
  • View media
  • View media
Add media Report RSS Attack System Upgrade (view original)
Attack System Upgrade
embed
share
view previous next
Share Image
Share on Facebook Post Email a friend
Embed Image
Post comment Comments
gigimoi Author
gigimoi - - 56 comments

It's not easy to tell what's going on here, but I've got 2 attacks hitting the enemy right now. Before now, this was impossible, because a Mob was restricted to a multidimensional array of colors to draw itself, now, when it is hit, a list of Hits is also drawn onto the screen. This is to make having a partner more enjoyable to play, as you willn't need to take turns attacking. This did, however, increase the Mob's draw time considerably, I'll need to optimize it.

Reply Good karma+1 vote
gigimoi Author
gigimoi - - 56 comments

Also, the attack system takes into account constitution when attacking the skin layer, and dexterity to determine hit/misses

Reply Good karma+1 vote
Arkanium
Arkanium - - 312 comments

Good to see the combat system is improving.

Why not draw a hit as an entirely separate entity, like a little overlay class that you can also use if you want floating text/random GUI things? This would mean that the draw time of a mob would be unaffected by hits, although it would add more things to draw. It would also mean less potential bugs with things dying from one hit while taking a second hit. I'm not sure if this would speed up or slow down the game over all but it's worth considering.

Reply Good karma Bad karma+1 vote
gigimoi Author
gigimoi - - 56 comments

That's how it worked previously, and it was slower, now instead of drawing the hit over the mob, it doesn't draw the parts of the mob covered by the hit. However, the new storage format's implementation in other bits of the code is slower.

Reply Good karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account:

Description

It's not easy to tell what's going on here, but I've got 2 attacks hitting the enemy right now. Before now, this was impossible, because a Mob was restricted to a multidimensional array of colors to draw itself, now, when it is hit, a list of Hits is also drawn onto the screen. This is to make having a partner more enjoyable to play, as you willn't need to take turns attacking. This did, however, increase the Mob's draw time considerably, I'll need to optimize it.