..推箱子..nographics
c语言吧
全部回复
仅看楼主
level 7
/* Script of Boxer */
#include "conio.h"#
include "bios.h"
#include "stdlib.h"#
include "stdio.h"
#define WALL 9#
define EMPTY 0
#define BOX 1#
define TARGET 2
#define BOXTARGET 3#
define ME 4
#define UP 18432#
define DOWN 20480
#define LEFT 19200#
define RIGHT 19712/*Function*/void load();void game();void walk(int x,int y);void draw();void win();/*Variables*/int map[10][10];int xmax,ymax,n;int thepoint;/*Struct*/struct object{ int x; int y;}man;void load(){ FILE *in; int i,j; in=fopen("map.txt","r"); fscanf(in,"%d %d %d\n",&xmax,&ymax,&n); for(i=0;i
2007年12月31日 07点12分 1
1