Home Creators Posts Import Register Favorites Logout

Content

I fixed the screen tearing and I am mad about it.

After all this work trying to figure out what was wrong with my camera, all the random tweaks to the code to see if there would be an effect, all that effort, and what actually worked was making the game fullscreen.

It’s fine! I probably need to tweak all that camera work now so that the fixes I’ve introduced don’t cause problems with resolution, but it’s totally fine and I am not furious at all.

(I also made it so that hitting Escape closes the game, since, well, fullscreen.)

To celebrate getting the screen to stop tearing, I decided to beef up the enemies. They kind of sucked, to be honest. Not that I thought they were bad or boring, but they didn’t feel as good as they could have. I wanted to make a few small tweaks to improve game flow.

First thing I did was adjust their pathfinding. Before, to make sure they could navigate obstacles, I had them using a navigation grid. The problem with that is that they could only move in eight directions, which didn’t really look very good. Now they run a quick check to see if there is an obstacle between them and the player, and if there isn’t, they don’t need to use the navigation grid, and thus can move in any direction towards the player. I then improved on that by adding some interpolation, so that they don’t snap to a new direction but make a very small turn as the player moves. It’s a minor thing, but it looks so much better.

The other problem I had with them is that they aim where the player is and not where they’re going to be, which makes them come across as highly inaccurate. Getting them to lead their target wasn’t actually as hard as I expected it to be, once I understood the theory behind the math.

However this led to another discovery. Once they started leading the target, they’d have to shoot way off to the side because their bullets were so slow, which also made them seem highly inaccurate. To fix this, I simply upped their bullet speed by 50%. Now the enemies are way more dangerous! And fun! You’re welcome.

Until next Devlog!

-DeusVerve

DevLogs like these are brought to you by Patron(s) like Haelerin!

Files

Comments

No comments found for this post.