Back to index

freedink-data  1.08.20080920
S5-FGUY.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003 //kill door
00004 
00005  int &door = sp(2);
00006  sp_prop(&door, 0);
00007 
00008 
00009  //setup guy
00010 preload_seq(202);
00011 preload_seq(204);
00012 preload_seq(206);
00013 preload_seq(208);
00014 preload_Seq(70);
00015 preload_Seq(166);
00016 
00017  sp_base_walk(&current_sprite, 410);
00018  sp_speed(&current_sprite, 1);
00019  sp_brain(&current_sprite, 16);
00020  sp_hitpoints(&current_sprite, 100);
00021  sp_pseq(&temp1hold, 401);
00022  sp_pframe(&temp1hold, 1);
00023 
00024  preload_seq(411);
00025  preload_seq(413);
00026  preload_seq(415);
00027  preload_seq(417);
00028  preload_seq(419);
00029 
00030 wait(10);
00031 freeze(&temp1hold);
00032 freeze(&temp2hold);
00033 freeze(&temp3hold);
00034 freeze(1);
00035 wait(500);
00036   say_stop("`#Gwen!!!  Come to safety!", &temp2hold);
00037 wait(500);
00038   say_stop("`#Oh mother!  I've been so afraid!", &temp3hold);
00039 move_stop(&temp3hold, 3, 120,1);
00040 playsound(46, 22050, 0,0,0);
00041 wait(1300);
00042 say_stop("`2That sound...", &temp1hold);
00043 wait(1300);
00044 playsound(47, 22050, 0,0,0);
00045 wait(1300);
00046 
00047 //make dragon 1
00048 &temp4hold = create_sprite(300, 480, 0, 0, 0);
00049 
00050 sp_timing(&temp4hold, 66);
00051 sp_speed(&temp4hold, 1);
00052 sp_base_walk(&temp4hold, 200);
00053 
00054 freeze(&temp4hold);
00055 move_stop(&temp4hold, 8, 370,1);
00056 playsound(12, 22050, &temp3hold, 0,0);
00057 move_stop(&temp4hold, 6, 350,1);
00058 
00059 wait(500);
00060 move_stop(&temp3hold, 7, 93,1);
00061 move_stop(&temp3hold, 4, 80,1);
00062 wait(500);
00063 say_stop("`4Run from us no more, humans.", &temp4hold);
00064 wait(500);
00065 
00066 
00067 &temp5hold = create_sprite(670, 300, 0, 0, 0);
00068 sp_timing(&temp5hold, 66);
00069 sp_speed(&temp5hold, 1);
00070 sp_base_walk(&temp5hold, 200);
00071 
00072 freeze(&temp5hold);
00073 move_stop(&temp5hold, 4, 580,1);
00074 move_stop(&temp1hold, 4, 480,1);
00075 say_stop("`4Let us finish it.", &temp5hold);
00076 
00077 wait(500);
00078 say_stop("`2We will fight!", &temp1hold);
00079 wait(500);
00080 say_stop("`2Protect the women, Smallwood!", &temp1hold);
00081 
00082 unfreeze(1);
00083 unfreeze(&temp1hold);
00084 unfreeze(&temp2hold);
00085 unfreeze(&temp3hold);
00086 unfreeze(&temp4hold);
00087 unfreeze(&temp5hold);
00088 sp_script(&temp4hold, "en-drag");
00089 sp_script(&temp5hold, "en-drag");
00090 
00091 playmidi("1009");
00092 
00093 }
00094 
00095 void die( void )
00096 {
00097  //dink fails
00098 if (&life > 0)
00099 {
00100  say("Noooo!  The good father has died!  I HAVE FAILED!!!!!!!", 1);
00101  &life = 0;
00102 }
00103 }
00104 
00105