Tricky Truck by Number6406
Tricky Truck is an Arcade game where you need to keep the city clean.
This was the first time I used Unity for making an entire game, please feel free to give me advice.

How to play : The goal is to keep the city clean. Game ends when you get fired (trust me, you won't win :D).
- Use [Arrows] to move.
- Hold [Space] to pick up and drop off garbage.
Garbage can only be dropped-off in the Dump (your starting point). The orange bar indicates the city's level of dirtyness. The green bar indicates your truck can carry. The more you fill your truck, the slowest it will drive !
PS : Collisions / triggers are a bit messy, if you can't pick up a garbage, try to leave and enter again on the spot in order to perform the action.
Good luck !
Musics credit : (as I'm a bad musician)
| HTML5 (web) | https://gamejolt.com/games/tricky-truck/360858 |
| Windows | https://gamejolt.com/games/tricky-truck/360858 |
| Original URL | https://ldjam.com/events/ludum-dare/42/tricky-truck |
Ratings
| Overall | 1067th | 2.905⭐ | 23🧑⚖️ |
| Fun | 886th | 2.925⭐ | 22🧑⚖️ |
| Innovation | 822th | 2.952⭐ | 23🧑⚖️ |
| Theme | 912th | 3.071⭐ | 23🧑⚖️ |
| Graphics | 1017th | 2.738⭐ | 23🧑⚖️ |
| Audio | 635th | 2.775⭐ | 22🧑⚖️ |
| Humor | 565th | 2.632⭐ | 21🧑⚖️ |
| Mood | 899th | 2.722⭐ | 20🧑⚖️ |
| Given | 25🗳️ | 9🗨️ |
But good game nonetheless ! I had fun.
@akuirako it effectively could be a good thing to have more indicators of what you do, and when it'll be finished or not. I wanted to force the player to stop and take the time to grab the garbage, else it would only have been car driving game I guess. Maybe few changes are needed to improve this repetitive task. Moreover the way I compute which garbage is currently picked-up is a bit messy and not optimized, if I make a post-jam I should rework on all of this.
@carlos-giraldo Making a more realistic map is a real need. As I was taken by the time, I only made one type of house, as I wanted to make a real city. Actually, trash ARE spawning randomly :3 They just spawn with a 1 second latency and the more time you play, the bigger the trash will be. At the very beginning I wanted the game to be you, driving a snow plow so the drivers can drive through the city and don't be mad about being stuck into traffic jam. But I didn't tried to make AI, so it finished like this. It would really improve the gameplay I guess.
Adding an upgrade notion could be very lovely, I'll think about it :)
- your background tiles are not matching everytime; set the "Pixels Per Unit" on the sprite to the same as they are big (eg. 64x64px -> 64PPU) so they are exacly one unit large. Put your Camarafollow in the LateUpdate method (if you have some). And disable MSAA on your Camera
- The truck ist bouncing a little bit back, switch to Continuos Collision Detection in the rigidbody if you want get rid of it
- if your triggers are still not working sometimes, try to use OnTriggerStay to prevent this
Good luck^^
@boyturnedrobot : Yeah I corrected it in the patch I posted Monday so it was a bit better I think.
@max-s : Thank you for all your advice, I'll try all of this when I'll work on a small post-mortem when I'll find some time!
@joloujed : Yes, you need to __hold__ the Spacebar while you're stopped to grab the garbage. As Akuirako said it maybe lacks of visual feedbacks :)

The music felt a bit repetetive but besides that this was a solid entry!
I really like the idea of this game. :)
Keep up the good work! :smiley:
@stefan-jovanovic : Thank you for your feedback :)
Could have some nice features, like money to earn, upgrades for the truck, cars on the streets, etc. but a decent entry for a jam!
If you want, also check out our game!
https://ldjam.com/events/ludum-dare/42/baby-boom-balance
The movement was a bit too fast for me and the eyes had a hard time tracking the levels because everything move too quickly. Because the city is so small, maybe showing everything all at once would be better on the eyes and easier to track.
As for the collisions try using "OnTriggerStay" if you are not using it. Often I find it that the "OnTriggerEnter" can be missed by some frames while the OnTriggerStay works more reliably.