Day 7-8 - July 8th-9th
On this days I’ve couldn’t make anything on the game coding. Just improved the sprites of the mates and the player with the resources and thinking about what and how to do on the resources mechanic.
Day 9 - July 10th
The best day so far, because I was able to make a lot of things on the resources mechanics.
First of all, I’ve made the sprites of player and the mate change when the correct resource was in need (with the Mates) or on held (with the Player).
Then, I was able to make the main mechanic of the player picking the resource from the container and take it to the Mates in need, changing to the animation loaded. And by that, I was wondering some way to not just pass near the resource bucket or the mate to pick and/or delivery the resource without any interaction. For this, I mapped the space key to make the action of pick the resource and delivery it when you are near for then. In this way, the mechanic now is simple as that:
- Look to the mates to choose one resource to pick for the most needed one.
- Move the player with WSAD/Up-Down-Right-Left to get the resource.
- When really in front of the resource, use Space to grab it.
- Move the player to the Mate in need.
- When really touching the Mate, use Space again to delivery it to him.
- Look to the mates to choose one resource to pick for the most needed one…
It’s already fun to play with that :D
To finish, I’ve created the health bars above the Mates, to indicate how much the resources were running out. In this, I’ve put some randomness in the pace of the bars, when the game choose the new resource in need after the player take it to the mate. With that, you will need to pick the right strategy, because for out of sudden, some mate can lower his resource faster than other. You will see it in action below.
So far, so good, here is the status for now:
I’m loving it!
Even without the enemies, bullets and the AI of them moving and trying to hit themselves and the player, the game is already interesting to play around, just needing some fine tune in this mechanic :)
And that’s it for now. For the next time I, finally, hope to start making the IA movement for the Mates, create the enemies, and begin to shoot some bullets between enemies and Mates.
If you want to get updates from this DevLog in other places, you can follow me on Twitter or subscribe to my projects' newsletter!
See ya!