Skip to navigation

Aviator on the BBC Micro

Placing objects on the map

Reconstructing the game's map from the data in the game code

If you were lucky enough to be in the market for a flight simulator in the early 1980s, then Aviator came with a pretty hefty bundle of goodies in the box - a relatively unusual event in those early days of home computing, when most games came packaged with no more than a tiny cassette inlay card and a bit of fancy cover art. Sure, Elite came along a bit later and really went to town (heck, you could hardly close the box!), but Aviator had already paved the way, arriving with a very generous manual for the time, a separate poster showing the game keys, a leaflet of loading instructions, and - last but very definitely not least - a foldout map of Aviator's world, which is essential for anyone trying to navigate their way around.

Here's what my copy of the printed map looks like (complete with authentic, 35-year-old fold lines):

Printed map of Aviator's worldPrinted map of Aviator's worldPrinted map of Aviator's world

This map is incredibly useful - not to mention, a great physical extra to bundle with the game - but how accurately does it match up with the 3D world in the game code? Let's take a look.

Object locations
---------------

The world of Aviator is made up entirely of lines, and these lines are grouped together to form objects. Some of these objects, such as aliens and bullets, are not always present in the world, but when they are they can move around. However, the bulk of the world is made up of static objects, such as bridges and towns, and they are always present and don't go anywhere.

As described in the deep dive on 3D objects, these static objects break down into four main groups:

  • The main objects: Acornsville, the runway, the lake/river, and the suspension bridge
  • The trees, of which there are two types: trees like the one next to the runway, and another design
  • The hills, of which there are two types: large hills and small hills
  • Fields, each of which has its own unique size and shape

All these objects have fixed locations on the map. To be more specific, an object's location is the location of that object's anchor point, and the lines in that object are stored as relative to the anchor point. The 3D world coordinates of these anchor points can be found in the (xObjectHi xObjectLo), (yObjectHi yObjectLo), (zObjectHi zObjectLo) tables, so it's relatively straightforward to pull these values out of the code and plot them on a map.

To start, here's a map showing the locations of the anchor points of the four main objects (the lake/river is made up of three objects):

Map of main objects in AviatorMap of main objects in AviatorMap of main objects in Aviator

The map area covers coordinates in the range 0 to &FFFF, or 0 to 65535. According to the manual, the map shows an area of approximately 15 miles across, so each square is approximately 1.875 miles across.

Next up are the anchor points of the trees. There are eight with the same design as the tree near the runway (object 6), and eight with a different design (object 7):

Map of trees in AviatorMap of trees in AviatorMap of trees in Aviator

Now for the hills. There are four small hills (object 8) and four large hills (object 9):

Map of hills in AviatorMap of hills in AviatorMap of hills in Aviator

And finally, there are 14 fields scattered around the world:

Map of fields in AviatorMap of fields in AviatorMap of fields in Aviator

The fields are where the aliens get spawned at the start of the Theme, where they begin gorging themselves on crops, before sprouting tentacles and heading for the town of Acornsville in the bottom-left corner.

Comparing with the printed map
------------------------------

If we put all the objects onto one map, we get this comprehensive, if slightly crowded world:

Map of Aviator's worldMap of Aviator's worldMap of Aviator's world

So how does this compare with the printed map? Let's put them next to each other, cropped to the same map area (and, for those browsing in a dark theme, with the same colour scheme):

Map of Aviator's worldMap of Aviator's worldMap of Aviator's worldMap of Aviator's world with grid

For the most part, this matches up reasonably well with the printed map that comes with the game, especially when you consider that the map generated from the source contains anchor points - so Acornsville, for example, is anchored in the bottom-left corner, but the actual town will be to the north and east of that anchor point (as is the case for all the objects), so the hand-drawn map isn't as far-off as it might appear.

There is one genuine discrepancy, though. In the printed map, there is an extra hill on the right edge of the map, to the northeast of the runway. This hill does not exist in the game, which is a bit of a mystery; perhaps it did exist at some point, when the printed map was drawn, but got removed later? After all, there are only four distinct hills in each of the two object groups in objects 8 and 9, but the code can support eight objects in each group, so the game could easily support an extra hill.

Unfortunately, the only other clue I've found is this scan of Geoff Crammond's original hand-drawn map, from this Tweet... but it doesn't quite stretch that far to the east, so the mystery of the missing hill will have to remain a mystery for a little longer.