Skip to content

Commit

Permalink
update documentation to include h and v flip
Browse files Browse the repository at this point in the history
  • Loading branch information
yeastplume committed Jun 15, 2020
1 parent f8552be commit 9ed1107
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/ex_004.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ And here's the result of assembling and poking all this data via the [tile_wall

The end result in both the BASIC and Assembly versions are the same. The assembly version is nice and fast. The BASIC version reminds me of a Next Generation episode where Picard experienced an entire lifetime in about 15 minutes elapsed time. You should have time to go and do something similar while you wait for the BASIC version to finish doing its thing.

## Horizontal and Vertical Flip

The more astute among you may have noticed the poorly-drawn set of symbols in the Tilemap:

![tile_wall tiles](images/04-tile_wall-006.png)

However if you look at the Imageset, only the first symbol is present:

![tile_wall tiles](images/04-tile_wall-007.png)

Non-text VERA display modes allow a vertical-flip and horizontal-flip flag to be set for each tile in a Tilemap, and the four tiles in our Aloevera Tilemap .png contain the unflipped original tile, the vertically-flipped version, the horizontally-flipped, and both flipped frames respectively. Aloevera is clever enough to recognise when an input Tile is the flipped version of a frame in the Imageset, and if it encouters a flipped tile it will output the original sorce index as well as the correct v and h flip fields at assembly time.

## More on Palette Alignment

For a bit of futher clarity of the alignment rules above, let's consider a brief example from one of Aloevera's automated tests. This is a 2 Frame Imageset targeted at 2BPP (4 Colour Mode). Thus, each tile in the Imageset consists of indices from a range of 4 colours, and each range must start on a multiple of 16:
Expand Down Expand Up @@ -83,6 +95,4 @@ There's still plenty of work and future possibilities for Aloevera's Tilemap sup

* The ability to 'append' maps together to create larger maps to be used in scrolling applications.
* A better method of specifying the foreground and background colours for each tile in Text_16 mode.
* 'Conflating' Tilemaps, essentially blowing Tilemap data to be the size of the target VERA map size.
* Support for Tile rotation
* Output assembly code that does the Tilemap loading
Binary file modified docs/images/04-tile_wall-001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/04-tile_wall-002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/04-tile_wall-003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/04-tile_wall-006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/04-tile_wall-007.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9ed1107

Please sign in to comment.