projects
/
eradicate
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moving to RLE sprites instead of compiled sprites
[eradicate]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index
2ec7c45
..
238ee08
100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-3,7
+3,7
@@
int fb_width, fb_height;
long fb_size;
int fb_width, fb_height;
long fb_size;
-void *fb_pixels, *vmem;
+uint16_t *fb_pixels;
long time_msec;
long time_msec;
@@
-20,8
+20,7
@@
int init(int argc, char **argv)
return -1;
}
return -1;
}
- draw = intro_draw;
- key_event = intro_keyb;
+ intro_start();
return 0;
}
return 0;
}
@@
-30,3
+29,16
@@
void cleanup(void)
intro_cleanup();
menu_cleanup();
}
intro_cleanup();
menu_cleanup();
}
+
+void cs_puts_font(cs_font_func csfont, int sz, void *fb, int x, int y, const char *str)
+{
+ while(*str) {
+ int c = *str++;
+
+ if(c > ' ' && c < 128) {
+ csfont(fb, x, y, c - ' ');
+ }
+ x += sz;
+ }
+}
+