Day 79: Today the cat I’m keeping kept sitting on my desk, right between the keyboard and the screens. That little bastard is just too damn fluffy and cute fro me to force it to leave. So I spend a significant amount of time petting it. I’d like to think that I used this time to think about my code. But I’m not really sure.
Daily interesting stuff:
Reddit post about how people got into making games. That post made me lose a lot of time. There’s just so many interesting stories to read!
Reddit post about sharing twitter accounts. I followed some people, and posted mine. I got a few followers as a result. Now I’m at 50! I don’t know if I should be happy or disappointed I’m only there.
Reddit post about publishers. It was a goo dread. I just wished there were more comments. At least I got a taste of what publishers cut looks like.
Reddit post about advices for beginners. The creator of the post just said two premature optimizations but there were good advices in the thread.
Tasks done:
The upgrades can be unequipped now. I had to use a custom Input. The problem is in Unity the basic Input System isn’t event-based. So you have to check for it in a runloop. So I did that. It fucked up my whole class relations since I didn’t want every item to check every frame for the same thing. So I had to put it in the shop. But then I needed to know which item was selected. And you know stuff like that. But I made it before lunch.
Corrected some trivial text bugs. Stuff like rounding numbers and adding “$”.
Added feedbacks when the upgrades are locked or you can’t buy it. This was also a mess to do. At first I thought I just had to change the “intractable” bool of the button. But that didn’t worked well. So I did showed a red cross sprite in the top left instead.
Did the unlockable upgrades. It’s upgrades that can unlock other upgrades. This broke the locked feedback, and I had to change it. This was actually hard to make. I spent a lot of time on it. It’s just that I’m currently having a laziness crisis and that I really can’t remember all I did to make all theses feature work. Or maybe I just don’t want to remember because I know it’s not great.
Did the unlock ship upgrades. This was easier than the rest. Mainly because It looks a lot like the upgrade unlock. Except I had to implement the lock feedback in the ship selection. In retrospective, I realize that all the tasks I did today were painful to do. Every time there was surprise complications. I guess it’s just proof that this part of the code base is too tangled. But at least the upgrades are starting to work and that’s all I need right now.
0 comments