-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSGRender.h
62 lines (46 loc) · 1.65 KB
/
SGRender.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/// Space Game (name not final)
/// @file SGRender.h
/// Contains declarations for rendering functions that can be implemented
/// in different ways.
/// @author Koen Komeya <[email protected]>
/// @date 11/25/2017 ~
/// [Final project for CMPE-250 (Section 4: Thursday 11 AM - 1 PM)]
///----------------------------------------------------------------------------
/// E X P L A N A T I O N
///- - - - - - - - - - - -
///The screen starts at (0,40) in the upper left hand corner and goes to
/// (80,0) in the lower right hand corner.
///----------------------------------------------------------------------------
#ifndef SGRENDER_H
#define SGRENDER_H
/// Includes
#include "SpaceGame.h"
///----------------------------------------------------------------------------
/// @addtogroup Defines
/// @{
/// X Max of screen
#define SCREEN_WIDTH 80
/// Y Max of screen
#define SCREEN_HEIGHT 40
/// @}
///----------------------------------------------------------------------------
/// @addtogroup Major Functions
/// @{
/// @brief Initializes the renderer.
void initRenderer(void);
/// @brief Draw an alien; the specified location is if it is not swooping
void drawAlien(Alien *a, pos_t x, pos_t y);
/// @brief Draw player at the specified position
void drawPlayer(pos_t x, pos_t y);
/// @brief Draw an E1 at the specified position and direction
void drawE1(int8_t e1flags1, pos_t x, pos_t y, pos_t xd, pos_t yd);
void drawLevelScreen(int level, int lives, int score);
void drawMainMenu(void);
void drawGameOverScreen(int score);
void drawIntroduction1(void);
void drawInstructions(void);
void clearScreen(void);
void flushScreen(void);
void drawScore(int score);
/// @}
#endif