Hey! I need to make dig dug game just like the following picture
Just need to know what should be a good approach for building dig dug game mechanics mainly digging logic.
One of the approach is to read pixels from the background texture and then set their value to 0 so that it can show digging effect.
Other approach is to have a small black texture and place it over the background where player moves.
If someone has anyother approach, do tell. Thanks!
This would be my first approach tbh. It’s a tile based game so this approach should be pretty straightforward.
1 Like
Have a look at this sample, it could be something similar to creating little decals over your level.
https://playcanvas.github.io/#graphics/mesh-decals.html
1 Like
Oh wait, dig dug isn’t tile based
Not really sure what my approach would be in this case. Generating a mesh for all the black areas is doable as mvaligursky mentioned. So it would be one mesh for the background and another for the black tunnel.
Editing texture data directly could work and is what I believe the video texture demo does.