<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Life Outside PLT1</title>
	<atom:link href="http://www.plt1.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.plt1.com</link>
	<description>Five hour breaks destroy your soul</description>
	<pubDate>Sat, 16 Aug 2008 06:25:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>WELCOME TO AMERICA</title>
		<link>http://www.plt1.com/1184/welcome-to-america/</link>
		<comments>http://www.plt1.com/1184/welcome-to-america/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 06:25:07 +0000</pubDate>
		<dc:creator>Balinor</dc:creator>
		
		<category><![CDATA[PXT]]></category>

		<guid isPermaLink="false">http://www.plt1.com/?p=1184</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.plt1.com/wp-content/uploads/2008/08/23cd820d5dc102c4f3e97098e1b7ed5c.jpg"><img src="http://www.plt1.com/wp-content/uploads/2008/08/23cd820d5dc102c4f3e97098e1b7ed5c.jpg" alt="" title="WELCOME TO AMERICA" width="500" height="490" class="alignnone size-full wp-image-1185" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.plt1.com/1184/welcome-to-america/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fuck pens. Also, gigantic image incoming.</title>
		<link>http://www.plt1.com/1178/fuck-pens-also-gigantic-image-incoming/</link>
		<comments>http://www.plt1.com/1178/fuck-pens-also-gigantic-image-incoming/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 16:43:19 +0000</pubDate>
		<dc:creator>Sicopath</dc:creator>
		
		<category><![CDATA[Pictures]]></category>

		<guid isPermaLink="false">http://www.plt1.com/?p=1178</guid>
		<description><![CDATA[Yeah yeah; here&#8217;s something i&#8217;ve been chipping away at.
Drawn in my old fixed perspective wooden doll style but hey, old habits die hard. You can&#8217;t teach an old dog new tricks because he&#8217;ll get tired. There&#8217;s more than one way to skin a cat but they&#8217;re all illegal.
Also, fuck cat and dog metaphors.

]]></description>
			<content:encoded><![CDATA[<p>Yeah yeah; here&#8217;s something i&#8217;ve been chipping away at.<br />
Drawn in my old fixed perspective wooden doll style but hey, old habits die hard. You can&#8217;t teach an old dog new tricks because he&#8217;ll get tired. There&#8217;s more than one way to skin a cat but they&#8217;re all illegal.<br />
Also, fuck cat and dog metaphors.</p>
<p><img src="http://www.plt1.com/wp-content/uploads/2008/08/template2.jpg" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.plt1.com/1178/fuck-pens-also-gigantic-image-incoming/feed/</wfw:commentRss>
		</item>
		<item>
		<title>My new Pelikan</title>
		<link>http://www.plt1.com/1171/my-new-pelikan/</link>
		<comments>http://www.plt1.com/1171/my-new-pelikan/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 07:47:36 +0000</pubDate>
		<dc:creator>InsanityPrawnBoy</dc:creator>
		
		<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://www.plt1.com/?p=1171</guid>
		<description><![CDATA[My latest (and 2nd to last for now) pen arrived today. It is a German made Pelikan M400 Tortoise with a Medium Nib. I picked it up from Trademe for $113 including shipping.
The M400 (like all of the Souverän Range) is a piston filler and as such holds a lot of ink. The medium nib, [...]]]></description>
			<content:encoded><![CDATA[<p>My latest (and 2nd to last for now) pen arrived today. It is a German made Pelikan M400 Tortoise with a Medium Nib. I picked it up from Trademe for $113 including shipping.</p>
<p>The M400 (like all of the Souverän Range) is a piston filler and as such holds a lot of ink. The medium nib, which writes a fine medium line, is a dry writer compared to my other pens. That been said by no means does it not lay down enough ink. The nib is smooth, the smoothest of my collection and the pen is very comfortable in my hands.</p>
<p>Overall I am extremely pleased with my purchase, especially I didn&#8217;t really mean to win the auction. I know  it sounds stupid but I placed my bid thinking that I would be out bid. I am now very pleased that I wasn&#8217;t!</p>
<p><a href="http://www.plt1.com/wp-content/uploads/2008/08/pelikanm400j.jpg"><img class="alignnone size-full wp-image-1172" title="pelikanm400j" src="http://www.plt1.com/wp-content/uploads/2008/08/pelikanm400j.jpg" alt="" width="500" height="373" /></a></p>
<p>P.S. If anyone is wanting to get into the <!-- page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } -->fabulous world of fountain pens, I recomend the $45 Lamy Safari (I have an Al-Star which is the metal version).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plt1.com/1171/my-new-pelikan/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Online Translators Suck</title>
		<link>http://www.plt1.com/1169/online-translators-suck/</link>
		<comments>http://www.plt1.com/1169/online-translators-suck/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 00:36:08 +0000</pubDate>
		<dc:creator>Balinor</dc:creator>
		
		<category><![CDATA[Kumara]]></category>

		<guid isPermaLink="false">http://www.plt1.com/?p=1169</guid>
		<description><![CDATA[&#8220;Preparing for English-speaking visitors, a restaurant in China recently ran its name through an online translator, took the result, then purchased and mounted a large sign displaying the English version of their name: Translate Server Error.&#8221;

Linky
]]></description>
			<content:encoded><![CDATA[<p>&#8220;Preparing for English-speaking visitors, a restaurant in China recently ran its name through an online translator, took the result, then purchased and mounted a large sign displaying the English version of their name: Translate Server Error.&#8221;</p>
<p><img src="http://adweek.blogs.com/adfreak/images/2008/07/10/translateservererror.jpg" alt="Translate Server Error" /></p>
<p><a href="http://adweek.blogs.com/adfreak/2008/07/then-well-grab.html">Linky</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.plt1.com/1169/online-translators-suck/feed/</wfw:commentRss>
		</item>
		<item>
		<title>O_o Guy Java Source Code and Game</title>
		<link>http://www.plt1.com/1154/o_o-guy-java-source-code-and-game/</link>
		<comments>http://www.plt1.com/1154/o_o-guy-java-source-code-and-game/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 11:46:42 +0000</pubDate>
		<dc:creator>Jeremy Read</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.plt1.com/?p=1154</guid>
		<description><![CDATA[As promised here&#8217;s the source code to O_o Guy (formerly known as Noodles). The code is a mess and there&#8217;s a lot of bugs, but it&#8217;s still playable.
Commands: Up/Down/Left/Right move our hero. R restarts the level.
And how can you not love a game with art like this?
If you just want to play: Click Here
Otherwise hit [...]]]></description>
			<content:encoded><![CDATA[<p>As promised here&#8217;s the source code to O_o Guy (formerly known as Noodles). The code is a mess and there&#8217;s a lot of bugs, but it&#8217;s still playable.</p>
<p>Commands: Up/Down/Left/Right move our hero. R restarts the level.</p>
<p>And how can you not love a game with art like this?<a href="http://www.plt1.com/O_o_guy.html"><img class="alignnone size-full wp-image-1160" title="o_oguy" src="http://www.plt1.com/wp-content/uploads/2008/08/o_oguy.png" alt="" width="640" height="440" /></a></p>
<p>If you just want to play: <a href="http://www.plt1.com/O_o_guy.html">Click Here</a></p>
<p>Otherwise hit read more for the source.<br />
<span id="more-1154"></span><br />
Everything needed to build: <a href="http://www.plt1.com/wp-content/uploads/2008/08/O_oguy.zip">Click Here</a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
</pre></td><td class="code"><pre class="java"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">O_oGuy</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.applet.*</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.*</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.*</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.*</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.event.*</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Main <span style="color: #000000; font-weight: bold;">extends</span> <span style="color: #003399;">Applet</span> <span style="color: #000000; font-weight: bold;">implements</span> <span style="color: #003399;">ActionListener</span>, <span style="color: #003399;">KeyListener</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> playingField<span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">enum</span> move <span style="color: #009900;">&#123;</span>
&nbsp;
        left,
        right,
        up,
        down,
        none,
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">enum</span> tile <span style="color: #009900;">&#123;</span>
&nbsp;
        clear<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>,
        wall<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>,
        box<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span>,
        boulder<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span>,
        hole<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span>,
        player<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span>,
        exit<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span>,
        lasergun<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span>,
        laserbeam<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">8</span><span style="color: #009900;">&#41;</span>,
        buttonswitch<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">9</span><span style="color: #009900;">&#41;</span>,
        butterswitchoff<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span>,
        vanushingblock<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">11</span><span style="color: #009900;">&#41;</span>,
        fluff<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">12</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">int</span> value<span style="color: #339933;">;</span>
&nbsp;
        tile<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> set<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            value <span style="color: #339933;">=</span> set<span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">int</span> tile<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">return</span> value<span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
    ArrayList<span style="color: #339933;">&lt;</span>Point<span style="color: #339933;">&gt;</span> myLasers <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ArrayList<span style="color: #339933;">&lt;</span>Point<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">boolean</span> boulderMovingState <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//Converse, player movement must be allowed</span>
    <span style="color: #000066; font-weight: bold;">int</span> playerX <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">int</span> playerY <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">int</span> boulderX <span style="color: #339933;">=</span> <span style="color: #cc66cc;">-1</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">int</span> boulderY <span style="color: #339933;">=</span> <span style="color: #cc66cc;">-1</span><span style="color: #339933;">;</span>
    move boulderDirection <span style="color: #339933;">=</span> move.<span style="color: #006633;">none</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">int</span> currentLevel <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #003399;">Image</span> img<span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">private</span> javax.<span style="color: #006633;">swing</span>.<span style="color: #003399;">Timer</span> t <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> javax.<span style="color: #006633;">swing</span>.<span style="color: #003399;">Timer</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">125</span>, <span style="color: #000000; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #003399;">Image</span> backBuffer<span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #003399;">Graphics</span> backG<span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> restartLevel<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        currentLevel<span style="color: #339933;">--;</span>
        nextLevel<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> nextLevel<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">//File myFile = new File(&quot;&quot;);</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #666666; font-style: italic;">//if (myFile.exists()) {</span>
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #666666; font-style: italic;">//Read the map!</span>
                currentLevel<span style="color: #339933;">++;</span>
&nbsp;
                <span style="color: #666666; font-style: italic;">//BufferedReader myReader = new BufferedReader(new FileReader(myFile));</span>
&nbsp;
                <span style="color: #003399;">InputStream</span> is <span style="color: #339933;">=</span> getClass<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getResourceAsStream</span><span style="color: #009900;">&#40;</span>currentLevel <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;.map&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #003399;">InputStreamReader</span> isr <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">InputStreamReader</span><span style="color: #009900;">&#40;</span>is<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #003399;">BufferedReader</span> myReader <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">BufferedReader</span><span style="color: #009900;">&#40;</span>isr<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                <span style="color: #000066; font-weight: bold;">int</span> sizex <span style="color: #339933;">=</span> <span style="color: #003399;">Integer</span>.<span style="color: #006633;">parseInt</span><span style="color: #009900;">&#40;</span>myReader.<span style="color: #006633;">readLine</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">int</span> sizey <span style="color: #339933;">=</span> <span style="color: #003399;">Integer</span>.<span style="color: #006633;">parseInt</span><span style="color: #009900;">&#40;</span>myReader.<span style="color: #006633;">readLine</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                playingField <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#91;</span>sizey<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>sizex<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
                myLasers.<span style="color: #006633;">clear</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                <span style="color: #666666; font-style: italic;">//char[] sep = { ',' };</span>
&nbsp;
                <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> y <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> y <span style="color: #339933;">&lt;</span> sizey<span style="color: #339933;">;</span> y<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
                    <span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> myLine <span style="color: #339933;">=</span> myReader.<span style="color: #006633;">readLine</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">split</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;,&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                    <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> x <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> x <span style="color: #339933;">&lt;</span> sizex<span style="color: #339933;">;</span> x<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                        <span style="color: #000066; font-weight: bold;">int</span> value <span style="color: #339933;">=</span> <span style="color: #003399;">Integer</span>.<span style="color: #006633;">parseInt</span><span style="color: #009900;">&#40;</span>myLine<span style="color: #009900;">&#91;</span>x<span style="color: #009900;">&#93;</span>.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>value <span style="color: #339933;">==</span> tile.<span style="color: #006633;">player</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                            playerX <span style="color: #339933;">=</span> x<span style="color: #339933;">;</span>
                            playerY <span style="color: #339933;">=</span> y<span style="color: #339933;">;</span>
                            <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;PLAYER SET&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                        <span style="color: #009900;">&#125;</span>
&nbsp;
                        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>value <span style="color: #339933;">==</span> tile.<span style="color: #006633;">lasergun</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                            myLasers.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Point</span><span style="color: #009900;">&#40;</span>x, y<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                        <span style="color: #009900;">&#125;</span>
&nbsp;
                        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>value <span style="color: #339933;">==</span> <span style="color: #cc66cc;">-1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                            value <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
                        <span style="color: #009900;">&#125;</span>
&nbsp;
                        playingField<span style="color: #009900;">&#91;</span>y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> value<span style="color: #339933;">;</span>
&nbsp;
                    <span style="color: #009900;">&#125;</span>
&nbsp;
                <span style="color: #009900;">&#125;</span>
                myReader.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                <span style="color: #666666; font-style: italic;">//this.Window.Title = &quot;Noodles map # &quot; + currentLevel;</span>
                <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">showStatus</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;O_o Guy map # &quot;</span> <span style="color: #339933;">+</span> currentLevel<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
        <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">IOException</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #666666; font-style: italic;">//IOException. This should NOT happen</span>
            currentLevel<span style="color: #339933;">--;</span>
            <span style="color: #003399;">System</span>.<span style="color: #006633;">err</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> movePlayer<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> x, <span style="color: #000066; font-weight: bold;">int</span> y<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        playingField<span style="color: #009900;">&#91;</span>playerY <span style="color: #339933;">+</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>playerX <span style="color: #339933;">+</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">;</span>
        playingField<span style="color: #009900;">&#91;</span>playerY<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>playerX<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
        playerX <span style="color: #339933;">=</span> playerX <span style="color: #339933;">+</span> x<span style="color: #339933;">;</span>
        playerY <span style="color: #339933;">=</span> playerY <span style="color: #339933;">+</span> y<span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> movePlayer<span style="color: #009900;">&#40;</span>move myMove<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
        <span style="color: #000066; font-weight: bold;">int</span> x <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">int</span> y <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">//We're moving in some direction!</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>myMove <span style="color: #339933;">==</span> move.<span style="color: #006633;">left</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            x <span style="color: #339933;">=</span> <span style="color: #cc66cc;">-1</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>myMove <span style="color: #339933;">==</span> move.<span style="color: #006633;">right</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            x <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>myMove <span style="color: #339933;">==</span> move.<span style="color: #006633;">up</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            y <span style="color: #339933;">=</span> <span style="color: #cc66cc;">-1</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>myMove <span style="color: #339933;">==</span> move.<span style="color: #006633;">down</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            y <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>playerY <span style="color: #339933;">+</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>playerX <span style="color: #339933;">+</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">clear</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #666666; font-style: italic;">//Nothing there</span>
                movePlayer<span style="color: #009900;">&#40;</span>x, y<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>playerY <span style="color: #339933;">+</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>playerX <span style="color: #339933;">+</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">box</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #666666; font-style: italic;">//Box is there</span>
&nbsp;
                <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>playerY <span style="color: #339933;">+</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">*</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>playerX <span style="color: #339933;">+</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">*</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">clear</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #666666; font-style: italic;">//Nothing</span>
                        <span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>playerY <span style="color: #339933;">+</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">*</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>playerX <span style="color: #339933;">+</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">*</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">laserbeam</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//Laser Beam</span>
                        <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    <span style="color: #666666; font-style: italic;">//Space behind it is clear</span>
                    playingField<span style="color: #009900;">&#91;</span>playerY <span style="color: #339933;">+</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">*</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>playerX <span style="color: #339933;">+</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">*</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> tile.<span style="color: #006633;">box</span>.<span style="color: #006633;">value</span><span style="color: #339933;">;</span>
                    movePlayer<span style="color: #009900;">&#40;</span>x, y<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>playerY <span style="color: #339933;">+</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>playerX <span style="color: #339933;">+</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">boulder</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #666666; font-style: italic;">// It's a boulder!</span>
&nbsp;
                <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>playerY <span style="color: #339933;">+</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">*</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>playerX <span style="color: #339933;">+</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">*</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">clear</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #666666; font-style: italic;">//Nothing </span>
                        <span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>playerY <span style="color: #339933;">+</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">*</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>playerX <span style="color: #339933;">+</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">*</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">hole</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #666666; font-style: italic;">//Hole</span>
                        <span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>playerY <span style="color: #339933;">+</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">*</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>playerX <span style="color: #339933;">+</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">*</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">laserbeam</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//Laser Beam </span>
                        <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    <span style="color: #666666; font-style: italic;">//That we need to move!</span>
&nbsp;
                    boulderMovingState <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span>
                    boulderX <span style="color: #339933;">=</span> playerX <span style="color: #339933;">+</span> x<span style="color: #339933;">;</span>
                    boulderY <span style="color: #339933;">=</span> playerY <span style="color: #339933;">+</span> y<span style="color: #339933;">;</span>
                    boulderDirection <span style="color: #339933;">=</span> myMove<span style="color: #339933;">;</span>
&nbsp;
                    <span style="color: #666666; font-style: italic;">//The boulder moves one square. Then it keeps moving until it hits something.</span>
                    moveBoulder<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                    <span style="color: #666666; font-style: italic;">//This needs to be done AFTER we move the boulder</span>
                    movePlayer<span style="color: #009900;">&#40;</span>x, y<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>playerY <span style="color: #339933;">+</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>playerX <span style="color: #339933;">+</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">exit</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #666666; font-style: italic;">//NEXT LEVEL</span>
                nextLevel<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>playerY <span style="color: #339933;">+</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>playerX <span style="color: #339933;">+</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">laserbeam</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #666666; font-style: italic;">//It's a laser! YOU DIE</span>
                restartLevel<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>playerY <span style="color: #339933;">+</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>playerX <span style="color: #339933;">+</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">buttonswitch</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #666666; font-style: italic;">//It's the switch!</span>
                clearVanishing<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>playerY <span style="color: #339933;">+</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>playerX <span style="color: #339933;">+</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">fluff</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #666666; font-style: italic;">//It's a piece of fluff</span>
                movePlayer<span style="color: #009900;">&#40;</span>x, y<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">Exception</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #666666; font-style: italic;">//DO NOTHING </span>
            <span style="color: #666666; font-style: italic;">//boulderMovingState = false;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> moveBoulder<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">int</span> x <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">int</span> y <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">//We're moving in some direction!</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>boulderDirection <span style="color: #339933;">==</span> move.<span style="color: #006633;">left</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            x <span style="color: #339933;">=</span> <span style="color: #cc66cc;">-1</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>boulderDirection <span style="color: #339933;">==</span> move.<span style="color: #006633;">right</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            x <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>boulderDirection <span style="color: #339933;">==</span> move.<span style="color: #006633;">up</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            y <span style="color: #339933;">=</span> <span style="color: #cc66cc;">-1</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>boulderDirection <span style="color: #339933;">==</span> move.<span style="color: #006633;">down</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            y <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
        <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>boulderY <span style="color: #339933;">+</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>boulderX <span style="color: #339933;">+</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">clear</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #666666; font-style: italic;">//Nothing</span>
                    <span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>boulderY <span style="color: #339933;">+</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>boulderX <span style="color: #339933;">+</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">laserbeam</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//Laser Beam</span>
                    <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                playingField<span style="color: #009900;">&#91;</span>boulderY <span style="color: #339933;">+</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>boulderX <span style="color: #339933;">+</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> tile.<span style="color: #006633;">boulder</span>.<span style="color: #006633;">value</span><span style="color: #339933;">;</span>
                playingField<span style="color: #009900;">&#91;</span>boulderY<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>boulderX<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> tile.<span style="color: #006633;">clear</span>.<span style="color: #006633;">value</span><span style="color: #339933;">;</span>
                boulderX <span style="color: #339933;">=</span> boulderX <span style="color: #339933;">+</span> x<span style="color: #339933;">;</span>
                boulderY <span style="color: #339933;">=</span> boulderY <span style="color: #339933;">+</span> y<span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
&nbsp;
                boulderMovingState <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #009900;">&#125;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>boulderY <span style="color: #339933;">+</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>boulderX <span style="color: #339933;">+</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">hole</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//Hole</span>
            <span style="color: #009900;">&#123;</span>
                playingField<span style="color: #009900;">&#91;</span>boulderY <span style="color: #339933;">+</span> y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>boulderX <span style="color: #339933;">+</span> x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> tile.<span style="color: #006633;">clear</span>.<span style="color: #006633;">value</span><span style="color: #339933;">;</span>
                playingField<span style="color: #009900;">&#91;</span>boulderY<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>boulderX<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> tile.<span style="color: #006633;">clear</span>.<span style="color: #006633;">value</span><span style="color: #339933;">;</span>
                boulderMovingState <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
        <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">Exception</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #666666; font-style: italic;">//DO NOTHING</span>
            boulderMovingState <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">false</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> clearVanishing<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #666666; font-style: italic;">//Clear all boxes</span>
        <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> x <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> x <span style="color: #339933;">&lt;</span> playingField.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> x<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> y <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> y <span style="color: #339933;">&lt;</span> playingField<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> y<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>x<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>y<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">vanushingblock</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    playingField<span style="color: #009900;">&#91;</span>x<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>y<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> tile.<span style="color: #006633;">clear</span>.<span style="color: #006633;">value</span><span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>x<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>y<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">buttonswitch</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    playingField<span style="color: #009900;">&#91;</span>x<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>y<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> tile.<span style="color: #006633;">butterswitchoff</span>.<span style="color: #006633;">value</span><span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
&nbsp;
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> RenderLasers<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">//Clear all the laser beams</span>
        <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> x <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> x <span style="color: #339933;">&lt;</span> playingField.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> x<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> y <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> y <span style="color: #339933;">&lt;</span> playingField<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> y<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>x<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>y<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">laserbeam</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    playingField<span style="color: #009900;">&#91;</span>x<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>y<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> tile.<span style="color: #006633;">clear</span>.<span style="color: #006633;">value</span><span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
&nbsp;
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> myLasers.<span style="color: #006633;">size</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #003399;">Point</span> myLaserPoint <span style="color: #339933;">=</span> myLasers.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            drawOneLaser<span style="color: #009900;">&#40;</span>myLaserPoint.<span style="color: #006633;">x</span>, myLaserPoint.<span style="color: #006633;">y</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> drawOneLaser<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> x, <span style="color: #000066; font-weight: bold;">int</span> y<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
        <span style="color: #000066; font-weight: bold;">int</span> myLaserPointX <span style="color: #339933;">=</span> x<span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">int</span> myLaserPointY <span style="color: #339933;">=</span> y<span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">//While next square is empty</span>
        <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i <span style="color: #339933;">=</span> x <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> playingField<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #666666; font-style: italic;">//The player is what is blocking the beam!</span>
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>myLaserPointY<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>myLaserPointX <span style="color: #339933;">+</span> i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">player</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                restartLevel<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>playingField<span style="color: #009900;">&#91;</span>myLaserPointY<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>myLaserPointX <span style="color: #339933;">+</span> i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> tile.<span style="color: #006633;">clear</span>.<span style="color: #006633;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                playingField<span style="color: #009900;">&#91;</span>myLaserPointY<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>myLaserPointX <span style="color: #339933;">+</span> i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> tile.<span style="color: #006633;">laserbeam</span>.<span style="color: #006633;">value</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    @Override
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> init<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
        addKeyListener<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #666666; font-style: italic;">//img = getImage(new URL(&quot;noodles.png&quot;));</span>
&nbsp;
            <span style="color: #666666; font-style: italic;">//img = getImage(new URL(&quot;http://sarah.plt1.com/upload/noodles.png&quot;));</span>
            <span style="color: #666666; font-style: italic;">//System.out.println(this.getCodeBase().getPath());</span>
&nbsp;
            img <span style="color: #339933;">=</span> getImage<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">getClass</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getResource</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;art.png&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">Exception</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #003399;">System</span>.<span style="color: #006633;">err</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        nextLevel<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        backBuffer <span style="color: #339933;">=</span> createImage<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">800</span>, <span style="color: #cc66cc;">600</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        backG <span style="color: #339933;">=</span> backBuffer.<span style="color: #006633;">getGraphics</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        backG.<span style="color: #006633;">setColor</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Color</span>.<span style="color: #006633;">BLACK</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        t.<span style="color: #006633;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//To make stuff work.</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
&nbsp;
    @Override
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> update<span style="color: #009900;">&#40;</span><span style="color: #003399;">Graphics</span> g<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        g.<span style="color: #006633;">drawImage</span><span style="color: #009900;">&#40;</span>backBuffer, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    @Override
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> paint<span style="color: #009900;">&#40;</span><span style="color: #003399;">Graphics</span> g<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        update<span style="color: #009900;">&#40;</span>g<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> oldPaint<span style="color: #009900;">&#40;</span><span style="color: #003399;">Graphics</span> g<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>playingField <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
            g.<span style="color: #006633;">drawImage</span><span style="color: #009900;">&#40;</span>img, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, playingField<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #006633;">length</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">48</span>, playingField.<span style="color: #006633;">length</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">48</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">48</span>, <span style="color: #cc66cc;">48</span>, <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            RenderLasers<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> x <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> x <span style="color: #339933;">&lt;</span> playingField.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> x<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> y <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> y <span style="color: #339933;">&lt;</span> playingField<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> y<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    <span style="color: #666666; font-style: italic;">//48 pixels!!!!</span>
                    <span style="color: #000066; font-weight: bold;">int</span> step <span style="color: #339933;">=</span> playingField<span style="color: #009900;">&#91;</span>x<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>y<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                    g.<span style="color: #006633;">drawImage</span><span style="color: #009900;">&#40;</span>img, y <span style="color: #339933;">*</span> <span style="color: #cc66cc;">48</span>, x <span style="color: #339933;">*</span> <span style="color: #cc66cc;">48</span>, y <span style="color: #339933;">*</span> <span style="color: #cc66cc;">48</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">48</span>, x <span style="color: #339933;">*</span> <span style="color: #cc66cc;">48</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">48</span>, step <span style="color: #339933;">*</span> <span style="color: #cc66cc;">48</span>, <span style="color: #cc66cc;">0</span>, step <span style="color: #339933;">*</span> <span style="color: #cc66cc;">48</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">48</span>, <span style="color: #cc66cc;">48</span>, <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> actionPerformed<span style="color: #009900;">&#40;</span><span style="color: #003399;">ActionEvent</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>boulderMovingState <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            moveBoulder<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        oldPaint<span style="color: #009900;">&#40;</span>backG<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        repaint<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    @SuppressWarnings<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;static-access&quot;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> keyPressed<span style="color: #009900;">&#40;</span><span style="color: #003399;">KeyEvent</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>boulderMovingState<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">getKeyCode</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> e.<span style="color: #006633;">VK_LEFT</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                movePlayer<span style="color: #009900;">&#40;</span>move.<span style="color: #006633;">left</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">getKeyCode</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> e.<span style="color: #006633;">VK_RIGHT</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                movePlayer<span style="color: #009900;">&#40;</span>move.<span style="color: #006633;">right</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">getKeyCode</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> e.<span style="color: #006633;">VK_UP</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                movePlayer<span style="color: #009900;">&#40;</span>move.<span style="color: #006633;">up</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">getKeyCode</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> e.<span style="color: #006633;">VK_DOWN</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                movePlayer<span style="color: #009900;">&#40;</span>move.<span style="color: #006633;">down</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">getKeyCode</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> e.<span style="color: #006633;">VK_R</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                restartLevel<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">getKeyCode</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> e.<span style="color: #006633;">VK_SCROLL_LOCK</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                nextLevel<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> keyReleased<span style="color: #009900;">&#40;</span><span style="color: #003399;">KeyEvent</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> keyTyped<span style="color: #009900;">&#40;</span><span style="color: #003399;">KeyEvent</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.plt1.com/1154/o_o-guy-java-source-code-and-game/feed/</wfw:commentRss>
		</item>
		<item>
		<title>28th June</title>
		<link>http://www.plt1.com/1147/28th-june-cs750/</link>
		<comments>http://www.plt1.com/1147/28th-june-cs750/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 08:16:49 +0000</pubDate>
		<dc:creator>Jeremy Read</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://www.plt1.com/?p=1147</guid>
		<description><![CDATA[Watched a world war two doco, it&#8217;s interesting. Watch it.
Another game for you to enjoy: Noodles
Up/Down/Left/Right for movement. R restarts the level. There&#8217;s only eight levels.
I&#8217;ll post the source code for you later.

CS750 Notes:
RELPRIME = { &#60;x,y&#62; &#124; x and y are relatively prime }
Theorem REPRIME ∈ P
Proof: To show Euclid&#8217;s GCD algorithm is in [...]]]></description>
			<content:encoded><![CDATA[<p>Watched a world war two doco, it&#8217;s interesting. <a href="http://nz.youtube.com/view_play_list?p=E3A58ECF9E021AE8">Watch it</a>.</p>
<p>Another game for you to enjoy: <a href="http://www.plt1.com/O_o_guy.html">Noodles</a></p>
<p>Up/Down/Left/Right for movement. R restarts the level. There&#8217;s only eight levels.</p>
<p>I&#8217;ll post the source code for you later.</p>
<p><span id="more-1147"></span></p>
<p>CS750 Notes:</p>
<p>RELPRIME = { &lt;x,y&gt; | x and y are relatively prime }</p>
<p>Theorem REPRIME ∈ P</p>
<p>Proof: To show <a href="http://en.wikipedia.org/wiki/Euclidean_algorithm">Euclid&#8217;s GCD algorithm</a> is in P , this suffices  since x and y are relatively prime iff GCD(x,y) = 1</p>
<p>Algorithm:</p>
<blockquote><p>Input &lt;x,y&gt; where x,y are binary non-negative integers</p>
<p>If y = 0 return x</p>
<p>Else return GCD(y, x mod y)</p></blockquote>
<p>Example: GCD(26,38)</p>
<blockquote><p>GCD(26,38) = GCD(38, 26 mod 38)<br />
GCD(38, 26) = GCD(26, 38 mod 26)<br />
GCD(26, 12) = GCD(12, 26 mod 12)<br />
GCD(12,2) = GCD(2, 12 mod 2)<br />
GCD(2,0) = 2</p>
<p>=&gt; not relatively prime</p></blockquote>
<p>Proof: Need to show there are O(poly(lg (x * y ) ) recursive calls since inpute size is lg x + lg y</p>
<p>Note after first call to GCD assigns x &gt; y</p>
<p>Thus x decreases on each call after that (since x mod y &lt; y , y is also strictly decreasing)</p>
<p>To complete the proof we show that x is halved every two calls, that is O(lgx) recursive calls to computer GCD.</p>
<blockquote><p>If x &gt;= 2y then x&#8217; &lt;= x /2   (halved in one step)</p>
<p>Else x&lt;2y then y&#8217; = x mod y = x - y &lt; x - x/2 = x/2</p>
<p>Since y &gt; x /2</p>
<p>Therefore step two swap positions thus x&#8221; &lt; x / 2 (two steps)</p></blockquote>
<p>Thus halved every two steps at most.</p>
<p>Definition: A language is in NP if it is decided by some NTM in polynomial time.<br />
Example: HAMPATH = { &lt;G,s,t&gt; | where G is a diagraph with a hamilton path from s to t}</p>
<p>Theorem HAMPATH ∈ NP</p>
<p>Proof: The following NTM decides <a href="http://en.wikipedia.org/wiki/Hamiltonian_path">hamilton path</a>.</p>
<p>mark[i] = 0    for all i ∈ V(G)<br />
mark[s] 1; v = s</p>
<p>for n - 1 iterations do<br />
{</p>
<p>non deterministic pick u ∈ V (G)<br />
if mark[u] != 0 or (v,u) !∈ E(G)<br />
v = u ; mark[v] = !</p>
<p>}</p>
<p>if v = T accept<br />
else reject</p>
<p>Definition: A verifier for a language A is a deterministic algorithm V where L = { x | V accepts &lt;x,w&gt; for some string w}</p>
<ol>
<li> w is called the witess of proof (certificate)</li>
<li>|w| of poly-length of x</li>
<li>The time of a verifier runs in is with respect to |x|</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.plt1.com/1147/28th-june-cs750/feed/</wfw:commentRss>
		</item>
		<item>
		<title>You took the words right out of my mouth</title>
		<link>http://www.plt1.com/1124/you-took-the-words-right-out-of-my-mouth/</link>
		<comments>http://www.plt1.com/1124/you-took-the-words-right-out-of-my-mouth/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 21:19:15 +0000</pubDate>
		<dc:creator>Atomix</dc:creator>
		
		<category><![CDATA[Contemplation]]></category>

		<guid isPermaLink="false">http://www.plt1.com/?p=1124</guid>
		<description><![CDATA[On a hot summer night, would you offer your throat to the wolf with the red roses? Yes! I bet you say that to all the boys
1: Find something that makes you laugh


2: Watch a video


3: Find a new project
http://www.flickr.com/groups/365days/

4: When all else fails, jump on IRC and make fun of people
21:23 < Lord_Riff_Raff> THEY’RE [...]]]></description>
			<content:encoded><![CDATA[<p><em>On a hot summer night, would you offer your throat to the wolf with the red roses? </em><br />Yes! <br /><em>I bet you say that to all the boys</em></p>
<p><strong>1: Find something that makes you laugh</strong><br />
<a href="http://www.collegehumor.com/picture:1823614"><img src="http://www.collegehumor.com/pictures/1823614.jpg" border="0"><br /></a></p>
<p><strong><br />
2: Watch a video</strong><br />
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/zlfKdbWwruY&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/zlfKdbWwruY&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object><br />
</p>
<p><strong>3: Find a new project</strong><br />
<a href="http://www.flickr.com/groups/365days/">http://www.flickr.com/groups/365days/</a><br />
</p>
<p><strong>4: When all else fails, jump on IRC and make fun of people</strong><br />
21:23 < Lord_Riff_Raff> THEY’RE 17. Not 7<br />
21:24 < DarkSentinel> Lord_Riff_Raff: sounding defensive there</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plt1.com/1124/you-took-the-words-right-out-of-my-mouth/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Karazhan, NightBane</title>
		<link>http://www.plt1.com/1109/karazhan-nightbane/</link>
		<comments>http://www.plt1.com/1109/karazhan-nightbane/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 03:10:35 +0000</pubDate>
		<dc:creator>flippy</dc:creator>
		
		<category><![CDATA[WoW]]></category>

		<category><![CDATA[kara]]></category>

		<category><![CDATA[karazhan]]></category>

		<category><![CDATA[Nicghtban]]></category>

		<guid isPermaLink="false">http://www.plt1.com/?p=1109</guid>
		<description><![CDATA[So we only had nine for the upper part of Kara. What ever would we do? Well, take a lvl 68 holy pally of course! Wouldn&#8217;t you? But that&#8217;s not the good part, oh no.

What made it even more fun, was when on the guilds first shot at NightBane, our two main dps go down [...]]]></description>
			<content:encoded><![CDATA[<p>So we only had nine for the upper part of Kara. What ever would we do? Well, take a lvl 68 holy pally of course! Wouldn&#8217;t you? But that&#8217;s not the good part, oh no.<br />
<br />
What made it even more fun, was when on the guilds first shot at NightBane, our two main dps go down at 50% (stupid Mages - some people say its lucky to have Mages die, so they gave us double the amount). What do you do at this point&#8230; well, as a hunter, I was running for the door about to FD&#8230; but why not stay and give it a go any way. That&#8217;s just what we did, with only 4 dps, 1 tank, 2 heals, plus our 68 holy pally - who was on heals.<br />
<br />
A few minutes later we were still up - then over Vent; &#8220;We could actually do this if we have enough mana and there is no enrage timer.&#8221; Who would have thought we would need to know that? One of our lucky Mages piped up (after alt-tabing to find out); &#8220;umm I don&#8217;t think so&#8221;, so on we pressed.<br />
<br />
Guess what? 13 minutes after the fight began, it was over. That&#8217;s right, we downed NightBane. No one knows how our mana lasted that long, but it did. Might I say that our healers are awesome - our 3 healers that is - well done guys, that was a big effort on your part (even Rusty was still alive).<br />
<br />
So the Quantum Butterflies are now 11/12 in Karazhan in just 2 weeks. ZA next week anyone? </p>
<p>More WOW content including WotLK at <a href="http://huntthis.oppose-this.net/">Hunt This</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.plt1.com/1109/karazhan-nightbane/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Butterchicken Chips</title>
		<link>http://www.plt1.com/1105/butterchicken-chips/</link>
		<comments>http://www.plt1.com/1105/butterchicken-chips/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 12:40:36 +0000</pubDate>
		<dc:creator>Jeremy Read</dc:creator>
		
		<category><![CDATA[PXT]]></category>

		<guid isPermaLink="false">http://www.plt1.com/?p=1105</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-1106" title="butterchickenchips" src="http://www.plt1.com/wp-content/uploads/2008/07/butterchickenchips.jpg" alt="" width="500" height="334" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.plt1.com/1105/butterchicken-chips/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Computers</title>
		<link>http://www.plt1.com/1096/computers/</link>
		<comments>http://www.plt1.com/1096/computers/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 14:13:25 +0000</pubDate>
		<dc:creator>Jeremy Read</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.plt1.com/?p=1096</guid>
		<description><![CDATA[About 15 years ago I touched a computer for the first time in my life. I was 6 years old, and the computer was running Pac Man. I wasn&#8217;t very good, I thought the aim of the game was to run into the ghosts and my game playing abilities obviously haven&#8217;t improved much. However computers [...]]]></description>
			<content:encoded><![CDATA[<p>About 15 years ago I touched a computer for the first time in my life. I was 6 years old, and the computer was running Pac Man. I wasn&#8217;t very good, I thought the aim of the game was to run into the ghosts and my game playing abilities obviously haven&#8217;t improved much. However computers would go on to have a major impact in my life.</p>
<p>I learnt to read because of computers, well more because of a game. My parents had decided that I wasn&#8217;t allowed to play Civilization until I could read the Civilization manual. For those who&#8217;ve never seen manuals of the era, the Civilization manual was a hefty tomb, about a centimeter thick similar in page size to a National Geographic except with the seam along the skinnier edge.It contained a wealth of knowledge on the history of the civilizations included in the game, and why each of the technologies were important and responsible for our current society.</p>
<p><img class="alignnone wp-image-1097" title="civ1" src="http://www.plt1.com/wp-content/uploads/2008/07/civ1earth2_map.jpg" alt="" /></p>
<p>Once again my inability to comprehend what was going on came into light. The Settler units I thought were representing bugs, same as in Captain Comic below. Though perhaps I can be forgiven for not recognizing them as I hadn&#8217;t covered American history by then.</p>
<p><img class="alignnone size-full wp-image-1098" title="captaincomic" src="http://www.plt1.com/wp-content/uploads/2008/07/captaincomic.png" alt="" width="498" height="310" /></p>
<p>Also for anyone complaining about patches today. The mouse didn&#8217;t work in the first release of Civilization but since the internet wasn&#8217;t exactly readily available most people did not have access to the patch. I use to play that game entirely with the keyboard. Then again we didn&#8217;t own a mouse until later so I suppose I wasn&#8217;t missing much.</p>
<p>So I played a lot of games for the next few years, until something happened that made probably the single biggest impact in my life. A VTech Pre Computer 1000 came into my possession.</p>
<p><img class="alignnone size-full wp-image-1099" title="VTech Pre Computer 1000" src="http://www.plt1.com/wp-content/uploads/2008/07/image002.jpg" alt="" width="500" height="395" /></p>
<p>Incredible isn&#8217;t it? And it classy blue as well. Although it might not look like much, it packs something truely amazing. A BASIC interpreter. While studying the manual for the computer I saw the &#8220;Hello World&#8221; example and gave it a ago. Programming for the PC 1000 was truly awful. It had a 20 character line display and no permanent storage capacity. So all programs I wrote had to be carefully written out on paper and copied over. Often they wouldn&#8217;t work, but occasionally I&#8217;d manage to create something that ran as intended. I can also remember that my second program ever for it consisted entirely of REM statements and a comment saying I was trying to write image editing software. Obviously this never came into fruition stifled by the lack of graphical output other than characters and other inherent limitations with the platform.</p>
<p>But still, for the next few years I read everything I could on programming. Not that I understood any of it, even the library&#8217;s copy of how to avoid the Y2k bug, written during the late 80s was poured over. It consisted of examples in C, Pascal and x86 assembly, none of which I understood, but still I read.</p>
<p>Later on when I was 13 I was given a pirated copy of Visual Basic 5, which to me meant the world. It could compile stuff that would work on a REAL computer. You have to realise I didn&#8217;t have access to the internet, I didn&#8217;t goto school and I didn&#8217;t have the financial means to purchase my own compiler to write my own software. To make matters more fun the pirated copy of VB5 nuked my registry, such that the common control dialogue control was incorrectly registered so I couldn&#8217;t use it. Which mean I had no easy way in the drag and drop IDE to make open/save boxes.</p>
<p>So I read the Win32 API. No documentation, just trying random things and hopeing my computer didn&#8217;t crash. About a year later I&#8217;d figured out how to make an open dialogue box, along with BitBLT and Keyboard input. I had a really terrible space invaders clone running. Then the next important thing happened. I gained access to the internet. All of a sudden I had access to most of the resources everyone else had and could upload what I was working on. Pyrosoftware was born a year later, someone gave me VB6 and I worked on trying to sell what I was working on.</p>
<p>I never made much money, but I did break even with my webhosting bills and received postcards from around the world thanking me for pieces of software that I&#8217;d written to fix things that were annoying me.</p>
<p>I did write some cool software though (and a lot of crap [why on earth did I write an ASCII art editor?]):</p>
<p><img class="alignnone size-full wp-image-1100" title="grabber" src="http://www.plt1.com/wp-content/uploads/2008/07/grabber.png" alt="" width="206" height="406" /></p>
<p>The Microsoft documentation for the External object sucks. It took me about a week to get the mass image downloader working for Mike. It downloads all the images on a page without prompts and automatically renames them. I got paid for this one, I think 10USD, but to me that was a LOT of money back then.</p>
<p><img class="alignnone size-full wp-image-1101" title="spikelite" src="http://www.plt1.com/wp-content/uploads/2008/07/spikelite.png" alt="" width="498" height="343" /></p>
<p>Taylor&#8217;s still bitching at me for a new version of Spike <img src='http://www.plt1.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> One day I&#8217;ll get around to writing a new C# version for him. It&#8217;s to my great annoyance that I can&#8217;t port my syntax parsing calculator though over to C#, since I can&#8217;t figure out how on earth I got it to work, looks like I&#8217;ll have to write a new one.</p>
<p><img class="alignnone size-full wp-image-1102" title="winampplugin" src="http://www.plt1.com/wp-content/uploads/2008/07/winampplugin.jpg" alt="" width="470" height="349" /></p>
<p>The PyroDVD plugin for Winamp. One and half years of work on my behalf. It automatically loads your currently selected Winamp 2 skin and reskins itself! It also plays DVDs. I didn&#8217;t get the window to &#8220;jump&#8221; to the Winamp windows though. I think this screenshot was taken about 2 months before I started uni.</p>
<p>I was panicing by now. I&#8217;d made up my mind to take Computer Science at the University of Auckland, and I thought that everyone had studied so much more than me. Ask Andie if you don&#8217;t believe me. In fact I was so keen to start that I turned upto my first CompSci lecture, CompSci 101 in summer school in 2005 over 25 hours early (mainly cause I got the day that uni started wrong).</p>
<p>Three years of partying - playing dota- later I&#8217;m still here at uni. Except there&#8217;s some crazy people who think I might know something now.</p>
<p>Computers still mean heaps to me. They still annoy me, and don&#8217;t do exactly what I want them to do, but I&#8217;m still doing my best to fix this as I&#8217;ve done for many years.</p>
<p>Has anything really changed? I&#8217;m typing this up on a laptop that has 4000 times the amount of ram my first computer did. It has over 500 times the processing power. And a 1000 times the storage space. Even my router completely outclasses my first computer. But guess what, Pacman still runs on this laptop (and I still suck at it).</p>
<p>Link of the day: <a href="http://www.plt1.com/scoreboard.php">PLT1 Tower Defence Scoreboard</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.plt1.com/1096/computers/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
