KelsonBall / Inside-Out-Mmorpg

An open source mmorpg where bots are first class citizens
0 stars 0 forks source link

Describing the world #2

Open KelsonBall opened 6 years ago

KelsonBall commented 6 years ago

We need a structured way of describing the world and its state to players (human and bot).

I suggest breaking the world into smaller chunks, called 'scenes', of varying size. Scenes will have an upper bound on size and describe a logical unit of space. Examples of scenes might include:

Scenes will be described as a 2d grid with (x,y) coordinates, with each grid space occupying approximately 1 square meter. Grid (0,0) will be in the 'north western' corner of the scene and Grid (SceneWidth,SceneHeight) will be in the 'sourth eastern' corner, with the x coordinate describing the east-west direction and the y coordinate describing the north-south direction

Objects in the scene can either occupy a grid or an edge between two grids.

Objects that occupy grid spaces might include:

Objects that might occupy spaces between grids might include:

Objects in the scene may need to describe the following:

Players and other entities may travel between scenes using Links

Examples of links may include: