Program CrashDIV;
Const
/*----------------------------------------*/
MAXSPRITES = 200;
MAXTILES = 500;
TILE_NONE = 0;
TILE_HARD = 1;
TILE_SOFT = 2;
TILE_KILL = 3;
TILE_SINK1 = 4;
TILE_SINK2 = 5;
TILE_SINK3 = 6;
TILE_SINK4 = 7;
TILE_TMILL = 8;
TILE_LIFT = 9;
/*----------------------------------------*/
Global
/*----------------------------------------*/
gfx_map;
gfx_tileset;
mapsize_x = 640;
mapsize_y = 336;
map[MAXTILES, MAXTILES];
spritesize_x = 32;
spritesize_y = 32;
tilesize_x = 32;
tilesize_y = 16;
tiletyp[] =
TILE_HARD, TILE_HARD, TILE_HARD, TILE_HARD,
TILE_SINK1, TILE_SINK2, TILE_SINK3, TILE_SINK4,
TILE_TMILL, TILE_KILL, TILE_HARD, TILE_SOFT,
TILE_HARD, TILE_KILL, TILE_KILL, TILE_KILL,
TILE_KILL, TILE_KILL, TILE_KILL, TILE_KILL,
TILE_KILL, TILE_HARD, TILE_HARD, TILE_HARD,
TILE_HARD, TILE_HARD, TILE_HARD, TILE_LIFT,
TILE_NONE, TILE_NONE
;
/*----------------------------------------*/
fpg_sprites;
gfx_overlay_vscan;
game = false;
procid_player;
proc_sprite[MAXSPRITES];
spriteno;
/*----------------------------------------*/
hiscore = 0;
lives = 0;
room = 0;
score = 0;
time = 0;
String os_player = "000000";
String os_time = "000000";
String os_top = "000000";
/*----------------------------------------*/
Local
anim;
animtimer;
dead;
gfx;
jump;
jump_offset;
jump_power;
nofall;
stop;
temp;
temp1;
temp2;
temp3;
xm;
ym;
Private
file_handle;
Begin
set_mode(m640x400); set_fps(30, 2);
End
|