Debian Codegraph @

soundtest/story/main.c

raw
1 void main(void)
2 {
3 //let's init all our globals
4
5 // These globals are REQUIRED by dink.exe (it directly uses them, removing
6 // any of these could result in a game crash.
7
8 make_global_int("&exp",0);
9 make_global_int("&strength", 3);
10 make_global_int("&defense", 0);
11 make_global_int("&cur_weapon", 0);
12 make_global_int("&cur_magic", 0);
13 make_global_int("&gold", 0);
14 make_global_int("&magic", 0);
15 make_global_int("&magic_level", 0);
16 make_global_int("&vision", 0);
17 make_global_int("&result", 0);
18 make_global_int("&speed", 1);
19 make_global_int("&timing", 0);
20 make_global_int("&lifemax", 10);
21 make_global_int("&life", 10);
22 make_global_int("&level", 1);
23 make_global_int("&player_map", 1);
24 make_global_int("&last_text", 0);
25 make_global_int("&update_status", 0);
26 make_global_int("&missile_target", 0);
27 make_global_int("&enemy_sprite", 0);
28 make_global_int("&magic_cost", 0);
29 make_global_int("&missle_source", 0);
30
31 //crap needed for misc
32 set_dink_speed(3);
33 sp_frame_delay(1,0);
34
35 debug("Dink started. Time to fight for your right to party.");
36 kill_this_task();
37 }