Cozy cafè
- 5 Devlogs
- 21 Total hours
it's a game where you manage a coffe shop in the forest
it's a game where you manage a coffe shop in the forest
In the last few days I focused on Adding one of the core features of the game and also solving problems about UI and code not collaborating:
-I added the new feature that I’ll be expanding in the next few days, for now you prepare the coffes by clicking the button then take the coffes and drag them with the mouse to the white square that sends them to the shelf and increases the counter, by using the third upgrade you can increase the amount of coffes you can make and have on the shelf at the same time, in the next days I’ll be focusing on making art for the game
-I drew and added the new coffe shop art
-I added a drag&drop system for the kitchen panel
-Added the third upgrade with it’s related info, and added real time upgrade prices in the info panel
-While making the kitchen panel feature I ran in a logic problem that afer a lot of hours spent trying many ways to fix it, I had to ask claude to help me fix it, the AI actually came up with a genius solution to the problem since my logic for the bool variable was a total mess that I don’t even know how it got so messy
-I fixed a bug where if both customers where near the shop you could only serve the one on the right, it was a simple fix, the two canvas where only overlapping eachother
-I had to give up the idea of the coffes directly moving on the shelf after preparing them because of transform issues, and use a coffe counter that’s displayed on the shelf, however I like how it turned out
-I changed the font to one that Augie from jame gam made, I think it turned out great
-It might look like I didn’t do much for having 9h for this devlog, but I swear the problems where mainly caused by addding the new features because the UI just wouldn’t collaborate I geniuenely spent half of the logged time triying to make it work,in the end I asked claude for help and he came up with a genius solution(in my opinion).
As I said earlier, I also spent a lot of time triying to make the phisical coffes appear on the shelf but I think the solution i found withe the counetr is better.
Hi everyone, Today I again focused on the UI:
-I gave text to the upgrade buttons by giving information on what levek they where, I also made (in my opinion) a pretty good sistem for changingthe level etxt as you upgarde
-I added a button that gives information about what each upgrade does, in the future I want show the information by just hovering over the upgrade button
-I implemented a feature that my friend suggested, when customers are leaving, above their heads gets displayed how much they’ve payed, this feature wasn’t too easy to program, because I again had to find a way for the game to know when the customer was leaving, but I always haev fun programming these things because I learn a lot of ways, like the fact that if you use a while() loop in the update function, when you press play unity freezes, anyway that wasn’t the real issue, the real issue is that while wanting to delete a gameobject taht I didn’t need, I accidentally deleted the SCRIPTS FOLDER, I panicked when I saw the message and I clicked “cancel” but it was too late, after failing at trying to save the files that I had in VS code, I was about to go retrieve my github code and lose hours of todays progress + hours setting up again the scripts, but then I remembered that if you delete something in unity on windows, the thing doesn’t get totally deleted but goes to the trash bin, so I went to the trash bin with hope and succeded, I restored the folder and magically in unity everything went back to it’s original position, I think I lost 10 years of life by this problem
-On the good side I found a super cool font made by Augie from hackclub, she’s the one that runs tha jame gam on slack
Today i focused on improving the games UI:
-I fixed the problem of the ballon by using a UI image and changing it’s sprite(before i has the ballon sprite like a normal game object, to be honest it didn’t take as much as I thought it would to fix this)
-The most time was spent making the second upgrade work, because it was a pain understanding the logic to implement the upgrade, wich shortens the time of customers arriving, but it was actually very fun implementig this upgrade bevause I had to think of workarounds around the problems that were coming up
-quick side note: in the first devlog i was saying how cool it was VS code autocompletition, quick update it’s starting to piss me off because it’s suggestions aren’t very helpful when i’m implementing totally new features
-I added a pause button, wich wasn’t really simple but it’s because I kept getting distracted when setting it up in the UI
-added a window that opens and shows a red panel, tomorrow I’ll tell what’s it for
-lastly I sent my friend a quick demo to playtest so he can give me some ideas, best decison ever, he gave me some amazing suggestions and gave me inspiration for some other ideas, I did it because I didn’t know what else to add, I hope tomorrow I’ll be able to add some of the ideas
Today I:
-added UI that displays the amount of money you have
-Added a very simple ballon that displays a button wich makes you serve the customer
-Added one upgrade that increases the money you get from selling, when adding this the panel behind the button kept disappearing when serving the customers, and then I freaked out because the customers weren’t moving after the order, i spent something like 45-50 minutes trying to understand why, in the end somehow the panel of the upgrade somehow ended up in the gamemanagers code, where it should have been the customers ballon panel
-added a limit to the amount you could upgrade the shop
-then I spent like 30 minutes trying to make a second customer, using the same script as the first one, in the and I made a new script because the previous script was connected to the other scripts and it would have taken too long to do rather than a new script(wich still took long to setup with the other logic in the game), but in the future I hope to find a way to optimize creating new customers by making it easier
-after like an hour of me starting todays work when setting up the ballons and trying them by running some playtests, I ran into the most timewasting problem I’ve encountered for now, wich was so stupid but at the same time so frustrating, during the playtests when changing the game window size evrything going out of place especially the buttons and the ballon, I spent most of the time trying what was the problem then I realized that I didn’t change the canvas scale mode to “scale eith screen size”, it doesn’t need to eb said that I felt very dumb after that(I still don’t know why but the ballon + the button still give me problems)
-in the next devlog I hope to: fix the ballon problem and to improve it, complete the upgrade list by adding at least 2/3 upgrades
-Did basic customer logic
-Spent 30 minutes trying to understand why the collision trigger didn’t work, discovered that i also needed at least 1 rigidbody 2D
-Discovered better ways to exchange data between scripts
-Was surprised about how accurate is Visual Studio code auto completition
-Unfortunately I only did only the customer basic logic(very basic) because of the time it took to fix all the errors and functions
-Next devlog I hope to add a UI that displays Data and implement the game loop by adding upgrades