Simearth remake4/13/2023 ![]() In my first attempt i made a event labeled volcano, add it to a poll in an event handler, and when the ticks ends a made a call to all events in the poll and each event changes the map directly. Let’s consider a “comum natural event” in the earth like a volcano You can quickly realize that volcano is referred to event, then it is obvious that I need an event manager at the core of the game. ![]() So in that stage, my map was a matrix where matrix represents the amount of land in the coordinate (x,y) and matrix represents the amount of water. Layers usually represent levels, amounts of something, all layers are listed in a enum and the index of a layer in the enum is the index in the matrix for that layer representation.įor example: At early stages of development I had only 2 layers: ![]() We have 2 dimensions (x,y) to represent coordinates and additionally a 3rd dimension to represent a layer. So, the world is just a 3 dimensional matrix (The game is in 2D with a birdvision). A some time ago i have tried to make a remake of SimEarth: I failed My biggest mistake was in the events and how the map is changed, so in this post i will explain how i modelated the world (map), this model give me a high freedom level to changes what I need and without loose control of the execution flow.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |