projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.18.tar.gz
[xscreensaver]
/
hacks
/
pacman_level.c
diff --git
a/hacks/pacman_level.c
b/hacks/pacman_level.c
index 12e148f403380cb9d9df01740b512f15c5b6db3c..d617942cf4613c057aa03164052e9a7f5a79ebe7 100644
(file)
--- a/
hacks/pacman_level.c
+++ b/
hacks/pacman_level.c
@@
-223,7
+223,7
@@
createjail (lev_t * level, const unsigned width, const unsigned height)
}
void
}
void
-get_jail_opening ( int *x, int *y)
+
pacman_
get_jail_opening ( int *x, int *y)
{
int xstart = LEVWIDTH / 2 - JAILWIDTH / 2;
int ystart = LEVHEIGHT / 2 - JAILHEIGHT / 2;
{
int xstart = LEVWIDTH / 2 - JAILWIDTH / 2;
int ystart = LEVHEIGHT / 2 - JAILHEIGHT / 2;
@@
-535,7
+535,7
@@
init_bonus_dots (pacmangamestruct *pp, lev_t * level)
}
int
}
int
-is_bonus_dot (pacmangamestruct *pp, int x, int y, int *idx)
+
pacman_
is_bonus_dot (pacmangamestruct *pp, int x, int y, int *idx)
{
int ret = False;
int i;
{
int ret = False;
int i;
@@
-557,21
+557,21
@@
check_bonus_idx (int idx)
}
int
}
int
-bonus_dot_eaten (pacmangamestruct *pp, int idx)
+
pacman_
bonus_dot_eaten (pacmangamestruct *pp, int idx)
{
check_bonus_idx (idx);
return pp->bonus_dots[idx].eaten;
}
void
{
check_bonus_idx (idx);
return pp->bonus_dots[idx].eaten;
}
void
-eat_bonus_dot (pacmangamestruct *pp, int idx)
+
pacman_
eat_bonus_dot (pacmangamestruct *pp, int idx)
{
check_bonus_idx (idx);
pp->bonus_dots[idx].eaten = True;
}
void
{
check_bonus_idx (idx);
pp->bonus_dots[idx].eaten = True;
}
void
-bonus_dot_pos (pacmangamestruct *pp, int idx, int *x, int *y)
+
pacman_
bonus_dot_pos (pacmangamestruct *pp, int idx, int *x, int *y)
{
check_bonus_idx (idx);
*x = pp->bonus_dots[idx].x;
{
check_bonus_idx (idx);
*x = pp->bonus_dots[idx].x;
@@
-595,7
+595,7
@@
frmtlevel (pacmangamestruct *pp, lev_t * level)
for (x = 0; x < LEVWIDTH; x++) {
if (checkset (level, x, y) == 0) {
for (x = 0; x < LEVWIDTH; x++) {
if (checkset (level, x, y) == 0) {
- if (is_bonus_dot (pp, x, y, &idx)) {
+ if (
pacman_
is_bonus_dot (pp, x, y, &idx)) {
frmtlev[y][x] = BLOCK_DOT_BONUS;
}
else {
frmtlev[y][x] = BLOCK_DOT_BONUS;
}
else {
@@
-709,7
+709,7
@@
countdots (pacmangamestruct *pp)
/* Creates a new level, and places that in the pacmangamestruct. */
int
/* Creates a new level, and places that in the pacmangamestruct. */
int
-createnewlevel (pacmangamestruct *pp)
+
pacman_
createnewlevel (pacmangamestruct *pp)
{
lev_t *level;
unsigned dirvec[1] = { GO_UP };
{
lev_t *level;
unsigned dirvec[1] = { GO_UP };
@@
-749,7
+749,7
@@
createnewlevel (pacmangamestruct *pp)
/* Checks if a position is allowable for ghosts/pacs to enter. */
int
/* Checks if a position is allowable for ghosts/pacs to enter. */
int
-check_pos (pacmangamestruct * pp, int y, int x, int ghostpass)
+
pacman_
check_pos (pacmangamestruct * pp, int y, int x, int ghostpass)
{
if ((pp->level[y * LEVWIDTH + x] == BLOCK_DOT_2) ||
(pp->level[y * LEVWIDTH + x] == BLOCK_EMPTY) ||
{
if ((pp->level[y * LEVWIDTH + x] == BLOCK_DOT_2) ||
(pp->level[y * LEVWIDTH + x] == BLOCK_EMPTY) ||
@@
-762,7
+762,7
@@
check_pos (pacmangamestruct * pp, int y, int x, int ghostpass)
/* Checks if there is a dot on the specified position in the level. */
int
/* Checks if there is a dot on the specified position in the level. */
int
-check_dot (pacmangamestruct * pp, unsigned int x, unsigned int y)
+
pacman_
check_dot (pacmangamestruct * pp, unsigned int x, unsigned int y)
{
if (x >= LEVWIDTH || y >= LEVHEIGHT)
return 0;
{
if (x >= LEVWIDTH || y >= LEVHEIGHT)
return 0;