view test/putenemy.c @ 516:bfa4c834a3b8

data/text/rodata segment fix (incomplete)
author kono
date Mon, 26 Dec 2005 10:55:15 +0900
parents 5640fb7a270d
children ef225b589888
line wrap: on
line source

extern int printf(char *,...);
void
Putenemy(int charno,float x,float y,float sx,float sy,int move) {
     if(x)
          printf("#0004:%d %f %f %f %f %d\n",charno,x,y,sx,sy,move);
     else
          printf("#0006:check\n");
}
int
main()
{
     int ix=32,iy=32; float fx=32,fy=32;
     Putenemy(0,ix,iy,1,0,10);
     Putenemy(1,(float)ix,(float)iy,1,0,10);
     Putenemy(2,(float)ix,(float)iy,(float)ix,(float)iy,ix);
     Putenemy(3,(float)ix,(float)iy,(float)ix,0,ix);
     Putenemy(4,fx,fy,1,0,10);
}