You are browsing as a guest. Sign up (or log in) to start making projects!

7h 49m 2s logged

I knew this would take a long time but uh…..

oh.

I have now created a functioning inventory pickup system, and opening doors will now check to make sure the player is holding the corresponding colored key before it opens.

To do this, I had to store an array of colors of the keys in the program memory for the player’s inventory. But since I can’t always guarantee that the array doesn’t have gaps in it, each frame also generates a list of positions of the colors addresses (I guess in a really cursed way you could call these pointers?) so I don’t have to sample the entire inventory list for every pixel in the rendering passes and can instead read the pointers list to know what inventory index to render.

0
8

Comments 0

No comments yet. Be the first!