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