#include <eZ8.h>#include <sio.h>#include "reflexball.h"#include "time.h"#include "levels.h"#include "LED.h"#include "ascii.h"#include "asciidisplay.h"
Go to the source code of this file.
Functions | |
| void | printLevel () |
| void | printLives () |
| void | printScore () |
| void | showScoreLED () |
| void | scrollLiveInGameLED () |
| void | scrollLevelUp () |
| void | scrollAll () |
| void | dead () |
| unsigned char | getTerminalCoordinate (long input) |
| void | gotoxyBall (long x, long y) |
| void | clearBigBall (long x, long y) |
| void | drawBigBall () |
| void | drawBrick (Brick *brick) |
| void | checkIteration (unsigned char x, unsigned char y) |
| void | setBallPos (unsigned char x, unsigned char y) |
| void | iterate () |
| void | drawStriker () |
| void | ballPosStriker () |
| void | moveStriker (char dir) |
| void | initStriker (unsigned char x, unsigned y, unsigned char width) |
| void | stopGame () |
| void | initBricks (char clear) |
| void | startGame () |
| void | updateGame () |
| void | initBall () |
| void | drawLevel (char clear) |
| void | levelUp () |
| void | initReflexBall (unsigned char newX1, unsigned char newY1, unsigned char newX2, unsigned char newY2, char style) |
Variables | |
| Ball | ball |
| Striker | striker |
| Brick | bricks [BRICK_TABLE_HEIGHT][BRICK_TABLE_WIDTH] |
| unsigned char | strikerAngle [STRIKER_MAX_WIDTH/2-1+BALL_WIDTH/2-1] |
| unsigned int | bricksLives |
| unsigned long | gameTimer |
| unsigned char | gameStarted |
| unsigned char | alive |
| unsigned char | x1 |
| unsigned char | y1 |
| unsigned char | x2 |
| unsigned char | y2 |
| unsigned int | score |
| unsigned int | levelScore |
| unsigned char | divider |
| unsigned char | strikerWidth |
| unsigned char | lives |
| unsigned char | level |
| volatile char | runOnceBuf [50] |
| volatile char | ledBuf [50] |
| char | drawCounter = 0 |
| char | drawCounterMax = 1 |
| char | drawBallNow |
| long | lastX |
| long | lastY |
| unsigned char | restartGame |
| void printLevel | ( | ) |
Definition at line 34 of file reflexball.c.
| void printLives | ( | ) |
Definition at line 38 of file reflexball.c.
| void printScore | ( | ) |
Definition at line 42 of file reflexball.c.
| void showScoreLED | ( | ) |
Definition at line 47 of file reflexball.c.
| void scrollLiveInGameLED | ( | ) |
Definition at line 51 of file reflexball.c.
| void scrollLevelUp | ( | ) |
Definition at line 57 of file reflexball.c.
| void scrollAll | ( | ) |
Definition at line 63 of file reflexball.c.
| void dead | ( | ) |
Definition at line 70 of file reflexball.c.
| unsigned char getTerminalCoordinate | ( | long | input) |
Definition at line 87 of file reflexball.c.
| void gotoxyBall | ( | long | x, |
| long | y | ||
| ) |
Definition at line 93 of file reflexball.c.
| void clearBigBall | ( | long | x, |
| long | y | ||
| ) |
Definition at line 97 of file reflexball.c.
| void drawBigBall | ( | ) |
Definition at line 104 of file reflexball.c.
| void drawBrick | ( | Brick * | brick) |
Definition at line 123 of file reflexball.c.
| void checkIteration | ( | unsigned char | x, |
| unsigned char | y | ||
| ) |
Definition at line 145 of file reflexball.c.
| void setBallPos | ( | unsigned char | x, |
| unsigned char | y | ||
| ) |
Definition at line 370 of file reflexball.c.
| void iterate | ( | ) |
Definition at line 375 of file reflexball.c.
| void drawStriker | ( | ) |
Definition at line 383 of file reflexball.c.
| void ballPosStriker | ( | ) |
Definition at line 395 of file reflexball.c.
| void moveStriker | ( | char | dir) |
Definition at line 401 of file reflexball.c.
| void initStriker | ( | unsigned char | x, |
| unsigned | y, | ||
| unsigned char | width | ||
| ) |
Definition at line 432 of file reflexball.c.
| void stopGame | ( | ) |
Definition at line 454 of file reflexball.c.
| void initBricks | ( | char | clear) |
Definition at line 458 of file reflexball.c.
| void startGame | ( | ) |
Definition at line 478 of file reflexball.c.
| void updateGame | ( | ) |
Definition at line 515 of file reflexball.c.
| void initBall | ( | ) |
Definition at line 531 of file reflexball.c.
| void drawLevel | ( | char | clear) |
Definition at line 537 of file reflexball.c.
| void levelUp | ( | ) |
Definition at line 560 of file reflexball.c.
| void initReflexBall | ( | unsigned char | newX1, |
| unsigned char | newY1, | ||
| unsigned char | newX2, | ||
| unsigned char | newY2, | ||
| char | style | ||
| ) |
Definition at line 578 of file reflexball.c.
| Ball ball |
Definition at line 10 of file reflexball.c.
| Striker striker |
Definition at line 11 of file reflexball.c.
| Brick bricks[BRICK_TABLE_HEIGHT][BRICK_TABLE_WIDTH] |
Definition at line 12 of file reflexball.c.
| unsigned char strikerAngle[STRIKER_MAX_WIDTH/2-1+BALL_WIDTH/2-1] |
Definition at line 13 of file reflexball.c.
| unsigned int bricksLives |
Definition at line 14 of file reflexball.c.
| unsigned long gameTimer |
Definition at line 16 of file reflexball.c.
| unsigned char gameStarted |
Definition at line 17 of file reflexball.c.
| unsigned char alive |
Definition at line 17 of file reflexball.c.
| unsigned char x1 |
Definition at line 19 of file reflexball.c.
| unsigned char y1 |
Definition at line 19 of file reflexball.c.
| unsigned char x2 |
Definition at line 19 of file reflexball.c.
| unsigned char y2 |
Definition at line 19 of file reflexball.c.
| unsigned int score |
Definition at line 21 of file reflexball.c.
| unsigned int levelScore |
Definition at line 21 of file reflexball.c.
| unsigned char divider |
Definition at line 22 of file reflexball.c.
| unsigned char strikerWidth |
Definition at line 23 of file reflexball.c.
| unsigned char lives |
Definition at line 25 of file reflexball.c.
| unsigned char level |
Definition at line 25 of file reflexball.c.
| volatile char runOnceBuf[50] |
Definition at line 26 of file reflexball.c.
| volatile char ledBuf[50] |
Definition at line 26 of file reflexball.c.
| char drawCounter = 0 |
Definition at line 28 of file reflexball.c.
| char drawCounterMax = 1 |
Definition at line 28 of file reflexball.c.
| char drawBallNow |
Definition at line 29 of file reflexball.c.
| long lastX |
Definition at line 30 of file reflexball.c.
| long lastY |
Definition at line 30 of file reflexball.c.
| unsigned char restartGame |
Definition at line 32 of file reflexball.c.
1.8.4