World dimensions?

World dimensions?


Replies | Reply | Tomb Raider Level Editor & Utility Discussion Forum

Posted by Dr. Willard on June 29, 2000 at 23:48:15:

In reply to: Do we need more than one file for a game? posted by BitShifter on May 30, 2000 at 12:02:08:

: I was just looking at the coordinate system in the Rosetta and quickly figured the maximum size *one* room could have in one level.

: The horizontal dimensions are a bit32 which is 2,147,483,647 units in max value. Each floor square is 1024 units so we can build a level to have a total number of 2,097,152 on a side. we are not so lucky witht he height since data constraints would limit the max height at 60 sqhares.

However, some of the data structures impose much stronger constraints than this. In TR2 and TR3, the boxes' horizontal coordinates are in grid squares -- and are single bytes. This means that the world can only be 256*256 grid squares, or with a grid square being 2 meters, 0.5*0.5 km^2 (0.3*0.3 mi^2).

And a room's visible wall surfaces have a further limit. Their coordinates are short integers, which are at most 32 * (grid-square size). Thus, a room can have a reasonable size of at most 32*32 grid squares.


Replies:



Reply

Name:

Email:

Subject:

Message:

Optional
Link URL:

Link Title:

Image URL:


Replies | Reply | Tomb Raider Level Editor & Utility Discussion Forum