Fifth development day
Still not ideal but better than nothing. (approximate development time 1 hour 50 minutes)
9/26/20251 min read
This dev day didn't start good, after work I spent few hours gaming. Then I felt guilty because of it and forced myself to start working at around 7pm. There was lot of brainstorming to do because feature I'm working on (loading sand into truck) is combining pixel world and unity objects.
I spent lot of time by making proper map for demo, it's not good looking or complicated but process was time consuming. I also made demo asset for truck.
Next complications is how to actually load sand into truck. At first I wanted to implement it by dropping sand above truck so it will fall into it. But now I chose to use funnels. I parked truck in building and made funnel going out of it. You drop sand into funnel and it will load into truck.
But now I need to stop sand at the end of the funnel to check if there is space in truck and if yes than let sand pass and if not then stop sand. This is more complicated issue than it might seem because pixel world works differently than unity game objects. I didn't completely solved this issue yet but I got some ideas from brainstorming. I think I will use invisible blocks and the end of the funnel to stop sand and then some game object that will be also placed there and if it's colliding with something it will try to get pixels from area of this object and do rest of the logic with loading.
I think loading particles on truck through shooting particles from funnel might by nice addition to give more satisfying visuals to the game.
Last issue is visualizing sand in truck. I think this will be solved by something I've seen in manual but I have to verify it, basically it's converting pixels into simple game object. This conversion will be done when export button is pressed and converted object will be assigned to truck object.
Lot of try and error development to do now, hopefully I can use next development day more.
Thanks for reading.