Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

cel7

A tiny grid-based game framework · By rxi

Default character atlas / palette

A topic by Rynelf created Oct 03, 2020 Views: 580 Replies: 2
Viewing posts 1 to 3
(2 edits)

What is the default character list/order?  Doesn't seem to follow ASCII. The default colours would be nice info as well.

edit: Just more info in general would be nice too. More info on memory layout, how the background colour in the maze demo was done, etc.
edit2: Figured out the palette.

Did anyone figure out the tiles/characters/bitmap used?

The first 32 characters of ASCII are non-printable. There is no point in storing them in the atlas. To get the character code in cel7 you just have to subtract 32 from the ASCII code. For example, 'a' in ASCII is 97, in cel7 it would be 97 - 32 = 65.

The color in cel7 is 4-bit, which means there are a total of 16 colors. You can change the color of the foreground and background. If you need to change the color of the background, you have to add the color of the background multiplied by 16. For example, (color 5) will give a bright green color to the foreground and black to the background, while (color (+ 5 (* 3 16)) - green on the foreground and orange on the background.

Here is the palette:

 Palette