Plants VS Zombie Voxel Game

Godot Version

4.5.1 (Steam)

Question

Soooo I have a few questions mainly just tips from anyone more knowledgeable than me. I am making just like the daytime first few levels of Plants vs Zombies in a voxel style for my friend for Christmas and I’m just about to move properly onto the coding.

Firstly:
I already have the stage and like default plants and zombies for day 1 made, See below. Im assuming id probably use a grid over the garden tiles and somehow assign positions to the different grid tiles as a way to place the plants on the grid points?



Secondly:
I have a rough UI made as seen in the image below and basically im hoping to like assign each plant to like an “inventory slot” so like if i click on the right garden with the peashooter it gets placed and vice versa with the wallnut or anything.
I have each plant as a different scene is that the right way to go about it?
If so How do i go about making that bar at the bottom like an inventory to place the different plant scenes from?

I figured all this out using a mix of youtube videos and messing around. I used area3ds with collisionshape3ds to detect each square of the garden with a raycast

1 Like