Back to index

freedink-data  1.08.20080920
START-1.c
Go to the documentation of this file.
00001 //for start button
00002 
00003 void main( void )
00004 {
00005 int &crap;
00006 
00007 }
00008 
00009 void buttonon( void )
00010 {
00011 sp_pframe(&current_sprite, 2);
00012 Playsound(20,22050,0,0,0);
00013 &crap = create_sprite(204, 86, 0, 199, 1);
00014 sp_reverse(&crap, 0);
00015 
00016 sp_noclip(&crap, 1);
00017 
00018 sp_seq(&crap, 199);
00019 
00020 }
00021 
00022 void buttonoff( void )
00023 {
00024 sp_pframe(&current_sprite, 1);
00025 Playsound(21,22050,0,0,0);
00026 sp_reverse(&crap, 1);
00027 sp_seq(&crap, 199);
00028 sp_brain(&crap, 7);
00029 
00030 }
00031 
00032 void click ( void )
00033 {
00034 //lets start a new game
00035 Say_xy("`%Creating new game...", 0, 390);
00036 wait(1);
00037    sp_x(1, 334);
00038    sp_y(1, 161);
00039    sp_base_walk(1, 70);
00040    sp_base_attack(1, 100);
00041     set_mode(2); //turn game on
00042 reset_timer();
00043     sp_dir(1, 4);
00044     sp_brain(1, 1);
00045     sp_que(1, 0);
00046     sp_noclip(1, 0);
00047     //lets give him fists to start out with
00048     add_item("item-fst",438, 1);
00049     &cur_weapon = 1;
00050      //arm them for him too
00051 //  initfont("SWEDISH");
00052     arm_weapon();
00053       //need this too
00054 kill_this_task();
00055 }