I am trying to create a cube that can be viewed in multiple layers along what i assume would be the Z axis -
For example
00
00
This would be the first layer, then under this would be
11
11
(only filling this space on the screen, where a key would be required to view the next layer down)
If anyone has played dwarf fortress i want something that is similar to the way Z levels work.
I have tried creating this with 3d vectors and arrays but am only just starting in Games Development at Uni and getting quite confused.
Its for a project i am working on with a friend to create a simulation of ants moving in a terrarium, and we are trying to figure out the 'sand' in which the ants will dig
There is no requirement of size (the hope is that users will be able to define a cube size)
But to start with at (10,10,10) would be perfect.
we dont want anyone to do it for us, just maybe give us some hints about where we may start with this.
Many thanks for any help --
CJ
(P.S this is a personal project and not Uni related!!)
I have tried creating this with 3d vectors ... and getting quite confused.
The syntax for multi-dimensional std::vectors is awkward, but I’d give them a second chance.
Supposing you want your ‘ground’ to be described not by digits, but by weird characters like @, #, & or worst, you can try something like this (just hints):
Brilliant we will give these a shot and see how it works, we managed to have some success with 3D areays but feel that vectors will still be the way, also, we are filling with all sorts of symbols! Will keep you posted how it turns out,