Missile Command Game
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
Diff: player_private.h
- Revision:
- 0:09aa1ecd6c39
- Child:
- 1:5724f2947554
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/player_private.h Wed Jun 24 21:09:03 2020 +0000 @@ -0,0 +1,38 @@ +//================================================================= +// The header file is for module "player" +// +// Copyright 2020 Georgia Tech. All rights reserved. +// The materials provided by the instructor in this course are for +// the use of the students currently enrolled in the course. +// Copyrighted course materials may not be further disseminated. +// This file must not be made publicly available anywhere. +//================================================================== + +#ifndef PLAYER_PRIVATE_H +#define PLAYER_PRIVATE_H + +#include "mbed.h" +#include "globals.h" +#include "player_public.h" + +//==== [private settings] ==== +#define PLAYER_INIT_X 60 +#define PLAYER_INIT_Y 100 +#define PLAYER_DELTA 3 // used in design of player, pixels to move, euclidean distance +#define PLAYER_WIDTH 10 +#define PLAYER_HEIGHT 3 +#define PLAYER_COLOR 0x0000FF //blue +#define PLAYER_MISSILE_SPEED 3 +#define PLAYER_MISSILE_COLOR 0x0000FF //blue + + +//==== [private type] ==== + +void player_draw(int color); +void player_missile_draw(PLAYER_MISSILE* missile, int color); + +//==== [private function] ==== + + +#endif //PLAYER_PRIVATE_H +