Found some time this weekend to progress Trashman a bit. Not going as fast as I’d like, but progress all the same.
As this is going to be a content-heavy build, I decided to dedicate some time to improving the workflow and pipeline for creating the 2D renders in Blender. I figured that once the game is in place and operational, I’d want to take advantage of the pre-rendered nature of the assets to make them look a bit better, add more detail etc. So any time-saving in the preparation of those assets would be welcome. I forced myself to learn a bit more about multiple scenes and view layers in Blender 3.x, which, although not quite perfect, suited my needs quite well. So the export of a particular house view is now as simple as…
- Select the house variant scene (usually Left/Right, but maybe more variants).
- Select the view layer for each of the three asset views in turn, house, path, and shadow.
- Hit render, and save the resulting image.
All the work of switching assets on/off, changing to different render options, such as holdout or not, etc. is handled by the view layers.
Back in Godot, I cleaned up the structure of the “house” scenes. Added collision shapes and Area2D nodes to differentiate the type of ground the player is on. This is important in the game, as walking on the grass incurs a penalty. I can also determine when the player is on the pavement and the road, just in case that becomes useful in the game logic somewhere.
Added basic player controls, to test the collision detection and render order, seems to work flawlessly so far.