Map question

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
vldb
Engineer
Engineer
Posts: 3
Joined: 15 Feb 2023 22:34

Map question

Post by vldb »

Hi. I want to build similar map. Can someone explain a map logics?

How tiles placed on the screen?
vldb
Engineer
Engineer
Posts: 3
Joined: 15 Feb 2023 22:34

Re: Map question

Post by vldb »

Does anyone know what mapmaxX do?
Eddi
Tycoon
Tycoon
Posts: 8267
Joined: 17 Jan 2007 00:14

Re: Map question

Post by Eddi »

when you say "similar", which layer of the map do you mean?
  1. the way a tile is drawn on the screen?
  2. the way a tile is stored inside the map?
  3. the way the tiles are arranged on the screen?
  4. the way the tiles are organized in the internal storage?
MapMaxX is part of the 4th question. internally the tiles are organized in a straight line ("array"), and MapMaxX/MapMaxY are helpers to determine where to cut this straight line to make multiple parallel lines of tiles.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 34 guests