You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried scaling the map down, and it didn't lag. The default map is 100*100 blocks (10.000). Every block is a class. They all have properties like: index.x, index.y, pos.x, pos.y, block (type), ic (image coordinates).
Index isn't really needed in a for loop, position can be calculated. Ic can just be a switch statement. That means that the map array (mapArr) is can just be made of the type of every block.
The text was updated successfully, but these errors were encountered:
I tried scaling the map down, and it didn't lag. The default map is 100*100 blocks (10.000). Every block is a class. They all have properties like: index.x, index.y, pos.x, pos.y, block (type), ic (image coordinates).
Index isn't really needed in a for loop, position can be calculated. Ic can just be a switch statement. That means that the map array (mapArr) is can just be made of the type of every block.
The text was updated successfully, but these errors were encountered: