Up to now, we have taken a look at entities and the scene graph, we know how to render and update objects in the world, and we have seen how views and scrolling work. We have a concrete knowledge about many building blocks, now it is time to assemble them to shape a model of our fictional world.
Completely unforeseen, we create a new class called
World. On one side, our
World class must contain all the data related to rendering:
On the other hand, we store some logical data: