-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.inc
More file actions
41 lines (32 loc) · 1.1 KB
/
Copy pathgame.inc
File metadata and controls
41 lines (32 loc) · 1.1 KB
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
; #########################################################################
;
; game.inc - Includes for EECS205 Assignment 4/5
;
;
; #########################################################################
;; Library Definitions
MouseInfo STRUCT
horiz DWORD ?
vert DWORD ?
buttons DWORD ?
MouseInfo ENDS
MK_CONTROL = 0008h ;; The CTRL key is down.
MK_LBUTTON = 0001h ;; The left mouse button is down.
MK_MBUTTON = 0010h ;; The middle mouse button is down.
MK_RBUTTON = 0002h ;; The right mouse button is down.
MK_SHIFT = 0004h ;; The SHIFT key is down.
MK_XBUTTON1 = 0020h ;; The first X button is down.
MK_XBUTTON2 = 0040h ;; The second X button is down.
;; Library Functions
BlackStarField PROTO
DrawStr PROTO myStr:PTR BYTE, x:DWORD, y:DWORD, color:DWORD
;; Library Data
EXTERNDEF StarBitmap:EECS205BITMAP
EXTERNDEF MouseStatus:MouseInfo
EXTERNDEF KeyUp:DWORD
EXTERNDEF KeyDown:DWORD
EXTERNDEF KeyPress:DWORD
;; User Defined Functions
GameInit PROTO
GamePlay PROTO
CheckIntersect PROTO oneX:DWORD, oneY:DWORD, oneBitmap:PTR EECS205BITMAP, twoX:DWORD, twoY:DWORD, twoBitmap:PTR EECS205BITMAP