Well, I've started to do Justin's parts.
[krufty_fps.git] / pack_out / run.xml
blob9cbb65ebf1fe5a6176d37d176f7cf7d1cae3a0ca
1 <?xml version="1.0" encoding="UTF-8"?>
2 <game>
4   <!--
5       The way this will work, is that various objects are defined in the
6       <def> section. Each of those can be instantiated multiple times, unless
7       defined to be single. There may be game objects or menu objects in there.
8   -->
10   <def>
12     <object>
13       <name>camera</name>
14       <script></script>
16       <tangible>0</tangible>
17       <type>camera</type>
19       <!--
20           
21           This, at the moment, can be camera, light, static {mesh}
22           particle {system}, skybox, skydome, terrain, text, empty.
23           
24           Although not all options are implemented yet. And these
25           only apply for the intangibles. All the tangibles can be
26           are animated mesh.
27           
28       -->
30     </object>
31     
32     <menu>
33       <name>credits</name>
34       
35       <elements>
36         <image name="background_image"
37                x="0"
38                y="0"
39                width="100"
40                height="100"
41                target="v "
42                parent="NONE"
43                text="credits.png">d
44         </image>
45         <button name="go_back"
46                 x="10"
47                 y="20"
48                 width="20"
49                 height="10"
50                 parent="background_image"
51                 target="self.engine.setMenu('main_menu')"
52                 text="Back to main menu...">
53         </button>
54         <label name="title"
55                x="35"
56                y="10"
57                width="20"
58                height="5"
59                target=""
60                parent="background_image"
61                text="Credits...">
62         </label>
63         <label name="joe#1"
64                x="35"
65                y="15"
66                width="20"
67                height="5"
68                target=""
69                parent="background_image"
70                text="Project Lead: Joe Lopatta">
71         </label>
72         <label name="modeling#1"
73                x="35"
74                y="20"
75                width="25"
76                height="7"
77                target=""
78                parent="background_image"
79                text="Modeling Lead: Joe Lopatta">
80         </label>
81         <label name="modeling#2"
82                x="35"
83                y="22"
84                width="25"
85                height="7"
86                target=""
87                parent="background_image"
88                text="Modeling: Calvin Strumsky">
89         </label>
90         <label name="imaging"
91                x="35"
92                y="27"
93                width="25"
94                height="5"
95                target=""
96                parent="background_image"
97                text="Imaging Lead: Joe Lopatta Imaging: Calvin Strumsky">
98         </label>
100         <label name="programming"
101                x="35"
102                y="35"
103                width="30"
104                height="7"
105                target=""
106                parent="background_image"
107                text="Programming Lead: Brian Caine Programming: Brian Caine">
108         </label>
109         <label name="prince"
110                x="35"
111                y="42"
112                width="40"
113                height="5"
114                target=""
115                parent="background_image"
116                text="Prince of Programming, his majesty: Brian Caine">
117         </label>
118         <label name="origins"
119                x="35"
120                y="50"
121                width="40"
122                height="5"
123                target=""
124                parent="background_image"
125                text="Original Universe Creators: Matt Dell / Joe Lopatta">
126         </label>
127         <label name="webhost"
128                x="35"
129                y="55"
130                width="20"
131                height="5"
132                target=""
133                parent="background_image"
134                text="Web Host: Brandon Brizzi">
135         </label>
136         <label name="design"
137                x="35"
138                y="60"
139                width="40"
140                height="10"
141                target=""
142                parent="background_image"
143                text="Design Consultants: Brandon Brizzi, Michael Bender,">
144         </label>
145         <label name="designcont"
146                x="35"
147                y="63"
148                width="40"
149                height="10"
150                target=""
151                parent="background_image"
152                text="Brandon Herlock, Jarred Fritz">
153         </label>
154         <label name="gamer_tag"
155                x="35"
156                y="67"
157                width="40"
158                height="5"
159                target=""
160                parent="background_image"
161                text="Gamer Tag - Joe Lopatta - XSOULSTEALERX">
162         </label>
163         <label name="pseudonym"
164                x="35"
165                y="72"
166                width="40"
167                height="5"
168                target=""
169                parent="background_image"
170                text="Internet Pseudonym - Brian Caine - canine">
171         </label>
172         <label name="most_important"
173                x="5"
174                y="90"
175                width="40"
176                height="7"
177                target=""
178                parent="background_image"
179                text="Thanks to the teacher whose classroom we used to make the game - Thank you Mrs. Wood">
180         </label>
182       </elements>
183     </menu>
185     <object>
186       <name>initial_script</name>
187       <script>main.sq</script>
189       <tangible>0</tangible>
190       <type>empty</type>
191     </object>
192     
193     <object>
195       <name>person</name>
196       <script></script>
198       <tangible>1</tangible>
199       <model>guy.3ds</model>
201       <!--
202       <textures>
203         <type>0</type>
204         <texture idx="1"></texture>
205       </textures>
207       The type tag is acquired from the Irrlicht documentation.
208       In this case, 0 means EMT_SOLID
209       -->
211     </object>
213     <menu>
214       <name>main_menu</name>
215       
216       <elements>
217         <image name="background_image"
218                x="0"
219                y="0"
220                width="100"
221                height="100"
222                target="v "
223                parent="NONE"
224                text="Titlescreen_texturized.png">
226         </image>
228         <button name="lan_match"
229                 x="5"
230                 y="10"
231                 width="25"
232                 height="10"
233                 target="self.engine.setMenu('lan_menu')"
234                 parent="background_image"
235                 text="LAN Match">
236         </button>
237 <!--
238         <button name="test"
239                 x="75"
240                 y="10"
241                 width="20"
242                 height="10"
243                 target="exec('the_engine.addFile(&quot;a_map.xml&quot;, &quot;run.xml&quot;)\nthe_engine.setMenu(&quot;game&quot;)')"
244                 text="Test"
245                 parent="">d
246         </button>-->
248         <button name="internet_match"
249                 x="5"
250                 y="25"
251                 width="25"
252                 height="10"
253                 target="print 'Internet Match: Not implemented yet.'"
254                 parent="background_image"
255                 text="Internet Match">
256         </button>
257         <button name="options"
258                 x="5"
259                 y="40"
260                 width="25"
261                 height="10"
262                 target="print 'Options: Not implemented yet.'"
263                 parent="background_image"
264                 text="Options">
265         </button>
266         <button name="credits"
267                 x="5"
268                 y="55"
269                 width="25"
270                 height="10"
271                 parent="background_image"
272                 target="self.engine.setMenu('credits')"
273                 text="Credits">
274         </button>
275         <button name="exit"
276                 x="5"
277                 y="70"
278                 width="25"
279                 height="10"
280                 parent="background_image"
281                 target="self.engine.killGame()"
282                 text="Exit">
283         </button>
284       </elements>
286     </menu>
288     <menu>
290       <name>not_implemented</name>
292       <elements>
294         <window name="message_box"
295                 x="0"
296                 y="0"
297                 width="25"
298                 height="25"
299                 target=""
300                 parent="NONE"
301                 text="Oops!">d
302         </window>
304         <label name="information"
305                x="5"
306                y="4"
307                width="15"
308                height="15"
309                target=""
310                parent="message_box"
311                text="Whatever you clicked on isn't implemented yet. Sorry">d
312         </label>
314         <button name="return_button"
315                 x="5"
316                 y="17"
317                 width="15"
318                 height="5"
319                 target="::hideAll();::addMenu(::return_string);"
320                 parent="message_box"
321                 text="Ok then.">d
322         </button>
324         <button name="secret"
325                 x="1"
326                 y="1"
327                 width="1"
328                 height="1"
329                 target="::hideMenu(&quot;not_implemented&quot;);
330                         ::addMenu(&quot;squirrel&quot;);"
331                 parent="message_box"
332                 text="">
333           d
334         </button>
336       </elements>
338     </menu>
340     <menu>
342       <name>lan_menu</name>
344       <elements>
346         <image name="background_image"
347                x="0"
348                y="0"
349                width="100"
350                height="100"
351                target="v "
352                parent="NONE"
353                text="server.png">d
354         </image>
356         <label name="title"
357                x="10"
358                y="5"
359                width="20"
360                height="5"
361                parent="background_image"
362                target=""
363                text="LAN Server List...">d
364         </label>
365         <button name="refresh_button"
366                 x="40"
367                 y="85"
368                 width="20"
369                 height="10"
370                 parent="background_image"
371                 target=""
372                 text="Refresh Server List">d
373         </button>
374         <button name="back_button"
375                 x="10"
376                 y="85"
377                 width="20"
378                 height="10"
379                 parent="background_image"
380                 target="self.engine.setMenu('main_menu')"
381                 text="Return to Main Menu">d
382         </button>
383         <button name="join_button"
384                 x="70"
385                 y="85"
386                 width="20"
387                 height="10"
388                 parent="background_image"
389                 target=""
390                 text="Join Server">d
391         </button>
392         <listbox name="server_list"
393                 x="10"
394                 y="10"
395                 width="28"
396                 height="70"
397                 parent="background_image"
398                 target=""
399                 text="">d
400         </listbox>
401         <label name="info_label"
402                 x="40"
403                 y="10"
404                 width="20"
405                 height="10"
406                 parent="background_image"
407                 target=""
408                 text="Server Information...">d
409         </label>
410         <listbox name="list_server"
411                  x="40"
412                  y="20"
413                  width="50"
414                  height="60"
415                  parent="background_image"
416                  target=""
417                  text="Server Information...">d
418         </listbox>
419       </elements>
420     </menu>
422     <object>
423       <name>net_script</name>
424       <script>net_script.py</script>
425       <tangible>0</tangible>
426       <model></model>
427     </object>
429     <menu>
430       <name>searching</name>
432       <elements>
433         <window name="searching_window"
434                 x="30"
435                 y="40"
436                 width="40"
437                 height="20"
438                 parent="NONE"
439                 target=""
440                 text="Searching...">d
441         </window>
442         <label name="info_label"
443                x="5"
444                y="5"
445                width="30"
446                height="10"
447                parent="searching_window"
448                target=""
449                text="Searching for servers...">d
450         </label>
451       </elements>
452     </menu>
454     <menu>
455       <name>net_menu</name>
457       <elements>
458         <label name="title"
459                x="5"
460                y="5"
461                width="30"
462                height="10"
463                parent="background_image"
464                target=""
465                text="Lobby">d
466         </label>
467         <listbox name="player_list"
468                  x="5"
469                  y="20"
470                  width="30"
471                  height="60"
472                  parent="background_image"
473                  target=""
474                  text="">d
475         </listbox>
476         <listbox name="chat_list"
477                  x="40"
478                  y="20"
479                  width="50"
480                  height="45"
481                  parent="background_image"
482                  target=""
483                  text="">d
484         </listbox>
485         <editbox name="chat"
486                  x="40"
487                  y="70"
488                  width="49"
489                  height="5"
490                  parent="background_image"
491                  target=""
492                  text="">
493         </editbox>
494         <button name="back_button"
495                 x="5"
496                 y="85"
497                 width="20"
498                 height="10"
499                 parent="background_image"
500                 target=""
501                 text="Leave Server">d
502         </button>
503         <button name="ready_button"
504                 x="35"
505                 y="85"
506                 width="20"
507                 height="10"
508                 parent="background_image"
509                 target=""
510                 text="Ready">d
511         </button>
512         <button name="start_button"
513                 x="65"
514                 y="85"
515                 width="20"
516                 height="10"
517                 parent="background_image"
518                 target=""
519                 text="Start">d
520         </button>
522         <image name="background_image"
523                x="0"
524                y="0"
525                width="100"
526                height="100"
527                target="v "
528                parent="NONE"
529                text="server.png">d
530         </image>
531       </elements>
533     </menu>
535     <menu>
537       <name>game</name>
539       <elements>
540         <button name="return_button"
541                 x="0"
542                 y="0"
543                 width="20"
544                 height="10"
545                 parent="background_image"
546                 target="exec('the_engine.app.remove(the_engine.main_container)\nthe_engine.removeFile(&quot;a_map.xml&quot;)')"
547                 text="Start">d
548         </button>
550       </elements>
551     </menu>
553   </def>
555   <instance>
556     <object name="net_script">net_script</object>
557     <!--
559         This is an example of a person instantiated, but we don't want that
560         for the run.xml file
562     <object name="person" position="1 0 1" torque="0 0 0" > </object>
563     -->
565     <menu>main_menu</menu>
567   </instance>
569 </game>