A little addition.
[krufty_fps.git] / pack_out / run.xml
blob172d2f5f1107454fa78c6c9a7a870c456dc4befd
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="the_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"
73                x="35"
74                y="20"
75                width="25"
76                height="7"
77                target=""
78                parent="background_image"
79                text="Modeling Lead: Joe Lopatta Modeling: Calvin Strumsky">
80         </label>
81         <label name="imaging"
82                x="35"
83                y="27"
84                width="25"
85                height="5"
86                target=""
87                parent="background_image"
88                text="Imaging Lead: Joe Lopatta Imaging: Calvin Strumsky">
89         </label>
91         <label name="programming"
92                x="35"
93                y="35"
94                width="30"
95                height="7"
96                target=""
97                parent="background_image"
98                text="Programming Lead: Brian Caine Programming: Brian Caine">
99         </label>
100         <label name="prince"
101                x="35"
102                y="42"
103                width="40"
104                height="5"
105                target=""
106                parent="background_image"
107                text="Prince of Programming, his majesty: Brian Caine">
108         </label>
109         <label name="origins"
110                x="35"
111                y="50"
112                width="40"
113                height="5"
114                target=""
115                parent="background_image"
116                text="Original Universe Creators: Matt Dell / Joe Lopatta">
117         </label>
118         <label name="webhost"
119                x="35"
120                y="55"
121                width="20"
122                height="5"
123                target=""
124                parent="background_image"
125                text="Web Host: Brandon Brizzi">
126         </label>
127         <label name="design"
128                x="35"
129                y="60"
130                width="40"
131                height="10"
132                target=""
133                parent="background_image"
134                text="Design Consultants: Brandon Brizzi, Michael Bender,">
135         </label>
136         <label name="designcont"
137                x="35"
138                y="63"
139                width="40"
140                height="10"
141                target=""
142                parent="background_image"
143                text="Brandon Herlock, Jarred Fritz">
144         </label>
145         <label name="gamer_tag"
146                x="35"
147                y="67"
148                width="40"
149                height="5"
150                target=""
151                parent="background_image"
152                text="Gamer Tag - Joe Lopatta - XSOULSTEALERX">
153         </label>
154         <label name="pseudonym"
155                x="35"
156                y="72"
157                width="40"
158                height="5"
159                target=""
160                parent="background_image"
161                text="Internet Pseudonym - Brian Caine - canine">
162         </label>
163         <label name="most_important"
164                x="5"
165                y="90"
166                width="40"
167                height="7"
168                target=""
169                parent="background_image"
170                text="Thanks to the teacher whose classroom we used to make the game - Thank you Mrs. Wood">
171         </label>
173       </elements>
174     </menu>
176     <object>
177       <name>initial_script</name>
178       <script>main.sq</script>
180       <tangible>0</tangible>
181       <type>empty</type>
182     </object>
183     
184     <object>
186       <name>person</name>
187       <script></script>
189       <tangible>1</tangible>
190       <model>guy.3ds</model>
192       <!--
193       <textures>
194         <type>0</type>
195         <texture idx="1"></texture>
196       </textures>
198       The type tag is acquired from the Irrlicht documentation.
199       In this case, 0 means EMT_SOLID
200       -->
202     </object>
204     <menu>
205       <name>main_menu</name>
206       
207       <elements>
208         <image name="background_image"
209                x="0"
210                y="0"
211                width="100"
212                height="100"
213                target="v "
214                parent="NONE"
215                text="Titlescreen_texturized.png">
217         </image>
219         <button name="lan_match"
220                 x="5"
221                 y="10"
222                 width="25"
223                 height="10"
224                 target="the_engine.setMenu('lan_menu')"
225                 parent="background_image"
226                 text="LAN Match">
227         </button>
228         <button name="internet_match"
229                 x="5"
230                 y="25"
231                 width="25"
232                 height="10"
233                 target="print 'Internet Match: Not implemented yet.'"
234                 parent="background_image"
235                 text="Internet Match">
236         </button>
237         <button name="options"
238                 x="5"
239                 y="40"
240                 width="25"
241                 height="10"
242                 target="print 'Options: Not implemented yet.'"
243                 parent="background_image"
244                 text="Options">
245         </button>
246         <button name="credits"
247                 x="5"
248                 y="55"
249                 width="25"
250                 height="10"
251                 parent="background_image"
252                 target="the_engine.setMenu('credits')"
253                 text="Credits">
254         </button>
255         <button name="exit"
256                 x="5"
257                 y="70"
258                 width="25"
259                 height="10"
260                 parent="background_image"
261                 target="the_engine.running = 0"
262                 text="Exit">
263         </button>
264       </elements>
266     </menu>
268     <menu>
270       <name>not_implemented</name>
272       <elements>
274         <window name="message_box"
275                 x="0"
276                 y="0"
277                 width="25"
278                 height="25"
279                 target=""
280                 parent="NONE"
281                 text="Oops!">d
282         </window>
284         <label name="information"
285                x="5"
286                y="4"
287                width="15"
288                height="15"
289                target=""
290                parent="message_box"
291                text="Whatever you clicked on isn't implemented yet. Sorry">d
292         </label>
294         <button name="return_button"
295                 x="5"
296                 y="17"
297                 width="15"
298                 height="5"
299                 target="::hideAll();::addMenu(::return_string);"
300                 parent="message_box"
301                 text="Ok then.">d
302         </button>
304         <button name="secret"
305                 x="1"
306                 y="1"
307                 width="1"
308                 height="1"
309                 target="::hideMenu(&quot;not_implemented&quot;);
310                         ::addMenu(&quot;squirrel&quot;);"
311                 parent="message_box"
312                 text="">
313           d
314         </button>
316       </elements>
318     </menu>
320     <menu>
321       <name>squirrel</name>
322       <elements>
323         <window name="squirrel_window"
324                 x="25"
325                 y="25"
326                 width="50"
327                 height="20"
328                 target=""
329                 parent="NONE"
330                 text="Squirrel Console...">d
331         </window>
332         <editbox name="sq_command"
333                 x="5"
334                 y="5"
335                 width="40"
336                 height="5"
337                 target=""
338                 parent="squirrel_window"
339                 text="Type command here...">d
340         </editbox>
342         <button name="execute"
343                 x="5"
344                 y="10"
345                 width="40"
346                 height="5"
347                 target="::executeBuffer(
348                           ::getElementText(&quot;squirrel&quot;, &quot;sq_command&quot;),
349                           &quot;&quot;);
350                         ::hideMenu(&quot;squirrel&quot;);"
351                 parent="squirrel_window"
352                 text="Execute...">d
353         </button>
354       </elements>
355     </menu>
357     <menu>
359       <name>lan_menu</name>
361       <elements>
363         <image name="background_image"
364                x="0"
365                y="0"
366                width="100"
367                height="100"
368                target="v "
369                parent="NONE"
370                text="server.png">d
371         </image>
373         <label name="title"
374                x="10"
375                y="5"
376                width="20"
377                height="5"
378                parent="background_image"
379                target=""
380                text="LAN Server List...">d
381         </label>
382         <button name="refresh_button"
383                 x="40"
384                 y="85"
385                 width="20"
386                 height="10"
387                 parent="background_image"
388                 target=""
389                 text="Refresh Server List">d
390         </button>
391         <button name="back_button"
392                 x="10"
393                 y="85"
394                 width="20"
395                 height="10"
396                 parent="background_image"
397                 target="the_engine.setMenu('main_menu')"
398                 text="Return to Main Menu">d
399         </button>
400         <button name="join_button"
401                 x="70"
402                 y="85"
403                 width="20"
404                 height="10"
405                 parent="background_image"
406                 target=""
407                 text="Join Server">d
408         </button>
409         <listbox name="server_list"
410                 x="10"
411                 y="10"
412                 width="28"
413                 height="70"
414                 parent="background_image"
415                 target=""
416                 text="">d
417         </listbox>
418         <label name="info_label"
419                 x="40"
420                 y="10"
421                 width="20"
422                 height="10"
423                 parent="background_image"
424                 target=""
425                 text="Server Information...">d
426         </label>
427         <listbox name="list_server"
428                  x="40"
429                  y="20"
430                  width="50"
431                  height="60"
432                  parent="background_image"
433                  target=""
434                  text="Server Information...">d
435         </listbox>
436       </elements>
437     </menu>
439     <object>
440       <name>net_script</name>
441       <script>net_script.py</script>
442       <tangible>0</tangible>
443       <model></model>
444     </object>
446     <menu>
447       <name>searching</name>
449       <elements>
450         <window name="searching_window"
451                 x="30"
452                 y="40"
453                 width="40"
454                 height="20"
455                 parent="NONE"
456                 target=""
457                 text="Searching...">d
458         </window>
459         <label name="info_label"
460                x="5"
461                y="5"
462                width="30"
463                height="10"
464                parent="searching_window"
465                target=""
466                text="Searching for servers...">d
467         </label>
468       </elements>
469     </menu>
471     <menu>
472       <name>net_menu</name>
474       <elements>
475         <label name="title"
476                x="5"
477                y="5"
478                width="30"
479                height="10"
480                parent="background_image"
481                target=""
482                text="Lobby">d
483         </label>
484         <listbox name="player_list"
485                  x="5"
486                  y="20"
487                  width="30"
488                  height="60"
489                  parent="background_image"
490                  target=""
491                  text="">d
492         </listbox>
493         <listbox name="chat_list"
494                  x="40"
495                  y="20"
496                  width="50"
497                  height="45"
498                  parent="background_image"
499                  target=""
500                  text="">d
501         </listbox>
502         <editbox name="chat"
503                  x="40"
504                  y="65"
505                  width="50"
506                  height="5"
507                  parent="background_image"
508                  target="">
509         </editbox>
510         <button name="back_button"
511                 x="5"
512                 y="85"
513                 width="20"
514                 height="10"
515                 parent="background_image"
516                 target=""
517                 text="Leave Server">d
518         </button>
519         <button name="ready_button"
520                 x="35"
521                 y="85"
522                 width="20"
523                 height="10"
524                 parent="background_image"
525                 target=""
526                 text="Ready">d
527         </button>
528         <button name="start_button"
529                 x="65"
530                 y="85"
531                 width="20"
532                 height="10"
533                 parent="background_image"
534                 target=""
535                 text="Start">d
536         </button>
538         <image name="background_image"
539                x="0"
540                y="0"
541                width="100"
542                height="100"
543                target="v "
544                parent="NONE"
545                text="server.png">d
546         </image>
547       </elements>
549     </menu>
551   </def>
553   <instance>
554     <object name="net_script">net_script</object>
555     <!--
557         This is an example of a person instantiated, but we don't want that
558         for the run.xml file
560     <object name="person" position="1 0 1" torque="0 0 0" > </object>
561     -->
563     <menu>main_menu</menu>
565   </instance>
567 </game>