x 19 enemy.c putobject(mobj->currentobj, mobj->id, mobj->pos.x, mobj->pos.y); x 21 event.c printf("%f, %f, ",con->ev->pos.x, con->ev->pos.y); x 22 event.c printf("%f, %f, ",con->ev->vel.x, con->ev->vel.y); x 59 gameio.c void gameioput(int x, int y, char ch){ x 60 gameio.c mvaddch(y,x,ch); x 26 gameio.h void gameioput(int x, int y, char ch); x 31 gamemain.c putobject(*(mobj->obj), 0, mobj->pos.x, mobj->pos.y); x 48 gamemain.c pos.x++; x 52 gamemain.c pos.x--; x 69 gamemain.c int x,y; x 71 gamemain.c for(x=0;x<SCREENWIDTH;x++){ x 72 gamemain.c gameioput(x,y,dispbuffer[SCREENWIDTH*y+x]); x 89 gamemain.c gameioput(SCREENWIDTH+3,1,'0'+(int)mypos.x/10); x 90 gamemain.c gameioput(SCREENWIDTH+4,1,'0'+(int)mypos.x%10); x 29 gamemain2.c putobject(*(mobj->obj), mobj->id, mobj->pos.x, mobj->pos.y); x 33 gamemain2.c putobject(*(mobj->obj), 0, mobj->pos.x, mobj->pos.y); x 84 gamemain2.c pos.x++; x 88 gamemain2.c pos.x--; x 105 gamemain2.c int x,y; x 107 gamemain2.c for(x=0;x<SCREENWIDTH;x++){ x 108 gamemain2.c gameioput(x,y,dispbuffer[SCREENWIDTH*y+x]); x 130 gamemain2.c gameioput(SCREENWIDTH+3,1,'0'+(int)mypos.x/10); x 131 gamemain2.c gameioput(SCREENWIDTH+4,1,'0'+(int)mypos.x%10); x 142 gamemain2.c tmpv.x +=1; x 11 object.c ret->size.x = w; x 23 object.c void putobject(object* obj, int id, int x, int y){ x 25 object.c int w = obj->size.x; x 30 object.c putdata(x+j, y+i, obj->shape[i*w+j],(unsigned char)id); x 14 object.h void putobject(object* obj, int id, int x, int y); x 23 screen.c void putdata(int x, int y, unsigned char d, unsigned char c){ x 24 screen.c if(0<=x&&x<SCREENWIDTH && 0<=y && y<SCREENHEIGHT){ x 25 screen.c dispbuffer[SCREENWIDTH*y+x]=d; x 26 screen.c checkbuffer[SCREENWIDTH*y+x]=c; x 31 screen.c int x,y; x 34 screen.c for(x=0;x<obj->size.x;x++){ x 35 screen.c if(obj->shape[(int)(obj->size.x)*y+x] !=' '){ x 36 screen.c id = checkbuffer[SCREENWIDTH*((int)(pos.y)+y)+(int)(pos.x)+x]; x 19 screen.h void putdata(int x, int y, unsigned char d, unsigned char c); x 4 vector2.c vector2 makevector2(double x, double y){ x 6 vector2.c ret.x = x; x 13 vector2.c ret.x = a.x+b.x; x 19 vector2.c a->x = a->x+b->x; x 25 vector2.c ret.x = a.x-b.x; x 31 vector2.c a->x = a->x-b->x; x 36 vector2.c return a.x*b.x+a.y*b.y; x 5 vector2.h double x; x 9 vector2.h vector2 makevector2(double x, double y);