Add sound
This commit is contained in:
parent
be11c582b1
commit
67e0814afb
8 changed files with 124 additions and 94 deletions
39
assets.h
39
assets.h
|
@ -1,12 +1,13 @@
|
|||
#ifndef _LCR_ASSETS_H
|
||||
#define _LCR_ASSETS_H
|
||||
|
||||
/*
|
||||
/** @file assets.h
|
||||
|
||||
Licar: assets
|
||||
|
||||
This file holds assets, resources and other bigger pieces of data that will be
|
||||
compiled right into the executable. This is so that for a minimal version of
|
||||
the game a filesystem is not needed.
|
||||
This file holds assets, resources and other bigger pieces of data that are to
|
||||
be compiled right into the executable. This is so that for a minimal version
|
||||
of the game a filesystem is not required.
|
||||
|
||||
NOTES:
|
||||
- All images are 64x64, stored in an indexed mode (8bits pery pixel), the
|
||||
|
@ -103,23 +104,23 @@ struct
|
|||
const uint8_t *image;
|
||||
} LCR_currentImage;
|
||||
|
||||
/*
|
||||
Font characters are kind of "segmented display" characters, encoded with 16
|
||||
bits (each for one segment) like this (numbered from LSB):
|
||||
|
||||
__0__ __2__
|
||||
|\12 |\13 |
|
||||
1| \ 5| \ 9|
|
||||
| \ | \ |
|
||||
|__4\_|__6\_|
|
||||
|\14 |\15 |
|
||||
3| \ 7| \ 11|
|
||||
| \ | \ |
|
||||
|__8\_|_10\_|
|
||||
*/
|
||||
|
||||
uint16_t LCR_getFontChar(char c)
|
||||
{
|
||||
/*
|
||||
Font consists of kind of "segmented display" characters, encoded with 16
|
||||
bits (each for one segment) like this (numbered from LSB):
|
||||
|
||||
__0__ __2__
|
||||
|\12 |\13 |
|
||||
1| \ 5| \ 9|
|
||||
| \ | \ |
|
||||
|__4\_|__6\_|
|
||||
|\14 |\15 |
|
||||
3| \ 7| \ 11|
|
||||
| \ | \ |
|
||||
|__8\_|_10\_|
|
||||
*/
|
||||
|
||||
#define _F(a,b,c,d,e,f,g,h,i,j) return (1 << a) | (1 << b) | (1 << c) | (1 <<\
|
||||
d) | (1 << e) | (1 << f) | (1 << g) | (1 << h) | (1 << i) | (1 << j); break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue