Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
vor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added area back to get_shape, bounce() uses area.
[vor.git]
/
sprite.h
diff --git
a/sprite.h
b/sprite.h
index
953d303
..
e1216cf
100644
(file)
--- a/
sprite.h
+++ b/
sprite.h
@@
-22,6
+22,7
@@
struct sprite {
int w, h;
int mask_w;
uint32_t *mask;
int w, h;
int mask_w;
uint32_t *mask;
+ uint32_t area;
};
Sprite *free_sprites[N_TYPES]; // lists of free sprites, by type.
};
Sprite *free_sprites[N_TYPES]; // lists of free sprites, by type.
@@
-50,6
+51,7
@@
struct ship {
int w, h;
int mask_w;
uint32_t *mask;
int w, h;
int mask_w;
uint32_t *mask;
+ uint32_t area;
// SHIP extras
int lives;
int jets;
// SHIP extras
int lives;
int jets;
@@
-65,6
+67,7
@@
struct rock {
int w, h;
int mask_w;
uint32_t *mask;
int w, h;
int mask_w;
uint32_t *mask;
+ uint32_t area;
// ROCK extras
int type;
};
// ROCK extras
int type;
};