/[projet1]/users/chema/1337intro/main.c
Defence Force logotype

Contents of /users/chema/1337intro/main.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 379 - (show annotations)
Tue Aug 31 10:21:36 2010 UTC (9 years, 7 months ago) by Chema
File MIME type: text/plain
File size: 2789 byte(s)
1337 rotating logo added.
1 #include <stdio.h>
2 #include "oobj3d/obj3d.h"
3
4 #define A_FWBLACK 0
5 #define A_FWRED 1
6 #define A_FWGREEN 2
7 #define A_FWYELLOW 3
8 #define A_FWBLUE 4
9 #define A_FWMAGENTA 5
10 #define A_FWCYAN 6
11 #define A_FWWHITE 7
12 #define A_BGBLACK 16
13 #define A_BGRED 17
14 #define A_BGGREEN 18
15 #define A_BGYELLOW 19
16 #define A_BGBLUE 20
17 #define A_BGMAGENTA 21
18 #define A_BGCYAN 22
19 #define A_BGWHITE 23
20
21
22 /* Prototipes */
23
24 typedef struct t_obj
25 {
26 int CenterX,CenterY,CenterZ;
27 void * objp;
28 char ID;
29 char User;
30 char XRem, YRem, ZRem;
31 char orientation[18];
32 }t_obj;
33
34
35 extern t_obj * pointer;
36
37 extern void * LabelPictureFont;
38 extern void * BufferUnpack;
39 char X,Y,x,y;
40
41 char * p;
42
43
44 main()
45 {
46 switch_ovl();
47 InitIRQ();
48
49 DoubleBuffOff();
50 GenerateExtraTables();
51 SequenceDefenceForceLogo();
52 //Wait(8);
53
54 init_disk();
55 load_overlay();
56
57 InitIRQ();
58
59 DoubleBuffOn();
60 FontUnpack();
61 DoubleBuffOff();
62 FontInit();
63
64 CreditsElite();
65 Wait(15);
66
67 InitMusic();
68
69 clr_all();
70 p=(char *)(0xa000+40*49);
71 *p=A_BGBLUE;
72 p=(char *)(0xa000+40*151);
73 *p=A_BGBLUE;
74 DoubleBuffOn();
75 InitTestCode();
76 Test1337();
77 DoubleBuffOff();
78
79
80 ShowStory();
81 Wait(20);
82 BurnText();
83
84 /*
85 ShowStory2();
86 Wait(20);
87 BurnText();
88 */
89
90 clr_all();
91 p=(char *)(0xa000+40*49);
92 *p=A_BGBLUE;
93 p=(char *)(0xa000+40*151);
94 *p=A_BGBLUE;
95
96
97 FirstText();
98 Wait(8);
99
100 DoubleBuffOn();
101 InitTestCode();
102 clr_toparea();
103 FirstScene();
104 RotateThargoid();
105
106 DoubleBuffOff();
107 Dialogue1();
108 DoubleBuffOn();
109 RotateThargoid();
110 DoubleBuffOff();
111 Dialogue2();
112
113 DoubleBuffOn();
114 RotateThargoid();
115 ////RotateThargoid();
116
117 DoubleBuffOff();
118 ShowThargoid();
119 ////RotateThargoid();
120 Dialogue3();
121 Wait(15);
122 ////RotateThargoid();
123 Dialogue3b();
124 Wait(15);
125
126
127 ShowBadguy();
128 DoubleBuffOff();
129 Dialogue4();
130 Wait(25);
131 //Dialogue5();
132
133 ClearWideBuff();
134 Dialogue5();
135 DoubleBuffOn();
136 PutSun();
137 RotateThargoid();
138
139 DoubleBuffOff();
140 Dialogue6();
141
142 DoubleBuffOn();
143 RotateThargoid();
144 clr_bottomarea();
145 clr_toparea();
146 FinalScene();
147
148 FontUnpack();
149 DoubleBuffOff();
150
151 ShowStory2();
152 Wait(20);
153 BurnText();
154
155 Credits1();
156 Wait(6-2);
157 BurnText();
158
159 /*
160 Credits2();
161 Wait(2);
162 BurnText();
163 Wait(3-1);
164 */
165 Credits3();
166 Wait(5-1);
167 BurnText();
168
169 Credits4();
170 Wait(5-1);
171 BurnText();
172
173 Credits5();
174 Wait(5-1);
175 BurnText();
176
177 CreditsEnd();
178 Wait(5);
179 BurnText();
180 clr_all();
181
182
183 ShowLogo();
184 Wait(10);//20);
185 BurnText();
186 clr_all();
187 //Wait(5);
188
189 launch_game();
190
191 }
192
193
194 void launch_game()
195 {
196
197 clr_all();
198 StopMusic();
199 Wait(2);
200
201 reboot_oric();
202 }
203
204

  ViewVC Help
Powered by ViewVC 1.1.26