Comments (5)
The mini map doesn't, indeed. Instead, it just uses 2x1 pixels per tile.
from openloco.
More evidence that map sizes used to be 512x512: the map window allocates space for two maps of 0x90000 pixels each, or 768x768 pixels. This makes sense given the 45ΒΊ map projection, i.e. 512*1.5=768. This constant (and 769) shows up a bunch in my implementation #2443
from openloco.
That's really interesting! For reference, the diagonal length of a square is β2 * sideLength
from Pythagoras, so the diagonal length (and hence the height of the pixel grid/bitmap you would have to paint it on) would need to be 725 pixels minimum, not 768, though I realise 768 is a nice half-power-of-2 and that's why it was chosen.
β2 * 384 = 543.058...
β2 * 512 = 724.077...
Since the 384 one is greater than 512 pixels, that also makes sense why it was left at 768 and not reduced to 512 with the map size to 384, because that wouldn't have fit.
from openloco.
I was thinking it would have to do with the way tiles use an isometric projection, using 1.5 times the height for their width. However, I realise now that that was making it overly complicated: the reason the mini maps use two times the height to the width, is because every tile gets two pixels horizontally on the mini map! False alarm, heh.
from openloco.
The map doesn't use isometric projection though, so both of those reasons don't apply?
from openloco.
Related Issues (20)
- Create a all loaded objects of type iterator/function HOT 2
- Gridlines on landscape are toggled with the land window HOT 1
- Crash in alertCargoAcceptanceChange/MessageManager::post
- Set maximum width for the toolbars GUI HOT 4
- Multiple coal mines with the same name (minor) HOT 1
- Scenario editor: Can't change name of existing scenario HOT 3
- Scenario editor: Landscape generation options flickering HOT 2
- Allow trains to pass at junctions if the paths do not cross HOT 2
- Cannot unpause by pressing normal speed button while build when paused cheat active HOT 2
- "Deselect All" button in object selection window HOT 1
- "Deselct All" button in object selection HOT 1
- [Suggestion] Invert right mouse dragging apply to map dragging (minor)
- Leap Year π HOT 1
- Make bridges and stations transparent and show track / road
- Removal of structures HOT 8
- [BUG] Gridlines disappear after leaving construction mode HOT 1
- Crash on load up of Scenario with missing Objects HOT 3
- Don't show loading bar every Month HOT 1
- Rival companies having different vehicles. HOT 2
- The regular train has to wait longer for the upcoming express train
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openloco.