This code contains the game Starship designed for the STM32F429i-DISC1 board. It requires a keyboard to play.

Dependencies:   Starship LCD_DISCO_F429ZI USBHost mbed

Dependents:   Starship

Constants.h

Committer:
Oshyrath
Date:
2017-09-17
Revision:
0:c9afe145b57b
Child:
1:527a11035e0b

File content as of revision 0:c9afe145b57b:

#ifndef __CONSTS
#define __CONSTS
//LCD Size
#define LCD_WIDTH 272
#define LCD_HEIGHT 480
//ENEMY
#define ENEMY_WIDTH 4
#define ENEMY_HEIGHT 4
#define FREEZE_TIME 40
#define ENEMY_BULLET_WAIT_TIME 10
#define X_ID 0
#define Y_ID 1//DON'T delete
//BULLET
#define BULLET_SIZE 4
#define DEFAULT_BULLET_SPEED 10
//PLAYER
#define PLAYER_WIDTH ENEMY_WIDTH
#define PLAYER_HEIGHT ENEMY_HEIGHT
#define PLAYER_VELOCITY 10
#define SHIELD_TIME
#define RAPID_FIRE_TIME
#define WIDE_SHOT_TIME
#endif