#include <eZ8.h>#include <sio.h>#include "asciidisplay.h"#include "ansi.h"#include "LED.h"#include "time.h"#include "buttons.h"#include "gameport.h"#include "ascii.h"#include "reflexball.h"
Go to the source code of this file.
Functions | |
| unsigned char | strlen_rom (rom const char *string) |
| void | printAscii (rom const char *str, unsigned char size) |
| void | printAsciiXY (rom const char *str, unsigned char size, unsigned char x, unsigned char y) |
| void | clearMenuBall (unsigned char x, unsigned char y) |
| void | drawMenuBall (unsigned char x, unsigned char y) |
| void | moveBall (char dir) |
| void | showWon () |
| void | showGameOver () |
| void | initStartMenu (unsigned char newX1, unsigned char newY1, unsigned char newX2, unsigned char newY2) |
| unsigned char | startMenu () |
| void | printMenu () |
| unsigned char | updateMenu () |
| void | calculateDifficulty () |
Variables | |
| const unsigned char | ballMenuYPos [4] = { 40, 48, 55, 64 } |
| const unsigned char | ballXPos = 85 |
| unsigned char | ballY |
| unsigned char | lastBallY |
| unsigned char | menuState |
| unsigned long | timer |
| unsigned char | oldButtonsWheel |
| unsigned char | oldButtonsBoard |
| unsigned char | xMin |
| unsigned char | yMin |
| unsigned char | xMax |
| unsigned char | yMax |
| const char * | startString = "Press any key to continue" |
| unsigned char strlen_rom | ( | rom const char * | string) |
Definition at line 24 of file asciidisplay.c.
| void printAscii | ( | rom const char * | str, |
| unsigned char | size | ||
| ) |
Definition at line 31 of file asciidisplay.c.
| void printAsciiXY | ( | rom const char * | str, |
| unsigned char | size, | ||
| unsigned char | x, | ||
| unsigned char | y | ||
| ) |
Definition at line 46 of file asciidisplay.c.
| void clearMenuBall | ( | unsigned char | x, |
| unsigned char | y | ||
| ) |
Definition at line 57 of file asciidisplay.c.
| void drawMenuBall | ( | unsigned char | x, |
| unsigned char | y | ||
| ) |
Definition at line 64 of file asciidisplay.c.
| void moveBall | ( | char | dir) |
Definition at line 77 of file asciidisplay.c.
| void showWon | ( | ) |
Definition at line 85 of file asciidisplay.c.
| void showGameOver | ( | ) |
Definition at line 121 of file asciidisplay.c.
| void initStartMenu | ( | unsigned char | newX1, |
| unsigned char | newY1, | ||
| unsigned char | newX2, | ||
| unsigned char | newY2 | ||
| ) |
Definition at line 195 of file asciidisplay.c.
| unsigned char startMenu | ( | ) |
Definition at line 214 of file asciidisplay.c.
| void printMenu | ( | ) |
Definition at line 246 of file asciidisplay.c.
| unsigned char updateMenu | ( | ) |
Definition at line 268 of file asciidisplay.c.
| void calculateDifficulty | ( | ) |
Definition at line 332 of file asciidisplay.c.
| const unsigned char ballMenuYPos[4] = { 40, 48, 55, 64 } |
Definition at line 12 of file asciidisplay.c.
| const unsigned char ballXPos = 85 |
Definition at line 13 of file asciidisplay.c.
| unsigned char ballY |
Definition at line 14 of file asciidisplay.c.
| unsigned char lastBallY |
Definition at line 14 of file asciidisplay.c.
| unsigned char menuState |
Definition at line 16 of file asciidisplay.c.
| unsigned long timer |
Definition at line 17 of file asciidisplay.c.
| unsigned char oldButtonsWheel |
Definition at line 18 of file asciidisplay.c.
| unsigned char oldButtonsBoard |
Definition at line 18 of file asciidisplay.c.
| unsigned char xMin |
Definition at line 20 of file asciidisplay.c.
| unsigned char yMin |
Definition at line 20 of file asciidisplay.c.
| unsigned char xMax |
Definition at line 20 of file asciidisplay.c.
| unsigned char yMax |
Definition at line 20 of file asciidisplay.c.
| const char* startString = "Press any key to continue" |
Definition at line 22 of file asciidisplay.c.
1.8.4