Searched refs:velx (Results 1 - 7 of 7) sorted by relevance

/netbsd-current/games/warp/
H A Dthem.c58 obj->velx = 0; /* stop and munch amoeba */
61 obj->velx = (obj->image=='<' ? 1 : -1);
63 else if (!obj->velx) {
66 obj->velx = obj->image == '<' ? 1 : -1;
71 setimage(obj, (obj->velx *= -1) < 0 ? '>' : '<');
76 nuke->velx = nuke->vely = 0;
90 else if (curkl->vely || curkl->velx)
145 else if (!obj->vely && !obj->velx) {
192 x=(curkl->posx+curkl->velx+XSIZE00)%XSIZE; /* new position */
230 if (!obj->vely && !obj->velx
[all...]
H A Dweapon.c44 [(from->posx+from->velx+xdir+XSIZE00)%XSIZE];
45 if (from->type != Enemy || !to || to->vely || to->velx) {
49 to->velx += xdir;
54 from->vely+ydir,from->velx+xdir, 0L, 1L,&root);
61 from->vely+ydir,from->velx+xdir, 0L, 1L,&root);
69 from->vely+ydir,from->velx+xdir, 100L, 1L,&root);
85 from->vely+ydir,from->velx+xdir, 0L, 1L,&root);
150 && -dx + attackee->velx == obj->velx)
153 -dx + attackee->velx);
[all...]
H A Dplay.c63 evelx = ent->velx;
77 bvelx = base->velx;
116 ent->velx = evelx;
150 base->velx = bvelx;
157 [(curobj->posx+curobj->velx+XSIZE00)%XSIZE];
158 if (to && !to->vely && !to->velx) {
H A Dobject.h26 short velx, vely; member in struct:object
H A Dmove.c44 x = (obj->posx - sgn(obj->velx) + XSIZE00) % XSIZE;
59 obj->velx = 0;
89 if (curobj->vely || curobj->velx) {
97 x = (x + curobj->velx + XSIZE00) % XSIZE;
107 curobj->velx = rand_mod(3)-1;
110 curobj->vely = curobj->velx = 0;
156 if (curobj->velx)
193 (curobj->velx || curobj->vely ||
197 if (curobj->type == Crusher && curobj->velx) {
268 : (5+abs(ent->velx)
[all...]
H A Dobject.c43 obj->velx = vx;
H A Dus.c358 [x=(obj->posx+obj->velx+XSIZE00)%XSIZE]
380 obj->vely = obj->velx = 0;

Completed in 134 milliseconds