PlaceholderGames / 2016-InfiniteReplayGame

A 2D post-apocalyptic run and gun game with a significant resource management element.
0 stars 0 forks source link

Equipment Spawning Continued #8

Closed WilliamAkins closed 7 years ago

WilliamAkins commented 7 years ago

Make it so that when the player pressed space on an item it will go into the inventory if there is space. Also make it so that the player can drop items out of the inventory and they appear on the floor. Add placeholder items for every single item in the game and also make items have a quality value that will also be shown with a colour.

Due: Tuesday 25th October

WilliamAkins commented 7 years ago

Added player attributes Created an array to store the equipped items and started to add detection to check which items are currently equipped.

WilliamAkins commented 7 years ago

Made equipment show up in the inventory.

WilliamAkins commented 7 years ago

I have made it so the game tracks how many items are equipped and will not let you equip any if you do not have space. The game will also delete the item off the ground if a player picks it up.

Currently there is a bug where the shadow for the item does not always get removed with the item when it is deleted.

Also I am having trouble detecting which item the player as selected off the ground so that it puts the correct item into the inventory. I will continue to try and solve this issue tomorrow although might need help. Not entirely sure yet.

WilliamAkins commented 7 years ago

Just got a bit of help from Mike with the way to detect what equipment was picked up. Will make the changes I was told now.

WilliamAkins commented 7 years ago

I improved the equipment spawning code further. I added another item that can spawn and it some what detects which item was picked up. However it still has some issues with the detection of which item was picked up.

WilliamAkins commented 7 years ago

I Greatly improved the way in which items will spawn, including taking into account the item quality with it affecting the players variables. The game will also not let you pickup 2 of the same item. Finally the items will be properly displayed in the players inventory with the quality of each item shown behind it.

WilliamAkins commented 7 years ago

Sorry I was unable to attend the tutorial on the 28th October. I was feeling quit ill with a rather bad headache. I can make up for lost time during the weekend and will complete my fair share of work before the end of the weekend.

WilliamAkins commented 7 years ago

I have added place holder graphics for all 9 equipment items now, i have also completed the code for 2 of them and will get the others working now.

WilliamAkins commented 7 years ago

I have added code to spawn all equipment items into the level with a random chance of each item or none at all spawning.

WilliamAkins commented 7 years ago

Most of the items now work in the game. I am now working on some text to appear when the player picks up an item, telling them what it is they picked up and what it does.

WilliamAkins commented 7 years ago

I have just added a drop item button and I am now working on getting it to drop items out of the player inventory.