Implemented Physics, generated islands form the terrain + Server side Seed generation.
Performance
Performance is out of the window, the algorithm that generates the islands is O(n^3)!! This disgusts me, but I wasn’t even able to come up with this solution! AI made the entire function…unfortunately I was not able to come up with the solution by myself…
I understand how the function works, but I don’t know how I could improve it anyway. The one upside to this is that, this function will only run once - during the game start.
My beloved physics engine Box2D can easily handle all these complex islands with no problem at all! So that helps :)
Time
What took 10hrs? Most of the time was trying to generate the islands, another huge chunk of time was spent making the renderer for Box2D #510535.
IDK how, but the server side seed generation that I though would take less time took about 2hrs…#4bac51
My state of mind
I am currently disappointed in myself, multiplayer is hard. Server side seed generation taking so much time destroyed my confidence. Not being able to generate the islands broke me… I am having doubts of being competent enough to complete this project.
My current plan is to focus on single player - offline mode. I will handle multiplayer with server later. Currently I will focus on things that are fun and actually have meaning. First I’ll make it work fully in web, then I will do character…
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.