process setup_level(stage)
private
temp;
begin
switch (stage)
case 1:
gfx_background = 100; gfx_hardmap = 300; gfx_screen = 200; start_scroll(0, file_screen, gfx_screen, gfx_background, 0, 4);
get_point(file_screen, gfx_screen, 1, &x, &y); player(x, y); /* Player */
scroll[0].x0 = x - 160; scroll[0].y0 = 0; scroll[0].x1 = scroll[0].x0; scroll[0].y1 = 0;
/*----------------------------------------*/
from temp = 2 to 16; get_point(file_screen, gfx_screen, temp, &x, &y); goomba(x, y); end /* Goomba */
get_point(file_screen, gfx_screen, 17, &x, &y); koopa(x, y); /* Koopa */
from temp = 18 to 30; get_point(file_screen, gfx_screen, temp, &x, &y); block_coin(x, y, 0); end /* Block: Coin */
get_point(file_screen, gfx_screen, 31, &x, &y); block_crash(x, y, 2); /* Block: Crashable */
get_point(file_screen, gfx_screen, 32, &x, &y); block_crash(x, y, 2); /* Block: Crashable */
from temp = 33 to 57; get_point(file_screen, gfx_screen, temp, &x, &y); coin(x, y); end /* Coin */
get_point(file_screen, gfx_screen, 59, &x, &y); goomba(x, y); /* Goomba */
from temp = 60 to 87; get_point(file_screen, gfx_screen, temp, &x, &y); block_crash(x, y, 0); end /* Block: Crashable */
get_point(file_screen, gfx_screen, 58, &x, &y); final(x, y); /* Final */
from temp = 88 to 94; get_point(file_screen, gfx_screen, temp, &x, &y); water(x, y); end /* Water */
end
default:
gfx_background = 100; gfx_hardmap = 300; gfx_screen = 200; start_scroll(0, file_screen, gfx_screen, gfx_background, 0, 4);
title(); /* Titlescreen */
scroll[0].x0 = 0; scroll[0].y0 = 0; scroll[0].x1 = 0; scroll[0].y1 = 0;
/*----------------------------------------*/
from temp = 2 to 16; get_point(file_screen, gfx_screen, temp, &x, &y); goomba(x, y); end /* Goomba */
get_point(file_screen, gfx_screen, 17, &x, &y); koopa(x, y); /* Koopa */
from temp = 18 to 30; get_point(file_screen, gfx_screen, temp, &x, &y); block_coin(x, y, 0); end /* Block: Coin */
get_point(file_screen, gfx_screen, 31, &x, &y); block_crash(x, y, 2); /* Block: Crashable */
get_point(file_screen, gfx_screen, 32, &x, &y); block_crash(x, y, 2); /* Block: Crashable */
from temp = 33 to 57; get_point(file_screen, gfx_screen, temp, &x, &y); coin(x, y); end /* Coin */
get_point(file_screen, gfx_screen, 59, &x, &y); goomba(x, y); /* Goomba */
from temp = 60 to 87; get_point(file_screen, gfx_screen, temp, &x, &y); block_crash(x, y, 0); end /* Block: Crashable */
get_point(file_screen, gfx_screen, 58, &x, &y); final(x, y); /* Final */
from temp = 88 to 94; get_point(file_screen, gfx_screen, temp, &x, &y); water(x, y); end /* Water */
end
end
stageSizeX = graphic_info(file_screen, gfx_screen, g_wide);
stageSizeY = graphic_info(file_screen, gfx_screen, g_height);
player_time = 399; game = true;
// program_continue = true;
end
|