Hi there,
As some of you know, we are programming an MineCraft-like game.
This works very well.
We are allowed to flyring around, selecting blocks, etc....
Now we have a real problem. We want to add a block if somebody clicks the left mousebutton.
But if we add a block we have a graphic problem.
The world is divided in chunks (16*16*16 blocks).
If we add a block or sometimes if we are flying around some chunks are going to dissapear.
We don't know why and so we want to ask you if you can help us.
I've added the complete sourcecode.
Feel free to use it for your own projects if you want.
[attachment=8694:Kubos.rar]
[color=#ff0000]--------------------------------------------------------------------------------------------
[color=#ff0000]Problem solved.
[color=#ff0000]In Class "Chunks"->prepare we forgot to reset the variable "index" to "0";
Popular Topics
Advertisement