Mercurial > hg > CbC > old > device
view test/putenemy.c @ 496:5640fb7a270d
more bugs...
author | kono |
---|---|
date | Thu, 22 Dec 2005 00:20:09 +0900 |
parents | cc1a5f764782 |
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); }