pcb and initial code from https://github.com/das-labor/borgware-2d.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
650 B
32 lines
650 B
15 years ago
|
#include <stdint.h>
|
||
|
#include "ball.h"
|
||
|
#include "score.h"
|
||
|
|
||
|
#ifndef PLAYFIELD_H
|
||
|
#define PLAYFIELD_H
|
||
|
|
||
|
/* entries for the playing field */
|
||
|
enum game_field_t
|
||
|
{
|
||
|
sp = 0, /* space */
|
||
|
b1 = 1, b2 = 2, b3 = 3, /* bricks */
|
||
|
bs = 4 /* solid (unbreakable) brick */
|
||
|
bl, /* ball */
|
||
|
rb, /* rebound */
|
||
|
};
|
||
|
|
||
|
|
||
|
/* @description draw the current field
|
||
|
*/
|
||
|
void playfield_draw();
|
||
|
|
||
|
/* @description set a field with given property.
|
||
|
*/
|
||
|
void playfield_set (uint8_t in_x, uint8_t in_y, enum game_field_t in_field);
|
||
|
|
||
|
/* @description Checks if there is an object in the way. If so, it returns 1
|
||
|
*/
|
||
|
uint8_t check_bounce (uint8_t in_x, uint8_t in_y);
|
||
|
|
||
|
#endif /* PLAYFIELD_H */
|