Open GoogleCodeExporter opened 9 years ago
that would be really helpful, but not only the direction user->core but also
what's
needed to display the map... if you do a wikipage I could help, I'm sniffing
around
to test a little bit my gui-stuff with the micropolis-core :)
what I've found so far:
- tools to place roads, rails etc are available to the gui via tool.cpp
road_tool,
rail_tool or via "do_tool"
- to draw the map you can read "Map[x][y] & LOMASK" and use that as an index
into
tiles.png. to find out if the tile need to display missing power here's a
little bit
code:
int power = Map[x][y];
int tile = power & LOMASK;
if(tile >= TILE_COUNT)
tile -= TILE_COUNT;
if(power&ZONEBIT)
if(!(power&PWRBIT))
tile = LIGHTNINGBOLT;
I don't know the meaning of the other bits in the upper word :/
Original comment by kai.jour...@gmail.com
on 4 Jul 2008 at 1:46
Original issue reported on code.google.com by
simhac...@gmail.com
on 1 Apr 2008 at 9:36