chrismessina / micropolis

Automatically exported from code.google.com/p/micropolis
0 stars 0 forks source link

Spec out user interface for MicropolisCore #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Need to write a user interface specification, listing all the parts of the
user interface required to support a playable version of MicropolisCore. 

This first specification should just list stuff that's required to make it
playable, it's not a wish list for advanced features. Those should be
listed as separate issues. 

Original issue reported on code.google.com by simhac...@gmail.com on 1 Apr 2008 at 9:36

GoogleCodeExporter commented 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