Show newer

gamedev 

Rearranged the UI. The health bar is now on the left. Looks much more natural.

Show thread

gamedev 

Added an actual health bar. I probably should move it before the key counter because it looks weird the way it is right now.

Show thread

gamedev 

Added a second enemy class. This one takes two hits to kill, while the first one now only takes one hit to kill.

Show thread

gamedev 

Door now has a sound effect.

I've also realized that the way I'm storing assets in RAM is inefficient (I've actually knew that since the beginning but I haven't bothered to fixed it). I need to implement an asset manager class and have each object store pointers to said assets. Right now, each object stores entire textures/sounds when they should be storing pointers instead.

Show thread

gamedev 

Player position is now defined in the map file. The second line of numbers determines the player's x and y position (in tiles).

Show thread

gamedev 

Enemies are no longer hard coded into the map. They are now loaded from the map file. Ignore the enemy placement. It moved before I could take the screenshot. (My screenshot utility is probably delayed)

The first two numbers defined the level width and height.

The block of numbers are the tiles.

Everything after that are objects. They are listed by object type and then the x and y coordinates.

Show thread
Show older
Game Liberty Mastodon

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