Basic game using accelerometer and LCD screen. You can move and dodge asteroids coming from both left and right. There is no scoring at the moment.

Dependencies:   C12832 FXOS8700Q mbed-rtos mbed

main.h

Committer:
co838_gtvl2
Date:
2016-02-16
Revision:
1:c6734b909bf0
Parent:
0:9ec880239b3c

File content as of revision 1:c6734b909bf0:

#ifndef _MAIN_H_
# define _MAIN_H_

# include "mbed.h"
# include "rtos.h"
# include "C12832.h"
# include "FXOS8700Q.h"

# define DISPLAY_X 127
# define DISPLAY_Y 31
# define DELTA_MOVE 1000.0f
# define DELTA_TIME 100
# define START_THREAD 999
# define MAX_ASTEROID_NBS 50
# define GENERATION_CYCLES 5

// # define _DEBUG
# undef _DEBUG

# if defined _DEBUG
extern Serial host;
# endif

#endif /* _MAIN_H_ */