Home Creators Posts Import Register Favorites Logout

Content

We’re dangerously close to being done laying the game’s groundwork and moving on to simply making content for the game. I’m hoping that I might be able to start doing youtube video DevLogs once that happens.

Here’s the rundown on what I got done last week. It’s a lot.

First up was the health drop that enemies rarely do. The placeholder heart was fine, but, well, it was placeholder. Here’s the new one.

Next, there was a single frame in the new door animation that wasn’t quite right, and I could see it mid-animation. So I fixed that, too.

And then I moved on to something I hadn’t realized that I hadn’t done. There was still an enemy left to redesign. The enemy that fires bullets in a circle. Previously it was a static image of a skull-like design. I changed it up to better distinguish itself as something that moves, and in the process discovered that I have so much more I can do within the geometric enemy design motif I’ve established. Look at this guy! I think it might be my favorite.

I was also getting sick of the upgrade selection screen. White rectangles over a black background. Boring. So I reused the Nexus background as that felt fitting for something that benefits the player and swapped out those rectangles for an actual sprite. Hovering over them still tints them in a certain way that I’m not 100% sold on but it works for now.

Next up was a problem I had in putting the player in the level. I don’t think I ever mentioned this but the quick and dirty solution I had to possibly spawning inside of an object was to keep shifting the spawn-in location to the right. Which could shunt the player outside the level. Fixing that wasn’t hard; I’d already done it for the door object and simply reused that code. It checks the spawn location to see if it overlaps with an obstacle and if so, randomly picks a direction and a distance and checks there instead. Repeat until success.

With that done, I spruced up the rooms in the generator so that they’d stop being totally empty open boxes. I still need some set dressing for these things to make them look and play better, but the actual generation code works and I’m fine with that for now.

Then came something that was harder than I thought. Enemy spawning.

Currently what happens is that in every room, except the first and last, a proximity sensor detects the player and then spawns enemies in the room randomly, one by one. The issue was actually getting them in the room. If I manually placed them it would screw up my generation code placing floor tiles, meaning I had to code them in. That’s where things got tricky. While I have variables in my room generation that marks how many rooms there are—horizontally and vertically—and how big a room is, these variables don’t include the walls around each room that join them to other rooms. I forgot that detail at first which had them spawning in inside of an evenly spaced grid as desired, but that grid was smaller than the actual level leaving them all scattered. Maybe I can make the final math formula a bit more streamlined but hey, it works now. I also used it to fix the code for the player and the door being off-center.

And since I’m now using Math to figure out where everything goes, I can easily adjust the size of the dungeon without issues. Right now it randomizes the width and height between three values, designed to ensure that it’s always a landscape rectangle.

For some extra polish, I added in an animation for enemies being spawned in. I already had one, but it was pretty placeholder. I think it was my bullet impact particle but in reverse and bigger.

Anyway, now a sort of dark hole thing opens below them and vanishes.

Ideally there would be a delay between the black hole and the enemy spawning in, but that’s something I can afford to worry about later.

I also wanted enemies to have a particle effect when they died. I ended up reusing the explosion sprite for this, because I wasn’t happy with it as an explosion. It’s a shockwave more than anything.

And because I wasn’t happy with the explosion, I redid it. Again. Third time’s the charm, probably. I am much happier with this effect.

You may also notice that I recolored the bullets. The previous pure-white bullets were fine, but I wanted them to have an outline that popped against the background. And since I had the chance, I took the opportunity to color them based on whether they were the player’s or enemies’.

I think, next, I’m going to whip up about 20 proper upgrades to replace the current ones with. Maybe 10. We’ll see. Because from here on I think all that’s left to do is, like I said before, add stuff.

Until next Devlog!

-DeusVerve

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

Files

Comments

No comments found for this post.