Stuff Under the Header

11/13/2014

Gotta Say It Again, I Don't Like Winter

It's too cold.

Hitboxes Again
I believe I've mentioned this before, but anyway, the hitboxes in DT are almost always smaller than the sprite.

For example:

In this overly large shot of my display, there are 2 sprites displayed. Those dark boxes over the sprites are the pixels used for collision. Most enemy sprites use the full sprite for collision, but their projectiles often have the first outer edge of the pixels cut off from colliding with anything. This is why you'll sometimes see a fireball fly through the top of Jerry's head or something pass through his arm while he's unharmed. The collision boxes have remained the same for most of the sprites that were carried over from DT1 and DT2.

When DT1 first started, there was none of this. Every sprite was its own collision, which led to a lot of problems.

For some enemy sprites that have a weapon as part of the sprite itself, I'll often cut off the weapon for collision checking, both due to it being awkward for the player when they take damage from it (I think so anyway) and that it's also part of the collision for the player to deal damage to the enemy. For those occasions, a separate object is used (as you would imagine) for the melee weapon the enemy has.

The above collision examples are only for collision with damage objects, these are not used for world collision. (though they can be) That's handled in a different, slightly more complex, way.

Achievements
These are in DT3 as of a moment ago. There's been plenty of talk with people about these and if they should be in the game. I've shared my thoughts on them before, and I tend to not like them. So, nearly all of the achievements in DT3 are very silly things that are outside of normal gameplay. There won't be any "Completed Chapter 1" or "Defeated 100000 Enemies" achievements. Most of them are designed for comedy purposes.

A comment here inspired someone to say a thing to me, which inspired me to code in achievements. Luckily some of the UI and code was already done from when I was toying around with the idea.

No comments: