|
|||||
|
-In my Minecraft clone game, I want to create a large terrain by cloning boxes with health and game player behavior, but there is lag. Are there ways to avoid this lag? -I want to use boxes with do something behavior when I click with the mouse, but when I use this, the object behind it with the same behavior is also counted as clicked, I want only the first clicked object to be counted? --how can i make save system in my minecraft clone game, save and load the location of each cloned block? -I'm adding an image to 2D text areas, I want some of the image to be transparent? https://dosya.co/ayku72qpy0a1/minecraft_clone_v1.0.exe.html |
||||
|
There is already a Minecraft clone, called Coppercraft created in CC by user @SmnMhmdy, you can ask him, he is not active in the community though. but his game was amazing. |
||||
|
best way for minecraft is use 3d array and not use node clone (more clones more lag) use mesh created by array |
||||
|
What is 3d array? I not understand |
||||
|
https://developer.mozilla.org/en... 3d array can be imagined like big 3d box of small boxes |
||||
|
i will try to explain you in picture so wait |
||||
|
|
||||
|
just be aware that about 4500 cubes you will start to see a steady decline in FPS which is why that coppercraft is just one minecraft cell. i say 4500 because I've done performance tests and that is when my computer starts to dip. at about 150,000 polys I am at 30-40 fps. that's around 12,000 cubes or so. you will need some means to dynamically load/lod the cubes if you want to keep your polys down and have larger worlds. |
||||
|
for make best performance use algorithm for delete polygons that not use |
||||
|
guys just read how minecraft is works and you understand all |
||||
|
I think that in order to create a minecraft world without lag problems, nearby game elements and geometry must be interacted with, distant game elements and geometry must be hidden by coding. probably without coding is a difficult and complex :) |
||||
|
without coding minecraft can't be done even on base level |
||||
|
if you look at code of Coppercraft by SmnMhmdy you will see lot of code based on 3d array so this part is important and can't be done without js |
||||
|
the first wisdom you should gain is a cube is 6 planes... |
||||
|
but second one is that if around cube (in 6 direction) other cubes, this one got no plane |
[ 1 2 3 4 5 > ] Page 1 of 7 |
|