Back to index

freedink-data  1.08.20080920
S2-SEC3.c
Go to the documentation of this file.
00001 //script for tree
00002 
00003 void main( void )
00004 {
00005 preload_seq(167);
00006 
00007 }
00008 
00009 void die( void)
00010 {
00011 sp_seq(&missile_target, 20);
00012 playsound(6, 8000,0,&missile_target,0);
00013 wait(500);
00014 wait(500);
00015 playsound(43, 22050,0,0,0);
00016 
00017 &save_x = sp_x(&current_sprite, -1);
00018 &save_y = sp_y(&current_sprite, -1);
00019 int &mcrap = create_sprite(&save_x, &save_y, 7, 167, 1);
00020 sp_seq(&mcrap, 167);
00021 
00022 sp_brain(&current_sprite, 0);
00023 sp_size(&current_sprite, 100);
00024 sp_touch_damage(&current_sprite, -1);
00025 sp_seq(&current_sprite, 0);
00026 sp_pseq(&current_sprite, 89);
00027 sp_pframe(&current_sprite, 10);
00028 
00029 }
00030 
00031 void touch(void)
00032 {
00033 
00034 if (&life < 1) return;
00035 playsound(39, 22050,0,0,0);
00036 script_attach(1000);
00037 &player_map = 69;
00038 sp_x(1, 515);
00039 sp_y(1, 383);
00040 load_screen(69);
00041 draw_screen();
00042 kill_this_task();
00043 }