Prototype version 0.5; pickup loot


Welcome to update five! 

In this update, I created loot that can be picked up, fixed a few bugs and added the first sound effects for the game. 

Picking up loot is one of the most exciting things in RPG's, a logical step to implement this early. The inventory tutorial I followed teaches me how to place loot in the game and have it added to the inventory after picking it up. Creating this in my own game was pretty straight forward. The saving system takes care the game 'remembers' that the loot was collected or not when reloading. I decided (for now) that the loot is picked up automatically when the player runs over the loot box. Maybe this will change to a pick and drag system but I like the fast pace of the current system. (comments on this are welcome!)

Next challenge was how to have (random) loot dropped from enemies and boxes. After some trial and error, I managed this by using events to notify a generic loot dropper to spawn loot boxes where the enemy was killed. I build it so that it can be controlled which enemies drop which loot. So in a future update when stronger enemies are added, they drop better loot. 

Since the last update, when you have the inventory screen open, the player still fires the weapon when you click on inventory items. This is obviously not supposed to happen so I disabled attacking when the inventory screen is open. In a future update I think I do something with the mouse cursor so it changes shape when your over UI elements. 

Also since last update, when the player died the weapon did not fade out. I added this now since it looked rather silly to have the gun still floating in mid air. 

Finally I added the first sounds in the game and what better way to start then weapon sounds? When you fire the guns or swing the crowbar, a sound effect is played. The crowbar might be improved since I used axe and sword swings from a medieval sound effect pack for that one. 

Next update I'll be adding more inventory goodness like stacking items, tool tips about what the stuff is you are carrying around and more sound effects. 

Thanks for reading!

Files

Zoldan_0_5.zip Play in browser
Mar 07, 2024

Leave a comment

Log in with itch.io to leave a comment.