Show newer

gamedev 

Made a beach/island/sandbar level. I don't know if I'm going to make more levels. Other than that, I just need to tweak some things, add music, replace the Spy Hunter sprites with my own or stock assets, give this a name, and then I'm done.

I'm hoping that my next game would be something more inspired.

Show thread

gamedev 

Added a sound effect when the player car spins out.

Show thread

gamedev 

Working on a credits sequence. It isn't that much because I'm the sole developer and I didn't use that many third-party assets (yet). I decided to add the tools I used to pad it out.

The credits are loaded from a text file with it's own simple markup format.

Show thread

gamedev 

Player car now spins out if it gets hit by spikes or shot by a limo.

Show thread

gamedev 

Working on a farm level now. I even have tiles for both corn and some sort of crop. I tried making an apple tree tile, but it ended up looking weird.

Show thread

gamedev 

Enemies now appear from behind. I still need to tweak the behavior. I'm trying to program them to catch up to the player when they appear from behind but they still behave oddly.

Show thread

gamedev 

Now, I'm experimenting with having randomly spawning enemies as opposed to predefined enemy placement in levels. It should help with the problems I had previously and also allow me to include enemies that appear from behind (which I haven't implemented yet).

I should also tweak the behavior of some enemies. Have them catch up to the player, if they attack from the side.

Show thread

gamedev 

I'm realizing that this game is piss easy because Spy Hunter-style enemies can only attack from the side. While I do have a mine car. It isn't enough. Unlike the original Spy Hunter, enemies cannot appear from behind because this game has predefined enemy placement. And if you know where the enemies can attack, you can always attack from behind, and never have to deal with the threat of enemies attacking you.

I plan on adding one more enemy that appears from behind and will shoot you on sight. Hopefully, it will add a little bit more challenge. However, I need to be careful about adding too many enemies on screen because of the lag problem that I can only mitigate so much.

The other option is just to scrap predefined enemy placement altogether, and have cars appear from either the top or bottom after a certain interval with a limit on how many cars can appear on-screen at once. This would obviously be a hard choice because I put so much work in designing the levels and even creating my own level editor, but unexpected turns are just simply a reality in game development.

Show thread

gamedev 

Desert level is done. Created a forest level using the level editor.

Show thread

gamedev 

Now creating the second level using my level editor. This one is a desert level.

Show thread

gamedev 

Checkpoints can now be placed and deleted in the level editor. Note that these checkpoints aren't actually visible in game, only in the level editor.

The red part represents where the player will respond. The yellow part represents where the player needs to cross in order to reach it.

Show thread

gamedev 

Finally, checkpoints are now visible in the level editor.

Show thread

gamedev 

Checkpoints have now been implemented in the level editor, but for whatever reason they aren't visible. They do load. I don't know why this is happening. I will probably work on it tomorrow.

Show thread

gamedev 

I've added a checkpoint system. Checkpoints have to be added manually in the text file because I haven't put them in the level editor yet.

Show thread

gamedev 

Oh, I've also replaced one large if-else statement with a switch statement. I think that might help with performance. Contrary to popular belief, a switch statement and an if-else statement do not compile the same way. if-else uses branching instructions (constantly checking for and calculating conditions) while a switch statement uses a lookup table.

Show thread

gamedev 

Added name (initials) entry to the high score table, as in you can change the characters around, but can't save the highscores, yet.

Show thread

gamedev 

Maybe it did fix the lag, but only slightly. I've also rearranged some if-statements, which also seemed to help.

Regardless, if you drive slowly enough, eventually all the cars in the level will appear on-screen at once because the only start moving once they are fully onscreen and will only disappear once they are on the bottom of the screen. So you will eventually get lag. But nobody is going to play the game that way so who cares?

Unlike my previous game, enemies do have some sort of AI, as opposed to just having patterns. Naturally, there are a few state machines and lot of if-statements even for this basic AI, but that's also because of poor planning. Some could be turned into switch statements.

Also, having a mine car does increase difficulty, a little bit. So, I probably won't need that much more cars on screen.

Anyway, the game is coming along nicely and quickly regardless. Like the last game, don't expect anything ground-breaking, just something that would be fun for a couple of minutes.

Show thread
Show older
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.