Board: Difference between revisions

From MZXWiki
Jump to navigation Jump to search
(Created page with "A '''Board''' is basically a playing field for which the game can take place in. ==Limitations== *Boards can range in size from 1x1 to a massive 32767x32767 **Extremely large bo...")
 
No edit summary
Line 5: Line 5:
**Extremely large boards will consume a massive block of memory. A board with the maximum dimensions would consume over 3 GB of memory.
**Extremely large boards will consume a massive block of memory. A board with the maximum dimensions would consume over 3 GB of memory.
**The BoardScan is a somewhat expensive routine that scans every square of the board every cycle for built-ins. The larger the board, the bigger the performance impact it can have on your game on slower computers. A good rule of thumb is to try to make boards not much larger than 1000x1000 in area.
**The BoardScan is a somewhat expensive routine that scans every square of the board every cycle for built-ins. The larger the board, the bigger the performance impact it can have on your game on slower computers. A good rule of thumb is to try to make boards not much larger than 1000x1000 in area.
*All boards must have one and only one instance of the player object.
*For a few [[Built-in|built-in objects]], there is a limit to how many can be placed on one board.
**All boards must have one and only one instance of the player object.
**Robots and scrolls are capped to 255 per board
 
 
[[Category:MegaZeux]]

Revision as of 19:53, 7 February 2011

A Board is basically a playing field for which the game can take place in.

Limitations

  • Boards can range in size from 1x1 to a massive 32767x32767
    • Extremely large boards will consume a massive block of memory. A board with the maximum dimensions would consume over 3 GB of memory.
    • The BoardScan is a somewhat expensive routine that scans every square of the board every cycle for built-ins. The larger the board, the bigger the performance impact it can have on your game on slower computers. A good rule of thumb is to try to make boards not much larger than 1000x1000 in area.
  • For a few built-in objects, there is a limit to how many can be placed on one board.
    • All boards must have one and only one instance of the player object.
    • Robots and scrolls are capped to 255 per board