WEBVTT
Kind: captions
Language: en

00:00:00.320 --> 00:00:03.270 align:start position:0%
 
Sugar.<00:00:00.800><c> Sugar</c><00:00:01.520><c> is</c><00:00:01.760><c> a</c><00:00:02.080><c> classic</c><00:00:02.480><c> flash</c><00:00:02.800><c> game</c><00:00:03.120><c> all</c>

00:00:03.270 --> 00:00:03.280 align:start position:0%
Sugar. Sugar is a classic flash game all
 

00:00:03.280 --> 00:00:04.710 align:start position:0%
Sugar. Sugar is a classic flash game all
about<00:00:03.520><c> getting</c><00:00:03.760><c> grains</c><00:00:04.080><c> of</c><00:00:04.160><c> sugar</c><00:00:04.480><c> into</c>

00:00:04.710 --> 00:00:04.720 align:start position:0%
about getting grains of sugar into
 

00:00:04.720 --> 00:00:06.710 align:start position:0%
about getting grains of sugar into
coffee<00:00:05.040><c> cups</c><00:00:05.359><c> by</c><00:00:05.600><c> drawing</c><00:00:05.839><c> arbitrary</c><00:00:06.400><c> lines</c>

00:00:06.710 --> 00:00:06.720 align:start position:0%
coffee cups by drawing arbitrary lines
 

00:00:06.720 --> 00:00:08.629 align:start position:0%
coffee cups by drawing arbitrary lines
with<00:00:06.879><c> your</c><00:00:07.040><c> mouse.</c><00:00:07.520><c> The</c><00:00:07.759><c> concept</c><00:00:08.080><c> is</c><00:00:08.320><c> so</c>

00:00:08.629 --> 00:00:08.639 align:start position:0%
with your mouse. The concept is so
 

00:00:08.639 --> 00:00:10.709 align:start position:0%
with your mouse. The concept is so
simple<00:00:08.880><c> that</c><00:00:09.200><c> by</c><00:00:09.440><c> level</c><00:00:09.840><c> two,</c><00:00:10.080><c> you're</c><00:00:10.400><c> already</c>

00:00:10.709 --> 00:00:10.719 align:start position:0%
simple that by level two, you're already
 

00:00:10.719 --> 00:00:12.790 align:start position:0%
simple that by level two, you're already
familiar<00:00:11.040><c> with</c><00:00:11.200><c> the</c><00:00:11.440><c> core</c><00:00:11.679><c> mechanic.</c><00:00:12.400><c> As</c><00:00:12.639><c> a</c>

00:00:12.790 --> 00:00:12.800 align:start position:0%
familiar with the core mechanic. As a
 

00:00:12.800 --> 00:00:14.870 align:start position:0%
familiar with the core mechanic. As a
developer,<00:00:13.360><c> games</c><00:00:13.759><c> like</c><00:00:13.920><c> these</c><00:00:14.320><c> often</c><00:00:14.719><c> make</c>

00:00:14.870 --> 00:00:14.880 align:start position:0%
developer, games like these often make
 

00:00:14.880 --> 00:00:17.269 align:start position:0%
developer, games like these often make
me<00:00:15.040><c> wonder</c><00:00:15.360><c> how</c><00:00:15.599><c> it</c><00:00:15.759><c> was</c><00:00:16.000><c> done</c><00:00:16.320><c> or</c><00:00:16.640><c> how</c><00:00:16.880><c> I</c><00:00:17.119><c> would</c>

00:00:17.269 --> 00:00:17.279 align:start position:0%
me wonder how it was done or how I would
 

00:00:17.279 --> 00:00:19.029 align:start position:0%
me wonder how it was done or how I would
go<00:00:17.440><c> about</c><00:00:17.600><c> making</c><00:00:17.920><c> something</c><00:00:18.240><c> like</c><00:00:18.480><c> this.</c><00:00:18.880><c> In</c>

00:00:19.029 --> 00:00:19.039 align:start position:0%
go about making something like this. In
 

00:00:19.039 --> 00:00:20.710 align:start position:0%
go about making something like this. In
the<00:00:19.119><c> case</c><00:00:19.279><c> of</c><00:00:19.359><c> Sugar</c><00:00:19.760><c> Sugar,</c><00:00:20.160><c> the</c><00:00:20.400><c> game</c><00:00:20.560><c> is</c>

00:00:20.710 --> 00:00:20.720 align:start position:0%
the case of Sugar Sugar, the game is
 

00:00:20.720 --> 00:00:23.269 align:start position:0%
the case of Sugar Sugar, the game is
simulating<00:00:21.279><c> up</c><00:00:21.439><c> to</c><00:00:21.680><c> 3,000</c><00:00:22.320><c> grains</c><00:00:22.640><c> of</c><00:00:22.800><c> sugar</c>

00:00:23.269 --> 00:00:23.279 align:start position:0%
simulating up to 3,000 grains of sugar
 

00:00:23.279 --> 00:00:25.590 align:start position:0%
simulating up to 3,000 grains of sugar
every<00:00:23.760><c> frame.</c><00:00:24.400><c> Not</c><00:00:24.640><c> only</c><00:00:24.800><c> that,</c><00:00:25.119><c> it</c><00:00:25.359><c> has</c><00:00:25.439><c> to</c>

00:00:25.590 --> 00:00:25.600 align:start position:0%
every frame. Not only that, it has to
 

00:00:25.600 --> 00:00:27.429 align:start position:0%
every frame. Not only that, it has to
check<00:00:25.920><c> collision</c><00:00:26.400><c> against</c><00:00:26.800><c> handdrawn</c>

00:00:27.429 --> 00:00:27.439 align:start position:0%
check collision against handdrawn
 

00:00:27.439 --> 00:00:29.669 align:start position:0%
check collision against handdrawn
obstacles,<00:00:28.160><c> and</c><00:00:28.400><c> it</c><00:00:28.640><c> has</c><00:00:28.720><c> to</c><00:00:28.880><c> run</c><00:00:29.039><c> decently</c><00:00:29.519><c> on</c>

00:00:29.669 --> 00:00:29.679 align:start position:0%
obstacles, and it has to run decently on
 

00:00:29.679 --> 00:00:31.990 align:start position:0%
obstacles, and it has to run decently on
the<00:00:29.920><c> computers</c><00:00:30.320><c> of</c><00:00:30.480><c> the</c><00:00:30.720><c> time.</c><00:00:31.279><c> My</c><00:00:31.519><c> instincts</c>

00:00:31.990 --> 00:00:32.000 align:start position:0%
the computers of the time. My instincts
 

00:00:32.000 --> 00:00:33.590 align:start position:0%
the computers of the time. My instincts
told<00:00:32.160><c> me</c><00:00:32.320><c> that</c><00:00:32.559><c> there's</c><00:00:32.880><c> no</c><00:00:33.120><c> way</c><00:00:33.280><c> you</c><00:00:33.440><c> could</c>

00:00:33.590 --> 00:00:33.600 align:start position:0%
told me that there's no way you could
 

00:00:33.600 --> 00:00:35.910 align:start position:0%
told me that there's no way you could
achieve<00:00:33.840><c> this</c><00:00:34.160><c> by</c><00:00:34.480><c> actually</c><00:00:34.880><c> iterating</c><00:00:35.440><c> over</c>

00:00:35.910 --> 00:00:35.920 align:start position:0%
achieve this by actually iterating over
 

00:00:35.920 --> 00:00:38.709 align:start position:0%
achieve this by actually iterating over
3,000<00:00:36.559><c> individual</c><00:00:37.200><c> objects.</c><00:00:38.160><c> So,</c><00:00:38.399><c> I</c>

00:00:38.709 --> 00:00:38.719 align:start position:0%
3,000 individual objects. So, I
 

00:00:38.719 --> 00:00:40.549 align:start position:0%
3,000 individual objects. So, I
decompiled<00:00:39.280><c> the</c><00:00:39.520><c> code,</c><00:00:39.840><c> expecting</c><00:00:40.239><c> to</c><00:00:40.399><c> find</c>

00:00:40.549 --> 00:00:40.559 align:start position:0%
decompiled the code, expecting to find
 

00:00:40.559 --> 00:00:42.549 align:start position:0%
decompiled the code, expecting to find
some<00:00:40.800><c> clever</c><00:00:41.200><c> trick,</c><00:00:41.600><c> perhaps</c><00:00:41.920><c> even</c><00:00:42.079><c> a</c><00:00:42.320><c> simple</c>

00:00:42.549 --> 00:00:42.559 align:start position:0%
some clever trick, perhaps even a simple
 

00:00:42.559 --> 00:00:44.950 align:start position:0%
some clever trick, perhaps even a simple
fluid<00:00:42.960><c> simulation,</c><00:00:44.000><c> only</c><00:00:44.320><c> to</c><00:00:44.480><c> find</c><00:00:44.719><c> some</c><00:00:44.879><c> of</c>

00:00:44.950 --> 00:00:44.960 align:start position:0%
fluid simulation, only to find some of
 

00:00:44.960 --> 00:00:46.950 align:start position:0%
fluid simulation, only to find some of
the<00:00:45.120><c> most</c><00:00:45.360><c> spaghetti</c><00:00:46.000><c> fililled</c><00:00:46.239><c> code</c><00:00:46.559><c> I've</c>

00:00:46.950 --> 00:00:46.960 align:start position:0%
the most spaghetti fililled code I've
 

00:00:46.960 --> 00:00:50.150 align:start position:0%
the most spaghetti fililled code I've
ever<00:00:47.280><c> seen.</c><00:00:48.160><c> The</c><00:00:48.480><c> entire</c><00:00:49.039><c> game</c><00:00:49.360><c> logic</c><00:00:49.680><c> sits</c><00:00:50.000><c> in</c>

00:00:50.150 --> 00:00:50.160 align:start position:0%
ever seen. The entire game logic sits in
 

00:00:50.160 --> 00:00:52.869 align:start position:0%
ever seen. The entire game logic sits in
a<00:00:50.399><c> single</c><00:00:50.719><c> class,</c><00:00:51.360><c> which</c><00:00:51.680><c> when</c><00:00:52.000><c> decompiled</c>

00:00:52.869 --> 00:00:52.879 align:start position:0%
a single class, which when decompiled
 

00:00:52.879 --> 00:00:56.630 align:start position:0%
a single class, which when decompiled
takes<00:00:53.199><c> up</c><00:00:53.440><c> over</c><00:00:53.920><c> 3,700</c><00:00:55.360><c> lines</c><00:00:55.680><c> of</c><00:00:55.920><c> code.</c><00:00:56.480><c> On</c>

00:00:56.630 --> 00:00:56.640 align:start position:0%
takes up over 3,700 lines of code. On
 

00:00:56.640 --> 00:00:58.709 align:start position:0%
takes up over 3,700 lines of code. On
top<00:00:56.800><c> of</c><00:00:56.960><c> that,</c><00:00:57.199><c> it</c><00:00:57.520><c> turns</c><00:00:57.760><c> out</c><00:00:57.920><c> that</c><00:00:58.160><c> the</c><00:00:58.399><c> sugar</c>

00:00:58.709 --> 00:00:58.719 align:start position:0%
top of that, it turns out that the sugar
 

00:00:58.719 --> 00:01:02.150 align:start position:0%
top of that, it turns out that the sugar
logic<00:00:59.280><c> really</c><00:00:59.600><c> is</c><00:00:59.920><c> just</c><00:01:00.239><c> one</c><00:01:00.640><c> big</c><00:01:00.960><c> dumb</c><00:01:01.359><c> loop.</c>

00:01:02.150 --> 00:01:02.160 align:start position:0%
logic really is just one big dumb loop.
 

00:01:02.160 --> 00:01:04.149 align:start position:0%
logic really is just one big dumb loop.
Let<00:01:02.399><c> me</c><00:01:02.559><c> break</c><00:01:02.719><c> it</c><00:01:02.879><c> down</c><00:01:03.039><c> for</c><00:01:03.199><c> you.</c><00:01:03.840><c> Every</c>

00:01:04.149 --> 00:01:04.159 align:start position:0%
Let me break it down for you. Every
 

00:01:04.159 --> 00:01:06.230 align:start position:0%
Let me break it down for you. Every
grain<00:01:04.400><c> of</c><00:01:04.559><c> sugar</c><00:01:04.960><c> moves</c><00:01:05.280><c> down</c><00:01:05.439><c> at</c><00:01:05.680><c> a</c><00:01:05.840><c> constant</c>

00:01:06.230 --> 00:01:06.240 align:start position:0%
grain of sugar moves down at a constant
 

00:01:06.240 --> 00:01:08.710 align:start position:0%
grain of sugar moves down at a constant
speed<00:01:06.479><c> of</c><00:01:06.799><c> one</c><00:01:07.040><c> pixel</c><00:01:07.439><c> per</c><00:01:07.760><c> frame</c><00:01:08.240><c> with</c><00:01:08.479><c> no</c>

00:01:08.710 --> 00:01:08.720 align:start position:0%
speed of one pixel per frame with no
 

00:01:08.720 --> 00:01:10.710 align:start position:0%
speed of one pixel per frame with no
acceleration<00:01:09.280><c> from</c><00:01:09.520><c> gravity.</c><00:01:10.159><c> In</c><00:01:10.479><c> most</c>

00:01:10.710 --> 00:01:10.720 align:start position:0%
acceleration from gravity. In most
 

00:01:10.720 --> 00:01:12.550 align:start position:0%
acceleration from gravity. In most
games,<00:01:11.040><c> the</c><00:01:11.280><c> lack</c><00:01:11.520><c> of</c><00:01:11.680><c> acceleration</c><00:01:12.159><c> on</c><00:01:12.400><c> a</c>

00:01:12.550 --> 00:01:12.560 align:start position:0%
games, the lack of acceleration on a
 

00:01:12.560 --> 00:01:14.070 align:start position:0%
games, the lack of acceleration on a
falling<00:01:12.880><c> object</c><00:01:13.280><c> would</c><00:01:13.520><c> make</c><00:01:13.680><c> it</c><00:01:13.840><c> feel</c>

00:01:14.070 --> 00:01:14.080 align:start position:0%
falling object would make it feel
 

00:01:14.080 --> 00:01:16.310 align:start position:0%
falling object would make it feel
unnatural.<00:01:15.119><c> But</c><00:01:15.280><c> since</c><00:01:15.520><c> these</c><00:01:15.760><c> are</c><00:01:15.920><c> grains</c><00:01:16.240><c> of</c>

00:01:16.310 --> 00:01:16.320 align:start position:0%
unnatural. But since these are grains of
 

00:01:16.320 --> 00:01:18.149 align:start position:0%
unnatural. But since these are grains of
sugar,<00:01:16.799><c> I</c><00:01:17.040><c> suppose</c><00:01:17.280><c> the</c><00:01:17.520><c> implied</c><00:01:17.920><c> air</c>

00:01:18.149 --> 00:01:18.159 align:start position:0%
sugar, I suppose the implied air
 

00:01:18.159 --> 00:01:20.149 align:start position:0%
sugar, I suppose the implied air
resistance<00:01:18.720><c> makes</c><00:01:18.960><c> up</c><00:01:19.119><c> for</c><00:01:19.280><c> that.</c><00:01:19.759><c> On</c><00:01:19.920><c> top</c><00:01:20.080><c> of</c>

00:01:20.149 --> 00:01:20.159 align:start position:0%
resistance makes up for that. On top of
 

00:01:20.159 --> 00:01:22.149 align:start position:0%
resistance makes up for that. On top of
this<00:01:20.400><c> downwards</c><00:01:20.880><c> motion,</c><00:01:21.360><c> there's</c><00:01:21.600><c> also</c><00:01:21.920><c> a</c>

00:01:22.149 --> 00:01:22.159 align:start position:0%
this downwards motion, there's also a
 

00:01:22.159 --> 00:01:24.789 align:start position:0%
this downwards motion, there's also a
random<00:01:22.640><c> horizontal</c><00:01:23.360><c> sway</c><00:01:23.840><c> up</c><00:01:24.080><c> to</c><00:01:24.240><c> one</c><00:01:24.400><c> pixel</c>

00:01:24.789 --> 00:01:24.799 align:start position:0%
random horizontal sway up to one pixel
 

00:01:24.799 --> 00:01:27.270 align:start position:0%
random horizontal sway up to one pixel
in<00:01:25.040><c> either</c><00:01:25.360><c> direction.</c><00:01:26.159><c> These</c><00:01:26.560><c> two</c><00:01:26.799><c> are</c><00:01:27.040><c> the</c>

00:01:27.270 --> 00:01:27.280 align:start position:0%
in either direction. These two are the
 

00:01:27.280 --> 00:01:29.109 align:start position:0%
in either direction. These two are the
primary<00:01:27.759><c> factors</c><00:01:28.159><c> that</c><00:01:28.400><c> determine</c><00:01:28.799><c> where</c><00:01:28.960><c> the</c>

00:01:29.109 --> 00:01:29.119 align:start position:0%
primary factors that determine where the
 

00:01:29.119 --> 00:01:30.710 align:start position:0%
primary factors that determine where the
sugar<00:01:29.439><c> is</c><00:01:29.600><c> going</c><00:01:29.759><c> to</c><00:01:29.840><c> end</c><00:01:30.000><c> up</c><00:01:30.159><c> on</c><00:01:30.400><c> the</c><00:01:30.560><c> next</c>

00:01:30.710 --> 00:01:30.720 align:start position:0%
sugar is going to end up on the next
 

00:01:30.720 --> 00:01:33.109 align:start position:0%
sugar is going to end up on the next
frame.<00:01:31.600><c> And</c><00:01:31.840><c> that,</c><00:01:32.159><c> of</c><00:01:32.320><c> course,</c><00:01:32.479><c> is</c><00:01:32.720><c> used</c><00:01:32.960><c> for</c>

00:01:33.109 --> 00:01:33.119 align:start position:0%
frame. And that, of course, is used for
 

00:01:33.119 --> 00:01:35.429 align:start position:0%
frame. And that, of course, is used for
predicting<00:01:33.600><c> collisions.</c><00:01:34.720><c> This</c><00:01:34.880><c> is</c><00:01:35.040><c> where</c><00:01:35.280><c> the</c>

00:01:35.429 --> 00:01:35.439 align:start position:0%
predicting collisions. This is where the
 

00:01:35.439 --> 00:01:37.190 align:start position:0%
predicting collisions. This is where the
game<00:01:35.759><c> does</c><00:01:36.079><c> admittedly</c><00:01:36.640><c> come</c><00:01:36.720><c> up</c><00:01:36.880><c> with</c><00:01:37.040><c> a</c>

00:01:37.190 --> 00:01:37.200 align:start position:0%
game does admittedly come up with a
 

00:01:37.200 --> 00:01:39.030 align:start position:0%
game does admittedly come up with a
pretty<00:01:37.439><c> clever</c><00:01:37.759><c> trick.</c><00:01:38.240><c> In</c><00:01:38.479><c> order</c><00:01:38.640><c> to</c><00:01:38.799><c> detect</c>

00:01:39.030 --> 00:01:39.040 align:start position:0%
pretty clever trick. In order to detect
 

00:01:39.040 --> 00:01:41.270 align:start position:0%
pretty clever trick. In order to detect
a<00:01:39.280><c> collision,</c><00:01:39.759><c> the</c><00:01:40.000><c> code</c><00:01:40.320><c> checks</c><00:01:40.640><c> the</c><00:01:40.880><c> color</c>

00:01:41.270 --> 00:01:41.280 align:start position:0%
a collision, the code checks the color
 

00:01:41.280 --> 00:01:43.429 align:start position:0%
a collision, the code checks the color
value<00:01:41.600><c> of</c><00:01:41.840><c> the</c><00:01:42.079><c> pixel</c><00:01:42.479><c> at</c><00:01:42.720><c> the</c><00:01:42.880><c> candidate</c>

00:01:43.429 --> 00:01:43.439 align:start position:0%
value of the pixel at the candidate
 

00:01:43.439 --> 00:01:45.350 align:start position:0%
value of the pixel at the candidate
position.<00:01:44.079><c> If</c><00:01:44.320><c> it's</c><00:01:44.479><c> below</c><00:01:44.720><c> a</c><00:01:44.960><c> certain</c><00:01:45.200><c> level</c>

00:01:45.350 --> 00:01:45.360 align:start position:0%
position. If it's below a certain level
 

00:01:45.360 --> 00:01:47.590 align:start position:0%
position. If it's below a certain level
of<00:01:45.600><c> brightness,</c><00:01:46.159><c> the</c><00:01:46.320><c> sugar</c><00:01:46.720><c> is</c><00:01:46.960><c> allowed</c><00:01:47.360><c> to</c>

00:01:47.590 --> 00:01:47.600 align:start position:0%
of brightness, the sugar is allowed to
 

00:01:47.600 --> 00:01:50.149 align:start position:0%
of brightness, the sugar is allowed to
pass.<00:01:48.240><c> If</c><00:01:48.479><c> it's</c><00:01:48.720><c> above</c><00:01:49.040><c> that</c><00:01:49.280><c> threshold,</c><00:01:49.920><c> a</c>

00:01:50.149 --> 00:01:50.159 align:start position:0%
pass. If it's above that threshold, a
 

00:01:50.159 --> 00:01:52.069 align:start position:0%
pass. If it's above that threshold, a
collision<00:01:50.479><c> is</c><00:01:50.720><c> flagged.</c><00:01:51.360><c> That's</c><00:01:51.600><c> why</c><00:01:51.840><c> every</c>

00:01:52.069 --> 00:01:52.079 align:start position:0%
collision is flagged. That's why every
 

00:01:52.079 --> 00:01:53.749 align:start position:0%
collision is flagged. That's why every
level<00:01:52.399><c> has</c><00:01:52.560><c> a</c><00:01:52.720><c> dark</c><00:01:53.040><c> background</c><00:01:53.520><c> with</c>

00:01:53.749 --> 00:01:53.759 align:start position:0%
level has a dark background with
 

00:01:53.759 --> 00:01:55.749 align:start position:0%
level has a dark background with
brighter<00:01:54.159><c> highlights.</c><00:01:54.880><c> In</c><00:01:55.040><c> fact,</c><00:01:55.200><c> if</c><00:01:55.439><c> I</c><00:01:55.600><c> just</c>

00:01:55.749 --> 00:01:55.759 align:start position:0%
brighter highlights. In fact, if I just
 

00:01:55.759 --> 00:01:57.429 align:start position:0%
brighter highlights. In fact, if I just
switch<00:01:55.920><c> to</c><00:01:56.079><c> a</c><00:01:56.320><c> brighter</c><00:01:56.560><c> color</c><00:01:56.799><c> palette,</c><00:01:57.280><c> the</c>

00:01:57.429 --> 00:01:57.439 align:start position:0%
switch to a brighter color palette, the
 

00:01:57.439 --> 00:02:00.230 align:start position:0%
switch to a brighter color palette, the
sugar<00:01:57.920><c> never</c><00:01:58.320><c> drops.</c><00:01:59.280><c> To</c><00:01:59.520><c> resolve</c><00:01:59.920><c> this</c>

00:02:00.230 --> 00:02:00.240 align:start position:0%
sugar never drops. To resolve this
 

00:02:00.240 --> 00:02:02.389 align:start position:0%
sugar never drops. To resolve this
collision,<00:02:00.799><c> the</c><00:02:01.040><c> game</c><00:02:01.360><c> drops</c><00:02:01.680><c> the</c><00:02:01.840><c> candidate</c>

00:02:02.389 --> 00:02:02.399 align:start position:0%
collision, the game drops the candidate
 

00:02:02.399 --> 00:02:04.389 align:start position:0%
collision, the game drops the candidate
position<00:02:02.799><c> and</c><00:02:03.119><c> instead</c><00:02:03.600><c> checks</c><00:02:03.920><c> for</c><00:02:04.079><c> free</c>

00:02:04.389 --> 00:02:04.399 align:start position:0%
position and instead checks for free
 

00:02:04.399 --> 00:02:06.550 align:start position:0%
position and instead checks for free
space<00:02:04.719><c> on</c><00:02:05.040><c> either</c><00:02:05.439><c> side</c><00:02:05.680><c> of</c><00:02:05.920><c> the</c><00:02:06.159><c> current</c>

00:02:06.550 --> 00:02:06.560 align:start position:0%
space on either side of the current
 

00:02:06.560 --> 00:02:08.630 align:start position:0%
space on either side of the current
position.<00:02:07.119><c> The</c><00:02:07.360><c> sugar</c><00:02:07.680><c> grain</c><00:02:08.000><c> then</c><00:02:08.239><c> moves</c><00:02:08.479><c> in</c>

00:02:08.630 --> 00:02:08.640 align:start position:0%
position. The sugar grain then moves in
 

00:02:08.640 --> 00:02:10.550 align:start position:0%
position. The sugar grain then moves in
the<00:02:08.800><c> direction</c><00:02:09.200><c> with</c><00:02:09.440><c> at</c><00:02:09.520><c> least</c><00:02:09.920><c> two</c><00:02:10.160><c> pixels</c>

00:02:10.550 --> 00:02:10.560 align:start position:0%
the direction with at least two pixels
 

00:02:10.560 --> 00:02:13.110 align:start position:0%
the direction with at least two pixels
of<00:02:10.800><c> clearance.</c><00:02:11.760><c> And</c><00:02:12.080><c> with</c><00:02:12.319><c> that</c><00:02:12.640><c> being</c><00:02:12.879><c> the</c>

00:02:13.110 --> 00:02:13.120 align:start position:0%
of clearance. And with that being the
 

00:02:13.120 --> 00:02:15.350 align:start position:0%
of clearance. And with that being the
whole<00:02:13.360><c> algorithm,</c><00:02:14.080><c> I</c><00:02:14.319><c> guess</c><00:02:14.560><c> it</c><00:02:14.800><c> is</c><00:02:15.040><c> simple</c>

00:02:15.350 --> 00:02:15.360 align:start position:0%
whole algorithm, I guess it is simple
 

00:02:15.360 --> 00:02:17.030 align:start position:0%
whole algorithm, I guess it is simple
enough<00:02:15.599><c> to</c><00:02:15.760><c> make</c><00:02:15.840><c> it</c><00:02:16.080><c> viable</c><00:02:16.400><c> for</c><00:02:16.560><c> the</c><00:02:16.720><c> average</c>

00:02:17.030 --> 00:02:17.040 align:start position:0%
enough to make it viable for the average
 

00:02:17.040 --> 00:02:19.910 align:start position:0%
enough to make it viable for the average
school<00:02:17.360><c> computer</c><00:02:17.760><c> in</c><00:02:18.080><c> 2011.</c><00:02:19.200><c> There</c><00:02:19.440><c> are</c><00:02:19.680><c> some</c>

00:02:19.910 --> 00:02:19.920 align:start position:0%
school computer in 2011. There are some
 

00:02:19.920 --> 00:02:21.670 align:start position:0%
school computer in 2011. There are some
fancier<00:02:20.400><c> mechanics</c><00:02:20.800><c> in</c><00:02:20.959><c> the</c><00:02:21.120><c> game,</c><00:02:21.280><c> such</c><00:02:21.440><c> as</c><00:02:21.520><c> a</c>

00:02:21.670 --> 00:02:21.680 align:start position:0%
fancier mechanics in the game, such as a
 

00:02:21.680 --> 00:02:23.589 align:start position:0%
fancier mechanics in the game, such as a
button<00:02:21.920><c> to</c><00:02:22.080><c> invert</c><00:02:22.480><c> gravity</c><00:02:22.800><c> or</c><00:02:23.120><c> holes</c><00:02:23.440><c> that</c>

00:02:23.589 --> 00:02:23.599 align:start position:0%
button to invert gravity or holes that
 

00:02:23.599 --> 00:02:25.670 align:start position:0%
button to invert gravity or holes that
magically<00:02:24.080><c> teleport</c><00:02:24.480><c> the</c><00:02:24.720><c> sugar,</c><00:02:25.120><c> but</c><00:02:25.360><c> those</c>

00:02:25.670 --> 00:02:25.680 align:start position:0%
magically teleport the sugar, but those
 

00:02:25.680 --> 00:02:27.430 align:start position:0%
magically teleport the sugar, but those
are<00:02:25.920><c> relatively</c><00:02:26.400><c> simple</c><00:02:26.720><c> features</c><00:02:27.120><c> that</c>

00:02:27.430 --> 00:02:27.440 align:start position:0%
are relatively simple features that
 

00:02:27.440 --> 00:02:29.190 align:start position:0%
are relatively simple features that
don't<00:02:27.680><c> change</c><00:02:27.920><c> the</c><00:02:28.160><c> core</c><00:02:28.400><c> physics</c><00:02:28.800><c> of</c><00:02:28.959><c> the</c>

00:02:29.190 --> 00:02:29.200 align:start position:0%
don't change the core physics of the
 

00:02:29.200 --> 00:02:31.510 align:start position:0%
don't change the core physics of the
game.<00:02:29.760><c> With</c><00:02:30.080><c> that</c><00:02:30.319><c> in</c><00:02:30.480><c> mind,</c><00:02:30.879><c> in</c><00:02:31.040><c> spite</c><00:02:31.200><c> of</c><00:02:31.360><c> the</c>

00:02:31.510 --> 00:02:31.520 align:start position:0%
game. With that in mind, in spite of the
 

00:02:31.520 --> 00:02:33.509 align:start position:0%
game. With that in mind, in spite of the
rancid<00:02:32.000><c> codebase</c><00:02:32.400><c> full</c><00:02:32.640><c> of</c><00:02:32.720><c> duplicated</c><00:02:33.280><c> code</c>

00:02:33.509 --> 00:02:33.519 align:start position:0%
rancid codebase full of duplicated code
 

00:02:33.519 --> 00:02:35.910 align:start position:0%
rancid codebase full of duplicated code
that<00:02:33.840><c> requires</c><00:02:34.160><c> a</c><00:02:34.400><c> map</c><00:02:34.560><c> to</c><00:02:34.800><c> navigate,</c><00:02:35.599><c> I</c>

00:02:35.910 --> 00:02:35.920 align:start position:0%
that requires a map to navigate, I
 

00:02:35.920 --> 00:02:38.150 align:start position:0%
that requires a map to navigate, I
really<00:02:36.319><c> can't</c><00:02:36.560><c> blame</c><00:02:36.959><c> Sugar</c><00:02:37.360><c> Sugar</c><00:02:37.680><c> because</c><00:02:37.920><c> a</c>

00:02:38.150 --> 00:02:38.160 align:start position:0%
really can't blame Sugar Sugar because a
 

00:02:38.160 --> 00:02:40.229 align:start position:0%
really can't blame Sugar Sugar because a
simple<00:02:38.400><c> one-off</c><00:02:38.800><c> flash</c><00:02:39.120><c> game</c><00:02:39.519><c> doesn't</c><00:02:39.840><c> need</c>

00:02:40.229 --> 00:02:40.239 align:start position:0%
simple one-off flash game doesn't need
 

00:02:40.239 --> 00:02:42.229 align:start position:0%
simple one-off flash game doesn't need
clean<00:02:40.560><c> code.</c><00:02:41.200><c> And</c><00:02:41.360><c> I</c><00:02:41.519><c> guess</c><00:02:41.599><c> it</c><00:02:41.840><c> was</c><00:02:42.000><c> still</c>

00:02:42.229 --> 00:02:42.239 align:start position:0%
clean code. And I guess it was still
 

00:02:42.239 --> 00:02:43.670 align:start position:0%
clean code. And I guess it was still
cool<00:02:42.400><c> to</c><00:02:42.480><c> see</c><00:02:42.640><c> those</c><00:02:42.800><c> bitmap</c><00:02:43.280><c> hacks</c><00:02:43.519><c> for</c>

00:02:43.670 --> 00:02:43.680 align:start position:0%
cool to see those bitmap hacks for
 

00:02:43.680 --> 00:02:46.470 align:start position:0%
cool to see those bitmap hacks for
Collision.<00:02:45.040><c> Now,</c><00:02:45.440><c> this</c><00:02:45.680><c> got</c><00:02:45.840><c> me</c><00:02:46.080><c> wondering</c>

00:02:46.470 --> 00:02:46.480 align:start position:0%
Collision. Now, this got me wondering
 

00:02:46.480 --> 00:02:48.390 align:start position:0%
Collision. Now, this got me wondering
about<00:02:46.800><c> other</c><00:02:47.120><c> flash</c><00:02:47.440><c> games</c><00:02:47.680><c> with</c><00:02:47.920><c> technically</c>

00:02:48.390 --> 00:02:48.400 align:start position:0%
about other flash games with technically
 

00:02:48.400 --> 00:02:50.390 align:start position:0%
about other flash games with technically
impressive<00:02:48.800><c> mechanics.</c><00:02:49.519><c> So,</c><00:02:49.760><c> I</c><00:02:50.000><c> put</c><00:02:50.080><c> out</c><00:02:50.239><c> a</c>

00:02:50.390 --> 00:02:50.400 align:start position:0%
impressive mechanics. So, I put out a
 

00:02:50.400 --> 00:02:52.390 align:start position:0%
impressive mechanics. So, I put out a
YouTube<00:02:50.720><c> community</c><00:02:51.120><c> post</c><00:02:51.519><c> asking</c><00:02:51.920><c> you</c><00:02:52.160><c> all</c>

00:02:52.390 --> 00:02:52.400 align:start position:0%
YouTube community post asking you all
 

00:02:52.400 --> 00:02:54.710 align:start position:0%
YouTube community post asking you all
for<00:02:52.640><c> ideas</c><00:02:52.959><c> on</c><00:02:53.200><c> where</c><00:02:53.440><c> to</c><00:02:53.599><c> look</c><00:02:53.920><c> next.</c><00:02:54.560><c> Of</c>

00:02:54.710 --> 00:02:54.720 align:start position:0%
for ideas on where to look next. Of
 

00:02:54.720 --> 00:02:56.229 align:start position:0%
for ideas on where to look next. Of
course,<00:02:54.959><c> right</c><00:02:55.120><c> off</c><00:02:55.280><c> the</c><00:02:55.440><c> bat,</c><00:02:55.760><c> there</c><00:02:55.920><c> were</c><00:02:56.080><c> a</c>

00:02:56.229 --> 00:02:56.239 align:start position:0%
course, right off the bat, there were a
 

00:02:56.239 --> 00:02:57.910 align:start position:0%
course, right off the bat, there were a
few<00:02:56.400><c> mentions</c><00:02:56.720><c> of</c><00:02:56.959><c> Portal:</c><00:02:57.360><c> The</c><00:02:57.599><c> Flash</c>

00:02:57.910 --> 00:02:57.920 align:start position:0%
few mentions of Portal: The Flash
 

00:02:57.920 --> 00:03:00.070 align:start position:0%
few mentions of Portal: The Flash
version.<00:02:58.480><c> Given</c><00:02:58.800><c> the</c><00:02:59.200><c> branding</c><00:02:59.680><c> of</c><00:02:59.920><c> this</c>

00:03:00.070 --> 00:03:00.080 align:start position:0%
version. Given the branding of this
 

00:03:00.080 --> 00:03:02.390 align:start position:0%
version. Given the branding of this
channel,<00:03:00.560><c> that</c><00:03:00.879><c> does</c><00:03:01.120><c> make</c><00:03:01.280><c> a</c><00:03:01.440><c> lot</c><00:03:01.599><c> of</c><00:03:01.680><c> sense.</c>

00:03:02.390 --> 00:03:02.400 align:start position:0%
channel, that does make a lot of sense.
 

00:03:02.400 --> 00:03:04.390 align:start position:0%
channel, that does make a lot of sense.
So,<00:03:02.720><c> let's</c><00:03:03.040><c> take</c><00:03:03.200><c> a</c><00:03:03.360><c> look.</c><00:03:03.920><c> Now,</c><00:03:04.239><c> the</c>

00:03:04.390 --> 00:03:04.400 align:start position:0%
So, let's take a look. Now, the
 

00:03:04.400 --> 00:03:06.229 align:start position:0%
So, let's take a look. Now, the
teleportation<00:03:05.040><c> mechanic</c><00:03:05.599><c> isn't</c><00:03:06.000><c> that</c>

00:03:06.229 --> 00:03:06.239 align:start position:0%
teleportation mechanic isn't that
 

00:03:06.239 --> 00:03:08.070 align:start position:0%
teleportation mechanic isn't that
interesting<00:03:06.640><c> on</c><00:03:06.879><c> its</c><00:03:07.120><c> own.</c><00:03:07.440><c> The</c><00:03:07.680><c> simplest</c><00:03:08.000><c> way</c>

00:03:08.070 --> 00:03:08.080 align:start position:0%
interesting on its own. The simplest way
 

00:03:08.080 --> 00:03:09.589 align:start position:0%
interesting on its own. The simplest way
to<00:03:08.239><c> teleport</c><00:03:08.640><c> something</c><00:03:08.800><c> in</c><00:03:09.040><c> a</c><00:03:09.200><c> game</c><00:03:09.280><c> is</c><00:03:09.440><c> to</c>

00:03:09.589 --> 00:03:09.599 align:start position:0%
to teleport something in a game is to
 

00:03:09.599 --> 00:03:11.670 align:start position:0%
to teleport something in a game is to
just<00:03:09.760><c> set</c><00:03:10.000><c> its</c><00:03:10.239><c> coordinates.</c><00:03:11.120><c> But,</c><00:03:11.440><c> of</c>

00:03:11.670 --> 00:03:11.680 align:start position:0%
just set its coordinates. But, of
 

00:03:11.680 --> 00:03:13.990 align:start position:0%
just set its coordinates. But, of
course,<00:03:11.920><c> when</c><00:03:12.239><c> implementing</c><00:03:12.959><c> portals,</c>

00:03:13.990 --> 00:03:14.000 align:start position:0%
course, when implementing portals,
 

00:03:14.000 --> 00:03:15.837 align:start position:0%
course, when implementing portals,
things<00:03:14.400><c> aren't</c><00:03:14.800><c> that</c><00:03:15.040><c> straightforward.</c>

00:03:15.837 --> 00:03:15.847 align:start position:0%
things aren't that straightforward.
 

00:03:15.847 --> 00:03:17.910 align:start position:0%
things aren't that straightforward.
[music]<00:03:16.159><c> At</c><00:03:16.400><c> the</c><00:03:16.640><c> very</c><00:03:16.959><c> least,</c><00:03:17.360><c> you</c><00:03:17.599><c> have</c><00:03:17.760><c> to</c>

00:03:17.910 --> 00:03:17.920 align:start position:0%
[music] At the very least, you have to
 

00:03:17.920 --> 00:03:20.390 align:start position:0%
[music] At the very least, you have to
be<00:03:18.000><c> able</c><00:03:18.159><c> to</c><00:03:18.319><c> redirect</c><00:03:18.879><c> velocity.</c><00:03:19.840><c> After</c><00:03:20.080><c> all,</c>

00:03:20.390 --> 00:03:20.400 align:start position:0%
be able to redirect velocity. After all,
 

00:03:20.400 --> 00:03:22.550 align:start position:0%
be able to redirect velocity. After all,
when<00:03:20.640><c> Speedy</c><00:03:21.040><c> Thing</c><00:03:21.280><c> goes</c><00:03:21.440><c> in,</c><00:03:21.840><c> Speedy</c><00:03:22.319><c> Thing</c>

00:03:22.550 --> 00:03:22.560 align:start position:0%
when Speedy Thing goes in, Speedy Thing
 

00:03:22.560 --> 00:03:24.869 align:start position:0%
when Speedy Thing goes in, Speedy Thing
comes<00:03:22.800><c> out.</c><00:03:23.440><c> Valve</c><00:03:23.840><c> implements</c><00:03:24.319><c> this</c><00:03:24.560><c> by</c>

00:03:24.869 --> 00:03:24.879 align:start position:0%
comes out. Valve implements this by
 

00:03:24.879 --> 00:03:26.790 align:start position:0%
comes out. Valve implements this by
translating<00:03:25.360><c> your</c><00:03:25.599><c> velocity</c><00:03:26.080><c> vector</c><00:03:26.400><c> to</c><00:03:26.560><c> the</c>

00:03:26.790 --> 00:03:26.800 align:start position:0%
translating your velocity vector to the
 

00:03:26.800 --> 00:03:28.869 align:start position:0%
translating your velocity vector to the
new<00:03:26.959><c> reference</c><00:03:27.360><c> frame.</c><00:03:27.920><c> This</c><00:03:28.159><c> is</c><00:03:28.400><c> universally</c>

00:03:28.869 --> 00:03:28.879 align:start position:0%
new reference frame. This is universally
 

00:03:28.879 --> 00:03:30.550 align:start position:0%
new reference frame. This is universally
applicable<00:03:29.360><c> and</c><00:03:29.599><c> keeps</c><00:03:29.840><c> the</c><00:03:30.000><c> behavior</c><00:03:30.319><c> of</c>

00:03:30.550 --> 00:03:30.560 align:start position:0%
applicable and keeps the behavior of
 

00:03:30.560 --> 00:03:32.869 align:start position:0%
applicable and keeps the behavior of
portals<00:03:31.040><c> consistent.</c><00:03:31.840><c> The</c><00:03:32.080><c> Flash</c><00:03:32.480><c> version,</c>

00:03:32.869 --> 00:03:32.879 align:start position:0%
portals consistent. The Flash version,
 

00:03:32.879 --> 00:03:35.190 align:start position:0%
portals consistent. The Flash version,
however,<00:03:33.440><c> has</c><00:03:33.532><c> [music]</c><00:03:33.840><c> hardcoded</c><00:03:34.640><c> behaviors</c>

00:03:35.190 --> 00:03:35.200 align:start position:0%
however, has [music] hardcoded behaviors
 

00:03:35.200 --> 00:03:36.710 align:start position:0%
however, has [music] hardcoded behaviors
for<00:03:35.440><c> each</c><00:03:35.599><c> of</c><00:03:35.760><c> the</c><00:03:35.920><c> four</c><00:03:36.239><c> cardinal</c>

00:03:36.710 --> 00:03:36.720 align:start position:0%
for each of the four cardinal
 

00:03:36.720 --> 00:03:38.869 align:start position:0%
for each of the four cardinal
directions.<00:03:37.519><c> This</c><00:03:37.680><c> is</c><00:03:37.840><c> why</c><00:03:38.000><c> you</c><00:03:38.239><c> won't</c><00:03:38.480><c> find</c><00:03:38.720><c> a</c>

00:03:38.869 --> 00:03:38.879 align:start position:0%
directions. This is why you won't find a
 

00:03:38.879 --> 00:03:40.789 align:start position:0%
directions. This is why you won't find a
slanted<00:03:39.360><c> portal</c><00:03:39.760><c> surface.</c><00:03:40.319><c> The</c><00:03:40.480><c> engine</c>

00:03:40.789 --> 00:03:40.799 align:start position:0%
slanted portal surface. The engine
 

00:03:40.799 --> 00:03:42.789 align:start position:0%
slanted portal surface. The engine
simply<00:03:41.120><c> doesn't</c><00:03:41.440><c> support</c><00:03:41.760><c> it.</c><00:03:42.239><c> Yes,</c><00:03:42.560><c> this</c>

00:03:42.789 --> 00:03:42.799 align:start position:0%
simply doesn't support it. Yes, this
 

00:03:42.799 --> 00:03:44.550 align:start position:0%
simply doesn't support it. Yes, this
simplifies<00:03:43.280><c> the</c><00:03:43.519><c> math</c><00:03:43.760><c> a</c><00:03:43.920><c> bit,</c><00:03:44.159><c> but</c><00:03:44.319><c> that</c>

00:03:44.550 --> 00:03:44.560 align:start position:0%
simplifies the math a bit, but that
 

00:03:44.560 --> 00:03:46.550 align:start position:0%
simplifies the math a bit, but that
comes<00:03:44.799><c> at</c><00:03:44.959><c> the</c><00:03:45.120><c> cost</c><00:03:45.360><c> of</c><00:03:45.519><c> less</c><00:03:45.840><c> flexibility</c>

00:03:46.550 --> 00:03:46.560 align:start position:0%
comes at the cost of less flexibility
 

00:03:46.560 --> 00:03:49.270 align:start position:0%
comes at the cost of less flexibility
and<00:03:46.879><c> more</c><00:03:47.200><c> duplicated</c><00:03:47.920><c> code.</c><00:03:48.640><c> Now,</c><00:03:48.879><c> it's</c><00:03:49.120><c> not</c>

00:03:49.270 --> 00:03:49.280 align:start position:0%
and more duplicated code. Now, it's not
 

00:03:49.280 --> 00:03:51.190 align:start position:0%
and more duplicated code. Now, it's not
really<00:03:49.519><c> that</c><00:03:49.840><c> hard</c><00:03:50.000><c> to</c><00:03:50.159><c> rotate</c><00:03:50.480><c> a</c><00:03:50.720><c> vector,</c>

00:03:51.190 --> 00:03:51.200 align:start position:0%
really that hard to rotate a vector,
 

00:03:51.200 --> 00:03:53.509 align:start position:0%
really that hard to rotate a vector,
especially<00:03:51.599><c> in</c><00:03:51.840><c> 2D,</c><00:03:52.560><c> but</c><00:03:52.720><c> I</c><00:03:52.959><c> get</c><00:03:53.120><c> the</c><00:03:53.280><c> feeling</c>

00:03:53.509 --> 00:03:53.519 align:start position:0%
especially in 2D, but I get the feeling
 

00:03:53.519 --> 00:03:55.030 align:start position:0%
especially in 2D, but I get the feeling
that<00:03:53.680><c> the</c><00:03:53.840><c> developers</c><00:03:54.239><c> of</c><00:03:54.400><c> this</c><00:03:54.640><c> game</c><00:03:54.799><c> just</c>

00:03:55.030 --> 00:03:55.040 align:start position:0%
that the developers of this game just
 

00:03:55.040 --> 00:03:56.550 align:start position:0%
that the developers of this game just
weren't<00:03:55.360><c> as</c><00:03:55.599><c> familiar</c><00:03:55.920><c> with</c><00:03:56.080><c> the</c><00:03:56.319><c> math</c>

00:03:56.550 --> 00:03:56.560 align:start position:0%
weren't as familiar with the math
 

00:03:56.560 --> 00:03:59.270 align:start position:0%
weren't as familiar with the math
involved.<00:03:57.360><c> Also</c><00:03:57.920><c> notice</c><00:03:58.319><c> how</c><00:03:58.560><c> in</c><00:03:58.799><c> Valve's</c>

00:03:59.270 --> 00:03:59.280 align:start position:0%
involved. Also notice how in Valve's
 

00:03:59.280 --> 00:04:01.509 align:start position:0%
involved. Also notice how in Valve's
implementation,<00:04:00.239><c> objects</c><00:04:00.640><c> near</c><00:04:00.879><c> a</c><00:04:01.120><c> portal</c>

00:04:01.509 --> 00:04:01.519 align:start position:0%
implementation, objects near a portal
 

00:04:01.519 --> 00:04:03.750 align:start position:0%
implementation, objects near a portal
are<00:04:01.760><c> duplicated</c><00:04:02.400><c> on</c><00:04:02.640><c> the</c><00:04:02.879><c> other</c><00:04:03.040><c> side,</c><00:04:03.599><c> making</c>

00:04:03.750 --> 00:04:03.760 align:start position:0%
are duplicated on the other side, making
 

00:04:03.760 --> 00:04:05.270 align:start position:0%
are duplicated on the other side, making
you<00:04:03.920><c> feel</c><00:04:04.080><c> like</c><00:04:04.239><c> you're</c><00:04:04.560><c> actually</c><00:04:04.879><c> moving</c>

00:04:05.270 --> 00:04:05.280 align:start position:0%
you feel like you're actually moving
 

00:04:05.280 --> 00:04:06.710 align:start position:0%
you feel like you're actually moving
between<00:04:05.627><c> [music]</c><00:04:05.680><c> portals,</c><00:04:06.319><c> not</c><00:04:06.480><c> just</c>

00:04:06.710 --> 00:04:06.720 align:start position:0%
between [music] portals, not just
 

00:04:06.720 --> 00:04:08.470 align:start position:0%
between [music] portals, not just
teleporting.<00:04:07.519><c> This</c><00:04:07.680><c> is</c><00:04:07.760><c> what</c><00:04:07.920><c> lets</c><00:04:08.159><c> you</c><00:04:08.319><c> have</c>

00:04:08.470 --> 00:04:08.480 align:start position:0%
teleporting. This is what lets you have
 

00:04:08.480 --> 00:04:10.070 align:start position:0%
teleporting. This is what lets you have
two<00:04:08.720><c> halves</c><00:04:09.040><c> of</c><00:04:09.120><c> a</c><00:04:09.280><c> cube</c><00:04:09.519><c> in</c><00:04:09.760><c> different</c>

00:04:10.070 --> 00:04:10.080 align:start position:0%
two halves of a cube in different
 

00:04:10.080 --> 00:04:12.390 align:start position:0%
two halves of a cube in different
locations<00:04:10.640><c> despite</c><00:04:11.040><c> there</c><00:04:11.280><c> only</c><00:04:11.599><c> being</c><00:04:12.000><c> one</c>

00:04:12.390 --> 00:04:12.400 align:start position:0%
locations despite there only being one
 

00:04:12.400 --> 00:04:15.270 align:start position:0%
locations despite there only being one
cube.<00:04:13.280><c> The</c><00:04:13.519><c> Flash</c><00:04:13.920><c> version</c><00:04:14.480><c> doesn't</c><00:04:14.959><c> bother</c>

00:04:15.270 --> 00:04:15.280 align:start position:0%
cube. The Flash version doesn't bother
 

00:04:15.280 --> 00:04:17.349 align:start position:0%
cube. The Flash version doesn't bother
with<00:04:15.519><c> this.</c><00:04:16.000><c> Instead,</c><00:04:16.560><c> as</c><00:04:16.799><c> you</c><00:04:16.959><c> step</c><00:04:17.199><c> through</c>

00:04:17.349 --> 00:04:17.359 align:start position:0%
with this. Instead, as you step through
 

00:04:17.359 --> 00:04:18.949 align:start position:0%
with this. Instead, as you step through
a<00:04:17.600><c> portal,</c><00:04:18.000><c> the</c><00:04:18.239><c> collision</c><00:04:18.639><c> for</c><00:04:18.799><c> the</c>

00:04:18.949 --> 00:04:18.959 align:start position:0%
a portal, the collision for the
 

00:04:18.959 --> 00:04:21.110 align:start position:0%
a portal, the collision for the
respective<00:04:19.440><c> wall</c><00:04:19.840><c> is</c><00:04:20.079><c> overridden</c><00:04:20.720><c> and</c><00:04:20.959><c> your</c>

00:04:21.110 --> 00:04:21.120 align:start position:0%
respective wall is overridden and your
 

00:04:21.120 --> 00:04:23.510 align:start position:0%
respective wall is overridden and your
jump<00:04:21.359><c> key</c><00:04:21.680><c> is</c><00:04:21.840><c> disabled</c><00:04:22.560><c> until</c><00:04:22.880><c> you've</c><00:04:23.199><c> fully</c>

00:04:23.510 --> 00:04:23.520 align:start position:0%
jump key is disabled until you've fully
 

00:04:23.520 --> 00:04:25.350 align:start position:0%
jump key is disabled until you've fully
gone<00:04:23.840><c> through</c><00:04:24.000><c> the</c><00:04:24.240><c> wall,</c><00:04:24.639><c> at</c><00:04:24.800><c> which</c><00:04:25.040><c> point</c>

00:04:25.350 --> 00:04:25.360 align:start position:0%
gone through the wall, at which point
 

00:04:25.360 --> 00:04:27.510 align:start position:0%
gone through the wall, at which point
you<00:04:25.600><c> simply</c><00:04:25.840><c> get</c><00:04:26.080><c> ejected</c><00:04:26.639><c> out</c><00:04:26.880><c> on</c><00:04:27.120><c> the</c><00:04:27.280><c> other</c>

00:04:27.510 --> 00:04:27.520 align:start position:0%
you simply get ejected out on the other
 

00:04:27.520 --> 00:04:30.550 align:start position:0%
you simply get ejected out on the other
side.<00:04:28.320><c> That</c><00:04:28.639><c> said,</c><00:04:29.120><c> the</c><00:04:29.360><c> other</c><00:04:29.680><c> portal</c><00:04:30.240><c> does</c>

00:04:30.550 --> 00:04:30.560 align:start position:0%
side. That said, the other portal does
 

00:04:30.560 --> 00:04:32.710 align:start position:0%
side. That said, the other portal does
react<00:04:30.960><c> somewhat</c><00:04:31.440><c> by</c><00:04:31.680><c> rendering</c><00:04:32.160><c> a</c><00:04:32.320><c> blurry</c>

00:04:32.710 --> 00:04:32.720 align:start position:0%
react somewhat by rendering a blurry
 

00:04:32.720 --> 00:04:34.870 align:start position:0%
react somewhat by rendering a blurry
figure<00:04:33.040><c> of</c><00:04:33.199><c> the</c><00:04:33.360><c> player</c><00:04:33.680><c> as</c><00:04:33.919><c> they</c><00:04:34.080><c> approach.</c>

00:04:34.870 --> 00:04:34.880 align:start position:0%
figure of the player as they approach.
 

00:04:34.880 --> 00:04:36.790 align:start position:0%
figure of the player as they approach.
This<00:04:35.120><c> is</c><00:04:35.280><c> an</c><00:04:35.440><c> imitation</c><00:04:35.919><c> of</c><00:04:36.080><c> how</c><00:04:36.400><c> Valve's</c>

00:04:36.790 --> 00:04:36.800 align:start position:0%
This is an imitation of how Valve's
 

00:04:36.800 --> 00:04:38.790 align:start position:0%
This is an imitation of how Valve's
portals<00:04:37.280><c> render</c><00:04:37.520><c> what's</c><00:04:37.840><c> on</c><00:04:37.919><c> the</c><00:04:38.080><c> other</c><00:04:38.240><c> side.</c>

00:04:38.790 --> 00:04:38.800 align:start position:0%
portals render what's on the other side.
 

00:04:38.800 --> 00:04:40.870 align:start position:0%
portals render what's on the other side.
Valve<00:04:39.199><c> does</c><00:04:39.360><c> this</c><00:04:39.520><c> by</c><00:04:39.680><c> masking</c><00:04:40.160><c> a</c><00:04:40.400><c> separate</c>

00:04:40.870 --> 00:04:40.880 align:start position:0%
Valve does this by masking a separate
 

00:04:40.880 --> 00:04:43.030 align:start position:0%
Valve does this by masking a separate
camera<00:04:41.280><c> onto</c><00:04:41.600><c> the</c><00:04:41.759><c> face</c><00:04:42.000><c> of</c><00:04:42.080><c> the</c><00:04:42.240><c> portal,</c><00:04:42.800><c> but</c>

00:04:43.030 --> 00:04:43.040 align:start position:0%
camera onto the face of the portal, but
 

00:04:43.040 --> 00:04:44.950 align:start position:0%
camera onto the face of the portal, but
the<00:04:43.199><c> Flash</c><00:04:43.520><c> version's</c><00:04:43.919><c> approach</c><00:04:44.320><c> is</c><00:04:44.560><c> a</c><00:04:44.800><c> lot</c>

00:04:44.950 --> 00:04:44.960 align:start position:0%
the Flash version's approach is a lot
 

00:04:44.960 --> 00:04:47.510 align:start position:0%
the Flash version's approach is a lot
more<00:04:45.199><c> primitive.</c><00:04:46.080><c> This</c><00:04:46.400><c> is</c><00:04:46.639><c> just</c><00:04:46.880><c> a</c><00:04:47.120><c> blurry</c>

00:04:47.510 --> 00:04:47.520 align:start position:0%
more primitive. This is just a blurry
 

00:04:47.520 --> 00:04:49.270 align:start position:0%
more primitive. This is just a blurry
copy<00:04:47.840><c> of</c><00:04:47.919><c> the</c><00:04:48.160><c> player</c><00:04:48.400><c> sprite.</c><00:04:48.800><c> I</c><00:04:48.960><c> went</c><00:04:49.040><c> ahead</c>

00:04:49.270 --> 00:04:49.280 align:start position:0%
copy of the player sprite. I went ahead
 

00:04:49.280 --> 00:04:50.870 align:start position:0%
copy of the player sprite. I went ahead
and<00:04:49.440><c> unblurred</c><00:04:49.919><c> it</c><00:04:50.080><c> in</c><00:04:50.160><c> the</c><00:04:50.240><c> game</c><00:04:50.400><c> code</c><00:04:50.639><c> to</c>

00:04:50.870 --> 00:04:50.880 align:start position:0%
and unblurred it in the game code to
 

00:04:50.880 --> 00:04:52.550 align:start position:0%
and unblurred it in the game code to
better<00:04:51.040><c> show</c><00:04:51.199><c> what's</c><00:04:51.520><c> going</c><00:04:51.600><c> on.</c><00:04:52.080><c> In</c><00:04:52.320><c> many</c>

00:04:52.550 --> 00:04:52.560 align:start position:0%
better show what's going on. In many
 

00:04:52.560 --> 00:04:54.550 align:start position:0%
better show what's going on. In many
cases,<00:04:52.880><c> the</c><00:04:53.040><c> sprite</c><00:04:53.440><c> is</c><00:04:53.600><c> actually</c><00:04:54.080><c> upside</c>

00:04:54.550 --> 00:04:54.560 align:start position:0%
cases, the sprite is actually upside
 

00:04:54.560 --> 00:04:56.469 align:start position:0%
cases, the sprite is actually upside
down,<00:04:55.040><c> and</c><00:04:55.280><c> in</c><00:04:55.440><c> other</c><00:04:55.600><c> cases,</c><00:04:55.919><c> it's</c><00:04:56.160><c> also</c>

00:04:56.469 --> 00:04:56.479 align:start position:0%
down, and in other cases, it's also
 

00:04:56.479 --> 00:04:58.629 align:start position:0%
down, and in other cases, it's also
moving<00:04:56.800><c> the</c><00:04:57.040><c> wrong</c><00:04:57.280><c> way.</c><00:04:57.759><c> Notice</c><00:04:58.080><c> how</c><00:04:58.320><c> here</c>

00:04:58.629 --> 00:04:58.639 align:start position:0%
moving the wrong way. Notice how here
 

00:04:58.639 --> 00:05:01.430 align:start position:0%
moving the wrong way. Notice how here
I'm<00:04:58.960><c> jumping</c><00:04:59.440><c> up,</c><00:04:59.840><c> yet</c><00:05:00.080><c> the</c><00:05:00.240><c> sprite</c><00:05:00.639><c> is</c><00:05:00.960><c> moving</c>

00:05:01.430 --> 00:05:01.440 align:start position:0%
I'm jumping up, yet the sprite is moving
 

00:05:01.440 --> 00:05:03.510 align:start position:0%
I'm jumping up, yet the sprite is moving
down.<00:05:02.240><c> Granted,</c><00:05:02.720><c> this</c><00:05:02.880><c> is</c><00:05:02.960><c> normally</c><00:05:03.360><c> just</c>

00:05:03.510 --> 00:05:03.520 align:start position:0%
down. Granted, this is normally just
 

00:05:03.520 --> 00:05:05.510 align:start position:0%
down. Granted, this is normally just
some<00:05:03.759><c> subtle</c><00:05:04.160><c> visual</c><00:05:04.560><c> flare,</c><00:05:04.960><c> but</c><00:05:05.120><c> it</c><00:05:05.360><c> just</c>

00:05:05.510 --> 00:05:05.520 align:start position:0%
some subtle visual flare, but it just
 

00:05:05.520 --> 00:05:07.189 align:start position:0%
some subtle visual flare, but it just
goes<00:05:05.680><c> to</c><00:05:05.840><c> show</c><00:05:06.080><c> how</c><00:05:06.320><c> hard</c><00:05:06.479><c> it</c><00:05:06.720><c> is</c><00:05:06.800><c> to</c><00:05:07.039><c> make</c>

00:05:07.189 --> 00:05:07.199 align:start position:0%
goes to show how hard it is to make
 

00:05:07.199 --> 00:05:09.590 align:start position:0%
goes to show how hard it is to make
portals<00:05:07.680><c> the</c><00:05:07.919><c> way</c><00:05:08.080><c> Valve</c><00:05:08.479><c> did</c><00:05:08.639><c> it.</c><00:05:09.039><c> After</c><00:05:09.280><c> all,</c>

00:05:09.590 --> 00:05:09.600 align:start position:0%
portals the way Valve did it. After all,
 

00:05:09.600 --> 00:05:11.189 align:start position:0%
portals the way Valve did it. After all,
one<00:05:09.759><c> of</c><00:05:09.840><c> the</c><00:05:10.000><c> main</c><00:05:10.240><c> reasons</c><00:05:10.479><c> they</c><00:05:10.720><c> hired</c><00:05:11.039><c> the</c>

00:05:11.189 --> 00:05:11.199 align:start position:0%
one of the main reasons they hired the
 

00:05:11.199 --> 00:05:13.350 align:start position:0%
one of the main reasons they hired the
Narbacular<00:05:11.840><c> drop</c><00:05:12.160><c> team</c><00:05:12.400><c> is</c><00:05:12.639><c> because</c><00:05:12.880><c> they</c><00:05:13.120><c> had</c>

00:05:13.350 --> 00:05:13.360 align:start position:0%
Narbacular drop team is because they had
 

00:05:13.360 --> 00:05:15.189 align:start position:0%
Narbacular drop team is because they had
already<00:05:13.600><c> figured</c><00:05:13.919><c> out</c><00:05:14.160><c> all</c><00:05:14.400><c> the</c><00:05:14.639><c> complicated</c>

00:05:15.189 --> 00:05:15.199 align:start position:0%
already figured out all the complicated
 

00:05:15.199 --> 00:05:17.430 align:start position:0%
already figured out all the complicated
math.<00:05:15.919><c> I'd</c><00:05:16.240><c> say</c><00:05:16.320><c> that</c><00:05:16.639><c> at</c><00:05:16.720><c> least</c><00:05:17.039><c> a</c><00:05:17.199><c> part</c><00:05:17.360><c> of</c>

00:05:17.430 --> 00:05:17.440 align:start position:0%
math. I'd say that at least a part of
 

00:05:17.440 --> 00:05:19.189 align:start position:0%
math. I'd say that at least a part of
these<00:05:17.680><c> discrepancies</c><00:05:18.400><c> can</c><00:05:18.639><c> likely</c><00:05:19.039><c> be</c>

00:05:19.189 --> 00:05:19.199 align:start position:0%
these discrepancies can likely be
 

00:05:19.199 --> 00:05:20.870 align:start position:0%
these discrepancies can likely be
attributed<00:05:19.600><c> to</c><00:05:19.680><c> the</c><00:05:19.919><c> Flash</c><00:05:20.240><c> version</c><00:05:20.560><c> team's</c>

00:05:20.870 --> 00:05:20.880 align:start position:0%
attributed to the Flash version team's
 

00:05:20.880 --> 00:05:22.550 align:start position:0%
attributed to the Flash version team's
inexperience<00:05:21.520><c> in</c><00:05:21.759><c> developing</c><00:05:22.160><c> something</c>

00:05:22.550 --> 00:05:22.560 align:start position:0%
inexperience in developing something
 

00:05:22.560 --> 00:05:25.029 align:start position:0%
inexperience in developing something
like<00:05:22.800><c> this.</c><00:05:23.360><c> There's</c><00:05:23.759><c> a</c><00:05:24.000><c> lot</c><00:05:24.160><c> of</c><00:05:24.400><c> duplicated</c>

00:05:25.029 --> 00:05:25.039 align:start position:0%
like this. There's a lot of duplicated
 

00:05:25.039 --> 00:05:27.510 align:start position:0%
like this. There's a lot of duplicated
code<00:05:25.360><c> here,</c><00:05:25.680><c> which</c><00:05:25.919><c> is</c><00:05:26.080><c> a</c><00:05:26.240><c> red</c><00:05:26.479><c> flag</c><00:05:26.800><c> in</c><00:05:27.039><c> almost</c>

00:05:27.510 --> 00:05:27.520 align:start position:0%
code here, which is a red flag in almost
 

00:05:27.520 --> 00:05:30.310 align:start position:0%
code here, which is a red flag in almost
any<00:05:27.919><c> code</c><00:05:28.240><c> base.</c><00:05:28.880><c> And</c><00:05:29.280><c> actually,</c><00:05:29.840><c> here's</c><00:05:30.160><c> a</c>

00:05:30.310 --> 00:05:30.320 align:start position:0%
any code base. And actually, here's a
 

00:05:30.320 --> 00:05:32.550 align:start position:0%
any code base. And actually, here's a
good<00:05:30.479><c> example</c><00:05:30.800><c> of</c><00:05:31.039><c> why</c><00:05:31.280><c> that's</c><00:05:31.600><c> the</c><00:05:31.840><c> case.</c>

00:05:32.550 --> 00:05:32.560 align:start position:0%
good example of why that's the case.
 

00:05:32.560 --> 00:05:34.550 align:start position:0%
good example of why that's the case.
This<00:05:32.800><c> is</c><00:05:32.880><c> the</c><00:05:33.120><c> code</c><00:05:33.360><c> that</c><00:05:33.600><c> handles</c><00:05:34.080><c> collision</c>

00:05:34.550 --> 00:05:34.560 align:start position:0%
This is the code that handles collision
 

00:05:34.560 --> 00:05:36.550 align:start position:0%
This is the code that handles collision
near<00:05:34.880><c> portals.</c><00:05:35.363><c> [music]</c><00:05:35.680><c> Feel</c><00:05:35.919><c> free</c><00:05:36.080><c> to</c><00:05:36.320><c> pause</c>

00:05:36.550 --> 00:05:36.560 align:start position:0%
near portals. [music] Feel free to pause
 

00:05:36.560 --> 00:05:38.070 align:start position:0%
near portals. [music] Feel free to pause
the<00:05:36.800><c> video</c><00:05:36.960><c> and</c><00:05:37.120><c> see</c><00:05:37.280><c> if</c><00:05:37.440><c> you</c><00:05:37.520><c> can</c><00:05:37.680><c> spot</c><00:05:37.840><c> the</c>

00:05:38.070 --> 00:05:38.080 align:start position:0%
the video and see if you can spot the
 

00:05:38.080 --> 00:05:40.390 align:start position:0%
the video and see if you can spot the
mistake.<00:05:39.039><c> Got</c><00:05:39.280><c> your</c><00:05:39.440><c> answers</c><00:05:39.840><c> ready?</c><00:05:40.400><c> All</c>

00:05:40.390 --> 00:05:40.400 align:start position:0%
mistake. Got your answers ready? All
 

00:05:40.400 --> 00:05:42.550 align:start position:0%
mistake. Got your answers ready? All
right.<00:05:40.800><c> Now,</c><00:05:41.039><c> the</c><00:05:41.280><c> word</c><00:05:41.600><c> addition</c><00:05:42.160><c> is</c>

00:05:42.550 --> 00:05:42.560 align:start position:0%
right. Now, the word addition is
 

00:05:42.560 --> 00:05:44.710 align:start position:0%
right. Now, the word addition is
misspelled<00:05:43.199><c> in</c><00:05:43.440><c> all</c><00:05:43.600><c> of</c><00:05:43.680><c> these</c><00:05:44.000><c> variables,</c>

00:05:44.710 --> 00:05:44.720 align:start position:0%
misspelled in all of these variables,
 

00:05:44.720 --> 00:05:46.390 align:start position:0%
misspelled in all of these variables,
but<00:05:44.880><c> that</c><00:05:45.120><c> on</c><00:05:45.360><c> its</c><00:05:45.520><c> own</c><00:05:45.680><c> isn't</c><00:05:46.000><c> really</c><00:05:46.240><c> a</c>

00:05:46.390 --> 00:05:46.400 align:start position:0%
but that on its own isn't really a
 

00:05:46.400 --> 00:05:48.310 align:start position:0%
but that on its own isn't really a
problem.<00:05:46.880><c> Code</c><00:05:47.280><c> mostly</c><00:05:47.600><c> doesn't</c><00:05:47.840><c> care</c><00:05:48.080><c> about</c>

00:05:48.310 --> 00:05:48.320 align:start position:0%
problem. Code mostly doesn't care about
 

00:05:48.320 --> 00:05:49.990 align:start position:0%
problem. Code mostly doesn't care about
English<00:05:48.639><c> grammar</c><00:05:49.039><c> as</c><00:05:49.280><c> long</c><00:05:49.360><c> as</c><00:05:49.440><c> you</c><00:05:49.600><c> keep</c><00:05:49.759><c> the</c>

00:05:49.990 --> 00:05:50.000 align:start position:0%
English grammar as long as you keep the
 

00:05:50.000 --> 00:05:52.230 align:start position:0%
English grammar as long as you keep the
naming<00:05:50.400><c> consistent.</c><00:05:51.199><c> But</c><00:05:51.520><c> here</c><00:05:51.738><c> [music]</c><00:05:51.919><c> on</c>

00:05:52.230 --> 00:05:52.240 align:start position:0%
naming consistent. But here [music] on
 

00:05:52.240 --> 00:05:54.790 align:start position:0%
naming consistent. But here [music] on
this<00:05:52.639><c> one</c><00:05:52.960><c> line,</c><00:05:53.520><c> the</c><00:05:53.759><c> misspelling</c><00:05:54.400><c> is</c>

00:05:54.790 --> 00:05:54.800 align:start position:0%
this one line, the misspelling is
 

00:05:54.800 --> 00:05:57.029 align:start position:0%
this one line, the misspelling is
further<00:05:55.280><c> misspelled,</c><00:05:56.080><c> missing</c><00:05:56.400><c> the</c><00:05:56.639><c> letter</c>

00:05:57.029 --> 00:05:57.039 align:start position:0%
further misspelled, missing the letter
 

00:05:57.039 --> 00:05:59.590 align:start position:0%
further misspelled, missing the letter
A.<00:05:57.840><c> One</c><00:05:58.160><c> consequence</c><00:05:58.639><c> of</c><00:05:58.800><c> this</c><00:05:59.039><c> is</c><00:05:59.199><c> that</c><00:05:59.440><c> you</c>

00:05:59.590 --> 00:05:59.600 align:start position:0%
A. One consequence of this is that you
 

00:05:59.600 --> 00:06:01.554 align:start position:0%
A. One consequence of this is that you
can<00:05:59.759><c> jump</c><00:06:00.080><c> on</c><00:06:00.320><c> the</c><00:06:00.479><c> edge</c><00:06:00.639><c> of</c><00:06:00.800><c> a</c><00:06:00.960><c> right-facing</c>

00:06:01.554 --> 00:06:01.564 align:start position:0%
can jump on the edge of a right-facing
 

00:06:01.564 --> 00:06:03.110 align:start position:0%
can jump on the edge of a right-facing
[music]<00:06:01.680><c> portal.</c><00:06:02.320><c> I</c><00:06:02.560><c> always</c><00:06:02.720><c> thought</c><00:06:02.880><c> that</c>

00:06:03.110 --> 00:06:03.120 align:start position:0%
[music] portal. I always thought that
 

00:06:03.120 --> 00:06:04.870 align:start position:0%
[music] portal. I always thought that
this<00:06:03.280><c> was</c><00:06:03.440><c> intended</c><00:06:03.919><c> behavior,</c><00:06:04.479><c> but</c><00:06:04.639><c> if</c><00:06:04.800><c> you</c>

00:06:04.870 --> 00:06:04.880 align:start position:0%
this was intended behavior, but if you
 

00:06:04.880 --> 00:06:06.710 align:start position:0%
this was intended behavior, but if you
try<00:06:05.039><c> to</c><00:06:05.199><c> do</c><00:06:05.280><c> the</c><00:06:05.520><c> same</c><00:06:05.600><c> thing</c><00:06:05.759><c> on</c><00:06:05.919><c> a</c><00:06:06.080><c> left-acing</c>

00:06:06.710 --> 00:06:06.720 align:start position:0%
try to do the same thing on a left-acing
 

00:06:06.720 --> 00:06:08.309 align:start position:0%
try to do the same thing on a left-acing
portal,<00:06:07.199><c> you'll</c><00:06:07.440><c> just</c><00:06:07.759><c> fall</c><00:06:08.000><c> right</c><00:06:08.114><c> [music]</c>

00:06:08.309 --> 00:06:08.319 align:start position:0%
portal, you'll just fall right [music]
 

00:06:08.319 --> 00:06:11.270 align:start position:0%
portal, you'll just fall right [music]
down.<00:06:09.039><c> And</c><00:06:09.360><c> if</c><00:06:09.600><c> I</c><00:06:09.840><c> patch</c><00:06:10.160><c> the</c><00:06:10.400><c> code</c><00:06:10.720><c> to</c><00:06:11.039><c> fix</c>

00:06:11.270 --> 00:06:11.280 align:start position:0%
down. And if I patch the code to fix
 

00:06:11.280 --> 00:06:13.830 align:start position:0%
down. And if I patch the code to fix
this<00:06:11.520><c> bug,</c><00:06:12.000><c> the</c><00:06:12.240><c> same</c><00:06:12.479><c> thing</c><00:06:12.720><c> now</c><00:06:13.039><c> happens</c><00:06:13.440><c> on</c>

00:06:13.830 --> 00:06:13.840 align:start position:0%
this bug, the same thing now happens on
 

00:06:13.840 --> 00:06:15.510 align:start position:0%
this bug, the same thing now happens on
both<00:06:14.160><c> types</c><00:06:14.479><c> of</c><00:06:14.639><c> portals.</c><00:06:14.664><c> [music]</c>

00:06:15.510 --> 00:06:15.520 align:start position:0%
both types of portals. [music]
 

00:06:15.520 --> 00:06:17.350 align:start position:0%
both types of portals. [music]
While<00:06:15.759><c> this</c><00:06:16.080><c> ultimately</c><00:06:16.479><c> is</c><00:06:16.720><c> just</c><00:06:16.880><c> a</c><00:06:17.120><c> silly</c>

00:06:17.350 --> 00:06:17.360 align:start position:0%
While this ultimately is just a silly
 

00:06:17.360 --> 00:06:19.270 align:start position:0%
While this ultimately is just a silly
typo,<00:06:17.919><c> it</c><00:06:18.160><c> would</c><00:06:18.319><c> have</c><00:06:18.400><c> been</c><00:06:18.560><c> easier</c><00:06:18.880><c> to</c><00:06:19.039><c> spot</c>

00:06:19.270 --> 00:06:19.280 align:start position:0%
typo, it would have been easier to spot
 

00:06:19.280 --> 00:06:20.469 align:start position:0%
typo, it would have been easier to spot
if<00:06:19.520><c> these</c><00:06:19.759><c> calculations</c><00:06:19.904><c> [music]</c>

00:06:20.469 --> 00:06:20.479 align:start position:0%
if these calculations [music]
 

00:06:20.479 --> 00:06:22.550 align:start position:0%
if these calculations [music]
weren't<00:06:20.880><c> duplicated</c><00:06:21.440><c> and</c><00:06:21.759><c> hard-coded</c><00:06:22.400><c> to</c>

00:06:22.550 --> 00:06:22.560 align:start position:0%
weren't duplicated and hard-coded to
 

00:06:22.560 --> 00:06:24.870 align:start position:0%
weren't duplicated and hard-coded to
specific<00:06:23.039><c> angles.</c><00:06:23.840><c> In</c><00:06:24.000><c> that</c><00:06:24.240><c> case,</c><00:06:24.479><c> it</c><00:06:24.720><c> would</c>

00:06:24.870 --> 00:06:24.880 align:start position:0%
specific angles. In that case, it would
 

00:06:24.880 --> 00:06:26.390 align:start position:0%
specific angles. In that case, it would
have<00:06:25.039><c> been</c><00:06:25.199><c> obvious</c><00:06:25.600><c> if</c><00:06:25.840><c> something</c><00:06:26.160><c> didn't</c>

00:06:26.390 --> 00:06:26.400 align:start position:0%
have been obvious if something didn't
 

00:06:26.400 --> 00:06:28.550 align:start position:0%
have been obvious if something didn't
work<00:06:26.560><c> quite</c><00:06:26.880><c> right.</c><00:06:27.440><c> But</c><00:06:27.680><c> with</c><00:06:27.919><c> the</c><00:06:28.160><c> way</c><00:06:28.240><c> it's</c>

00:06:28.550 --> 00:06:28.560 align:start position:0%
work quite right. But with the way it's
 

00:06:28.560 --> 00:06:30.629 align:start position:0%
work quite right. But with the way it's
implemented<00:06:29.120><c> now,</c><00:06:29.440><c> the</c><00:06:29.759><c> developers</c><00:06:30.319><c> only</c>

00:06:30.629 --> 00:06:30.639 align:start position:0%
implemented now, the developers only
 

00:06:30.639 --> 00:06:32.790 align:start position:0%
implemented now, the developers only
have<00:06:30.800><c> a</c><00:06:30.960><c> one</c><00:06:31.120><c> in</c><00:06:31.440><c> two</c><00:06:31.600><c> chance</c><00:06:31.919><c> to</c><00:06:32.160><c> spot</c><00:06:32.479><c> the</c>

00:06:32.790 --> 00:06:32.800 align:start position:0%
have a one in two chance to spot the
 

00:06:32.800 --> 00:06:35.510 align:start position:0%
have a one in two chance to spot the
issue.<00:06:34.160><c> Now,</c><00:06:34.400><c> if</c><00:06:34.560><c> it</c><00:06:34.800><c> seems</c><00:06:34.960><c> like</c><00:06:35.120><c> I'm</c><00:06:35.360><c> being</c>

00:06:35.510 --> 00:06:35.520 align:start position:0%
issue. Now, if it seems like I'm being
 

00:06:35.520 --> 00:06:37.670 align:start position:0%
issue. Now, if it seems like I'm being
overly<00:06:36.000><c> critical</c><00:06:36.319><c> of</c><00:06:36.479><c> these</c><00:06:36.720><c> games,</c><00:06:37.199><c> you're</c>

00:06:37.670 --> 00:06:37.680 align:start position:0%
overly critical of these games, you're
 

00:06:37.680 --> 00:06:40.150 align:start position:0%
overly critical of these games, you're
probably<00:06:38.160><c> right.</c><00:06:38.960><c> Every</c><00:06:39.280><c> game</c><00:06:39.520><c> has</c><00:06:39.680><c> nasty</c>

00:06:40.150 --> 00:06:40.160 align:start position:0%
probably right. Every game has nasty
 

00:06:40.160 --> 00:06:41.990 align:start position:0%
probably right. Every game has nasty
code.<00:06:40.560><c> There's</c><00:06:40.800><c> a</c><00:06:41.039><c> reason</c><00:06:41.199><c> why</c><00:06:41.440><c> developers</c>

00:06:41.990 --> 00:06:42.000 align:start position:0%
code. There's a reason why developers
 

00:06:42.000 --> 00:06:43.830 align:start position:0%
code. There's a reason why developers
almost<00:06:42.319><c> never</c><00:06:42.560><c> make</c><00:06:42.720><c> it</c><00:06:42.960><c> public.</c><00:06:43.440><c> As</c><00:06:43.680><c> long</c><00:06:43.759><c> as</c>

00:06:43.830 --> 00:06:43.840 align:start position:0%
almost never make it public. As long as
 

00:06:43.840 --> 00:06:45.749 align:start position:0%
almost never make it public. As long as
it's<00:06:44.080><c> fun</c><00:06:44.240><c> to</c><00:06:44.479><c> play,</c><00:06:44.800><c> the</c><00:06:44.960><c> rest</c><00:06:45.199><c> is</c><00:06:45.440><c> just</c><00:06:45.600><c> a</c>

00:06:45.749 --> 00:06:45.759 align:start position:0%
it's fun to play, the rest is just a
 

00:06:45.759 --> 00:06:48.309 align:start position:0%
it's fun to play, the rest is just a
means<00:06:46.000><c> to</c><00:06:46.160><c> an</c><00:06:46.400><c> end.</c><00:06:46.960><c> Keep</c><00:06:47.120><c> in</c><00:06:47.280><c> mind</c><00:06:47.520><c> that</c><00:06:47.840><c> Flash</c>

00:06:48.309 --> 00:06:48.319 align:start position:0%
means to an end. Keep in mind that Flash
 

00:06:48.319 --> 00:06:50.150 align:start position:0%
means to an end. Keep in mind that Flash
was<00:06:48.479><c> at</c><00:06:48.639><c> its</c><00:06:48.880><c> peak</c><00:06:49.120><c> during</c><00:06:49.440><c> an</c><00:06:49.680><c> era</c><00:06:49.840><c> of</c><00:06:50.000><c> the</c>

00:06:50.150 --> 00:06:50.160 align:start position:0%
was at its peak during an era of the
 

00:06:50.160 --> 00:06:51.830 align:start position:0%
was at its peak during an era of the
internet<00:06:50.479><c> where</c><00:06:50.800><c> programming</c><00:06:51.280><c> knowledge</c><00:06:51.600><c> was</c>

00:06:51.830 --> 00:06:51.840 align:start position:0%
internet where programming knowledge was
 

00:06:51.840 --> 00:06:53.670 align:start position:0%
internet where programming knowledge was
rare.<00:06:52.240><c> Yet,</c><00:06:52.479><c> it</c><00:06:52.639><c> often</c><00:06:52.960><c> took</c><00:06:53.199><c> just</c><00:06:53.440><c> one</c>

00:06:53.670 --> 00:06:53.680 align:start position:0%
rare. Yet, it often took just one
 

00:06:53.680 --> 00:06:55.430 align:start position:0%
rare. Yet, it often took just one
passionate<00:06:54.160><c> developer</c><00:06:54.639><c> to</c><00:06:54.800><c> create</c><00:06:55.039><c> what</c><00:06:55.280><c> we</c>

00:06:55.430 --> 00:06:55.440 align:start position:0%
passionate developer to create what we
 

00:06:55.440 --> 00:06:57.830 align:start position:0%
passionate developer to create what we
now<00:06:55.680><c> regard</c><00:06:56.080><c> a</c><00:06:56.319><c> classic.</c><00:06:57.199><c> Things</c><00:06:57.600><c> have</c>

00:06:57.830 --> 00:06:57.840 align:start position:0%
now regard a classic. Things have
 

00:06:57.840 --> 00:06:59.670 align:start position:0%
now regard a classic. Things have
changed<00:06:58.240><c> since</c><00:06:58.479><c> then,</c><00:06:58.720><c> and</c><00:06:59.039><c> programming</c><00:06:59.520><c> has</c>

00:06:59.670 --> 00:06:59.680 align:start position:0%
changed since then, and programming has
 

00:06:59.680 --> 00:07:01.589 align:start position:0%
changed since then, and programming has
become<00:06:59.919><c> more</c><00:07:00.160><c> accessible.</c><00:07:00.880><c> Of</c><00:07:01.120><c> course,</c><00:07:01.360><c> for</c>

00:07:01.589 --> 00:07:01.599 align:start position:0%
become more accessible. Of course, for
 

00:07:01.599 --> 00:07:03.129 align:start position:0%
become more accessible. Of course, for
creativity,<00:07:02.400><c> you've</c><00:07:02.639><c> still</c><00:07:02.880><c> got</c><00:07:03.120><c> your</c>

00:07:03.129 --> 00:07:03.139 align:start position:0%
creativity, you've still got your
 

00:07:03.139 --> 00:07:05.510 align:start position:0%
creativity, you've still got your
[music]<00:07:03.360><c> heart.</c><00:07:04.000><c> But</c><00:07:04.240><c> for</c><00:07:04.560><c> code,</c><00:07:05.199><c> there's</c>

00:07:05.510 --> 00:07:05.520 align:start position:0%
[music] heart. But for code, there's
 

00:07:05.520 --> 00:07:07.110 align:start position:0%
[music] heart. But for code, there's
Kodi.te.

00:07:07.110 --> 00:07:07.120 align:start position:0%
Kodi.te.
 

00:07:07.120 --> 00:07:09.510 align:start position:0%
Kodi.te.
Cod<00:07:07.599><c> is</c><00:07:07.759><c> the</c><00:07:08.000><c> sponsor</c><00:07:08.240><c> of</c><00:07:08.400><c> this</c><00:07:08.639><c> video</c><00:07:08.960><c> and</c><00:07:09.199><c> has</c>

00:07:09.510 --> 00:07:09.520 align:start position:0%
Cod is the sponsor of this video and has
 

00:07:09.520 --> 00:07:11.589 align:start position:0%
Cod is the sponsor of this video and has
been<00:07:09.680><c> for</c><00:07:09.840><c> a</c><00:07:10.080><c> few</c><00:07:10.160><c> other</c><00:07:10.479><c> videos.</c><00:07:11.039><c> Since</c><00:07:11.280><c> then,</c>

00:07:11.589 --> 00:07:11.599 align:start position:0%
been for a few other videos. Since then,
 

00:07:11.599 --> 00:07:13.110 align:start position:0%
been for a few other videos. Since then,
commenters<00:07:12.080><c> have</c><00:07:12.240><c> been</c><00:07:12.400><c> quick</c><00:07:12.560><c> to</c><00:07:12.720><c> point</c><00:07:12.880><c> out</c>

00:07:13.110 --> 00:07:13.120 align:start position:0%
commenters have been quick to point out
 

00:07:13.120 --> 00:07:15.189 align:start position:0%
commenters have been quick to point out
that<00:07:13.360><c> it's</c><00:07:13.599><c> basically</c><00:07:13.919><c> just</c><00:07:14.160><c> Dualingo,</c><00:07:14.960><c> but</c>

00:07:15.189 --> 00:07:15.199 align:start position:0%
that it's basically just Dualingo, but
 

00:07:15.199 --> 00:07:18.390 align:start position:0%
that it's basically just Dualingo, but
for<00:07:15.520><c> code.</c><00:07:16.319><c> And</c><00:07:16.800><c> yeah,</c><00:07:17.360><c> essentially</c><00:07:17.919><c> that</c><00:07:18.160><c> is</c>

00:07:18.390 --> 00:07:18.400 align:start position:0%
for code. And yeah, essentially that is
 

00:07:18.400 --> 00:07:20.629 align:start position:0%
for code. And yeah, essentially that is
what<00:07:18.639><c> you</c><00:07:18.880><c> get.</c><00:07:19.360><c> structured</c><00:07:19.840><c> and</c><00:07:20.080><c> interactive</c>

00:07:20.629 --> 00:07:20.639 align:start position:0%
what you get. structured and interactive
 

00:07:20.639 --> 00:07:22.150 align:start position:0%
what you get. structured and interactive
lessons<00:07:21.039><c> on</c><00:07:21.280><c> whichever</c><00:07:21.680><c> programming</c>

00:07:22.150 --> 00:07:22.160 align:start position:0%
lessons on whichever programming
 

00:07:22.160 --> 00:07:24.230 align:start position:0%
lessons on whichever programming
language<00:07:22.479><c> you</c><00:07:22.720><c> want</c><00:07:22.880><c> to</c><00:07:23.039><c> learn.</c><00:07:23.599><c> But</c><00:07:23.840><c> unlike</c>

00:07:24.230 --> 00:07:24.240 align:start position:0%
language you want to learn. But unlike
 

00:07:24.240 --> 00:07:26.309 align:start position:0%
language you want to learn. But unlike
Dualingo,<00:07:24.960><c> where</c><00:07:25.120><c> a</c><00:07:25.280><c> year-long</c><00:07:25.759><c> streak</c><00:07:26.080><c> means</c>

00:07:26.309 --> 00:07:26.319 align:start position:0%
Dualingo, where a year-long streak means
 

00:07:26.319 --> 00:07:28.309 align:start position:0%
Dualingo, where a year-long streak means
you've<00:07:26.560><c> learned</c><00:07:26.800><c> basically</c><00:07:27.280><c> nothing,</c><00:07:27.840><c> Kodi</c>

00:07:28.309 --> 00:07:28.319 align:start position:0%
you've learned basically nothing, Kodi
 

00:07:28.319 --> 00:07:29.830 align:start position:0%
you've learned basically nothing, Kodi
teaches<00:07:28.560><c> you</c><00:07:28.800><c> how</c><00:07:28.960><c> to</c><00:07:29.120><c> write</c><00:07:29.335><c> [music]</c><00:07:29.440><c> real</c>

00:07:29.830 --> 00:07:29.840 align:start position:0%
teaches you how to write [music] real
 

00:07:29.840 --> 00:07:32.309 align:start position:0%
teaches you how to write [music] real
programs<00:07:30.319><c> by</c><00:07:30.639><c> like</c><00:07:30.880><c> lesson</c><00:07:31.360><c> 10.</c><00:07:32.000><c> I've</c>

00:07:32.309 --> 00:07:32.319 align:start position:0%
programs by like lesson 10. I've
 

00:07:32.319 --> 00:07:33.990 align:start position:0%
programs by like lesson 10. I've
actually<00:07:32.560><c> been</c><00:07:32.720><c> using</c><00:07:32.960><c> Kodi</c><00:07:33.440><c> to</c><00:07:33.599><c> learn</c><00:07:33.759><c> the</c>

00:07:33.990 --> 00:07:34.000 align:start position:0%
actually been using Kodi to learn the
 

00:07:34.000 --> 00:07:35.990 align:start position:0%
actually been using Kodi to learn the
Rust<00:07:34.479><c> programming</c><00:07:34.960><c> language.</c><00:07:35.440><c> And</c><00:07:35.680><c> I'm</c><00:07:35.840><c> now</c>

00:07:35.990 --> 00:07:36.000 align:start position:0%
Rust programming language. And I'm now
 

00:07:36.000 --> 00:07:37.589 align:start position:0%
Rust programming language. And I'm now
looking<00:07:36.160><c> for</c><00:07:36.319><c> a</c><00:07:36.479><c> project</c><00:07:36.720><c> in</c><00:07:36.960><c> which</c><00:07:37.120><c> to</c><00:07:37.360><c> apply</c>

00:07:37.589 --> 00:07:37.599 align:start position:0%
looking for a project in which to apply
 

00:07:37.599 --> 00:07:39.909 align:start position:0%
looking for a project in which to apply
that.<00:07:38.160><c> They're</c><00:07:38.319><c> not</c><00:07:38.479><c> paying</c><00:07:38.720><c> me</c><00:07:38.960><c> to</c><00:07:39.120><c> use</c><00:07:39.440><c> Kodi</c>

00:07:39.909 --> 00:07:39.919 align:start position:0%
that. They're not paying me to use Kodi
 

00:07:39.919 --> 00:07:41.430 align:start position:0%
that. They're not paying me to use Kodi
and<00:07:40.080><c> they're</c><00:07:40.240><c> not</c><00:07:40.400><c> paying</c><00:07:40.560><c> me</c><00:07:40.720><c> to</c><00:07:40.880><c> say</c><00:07:41.039><c> these</c>

00:07:41.430 --> 00:07:41.440 align:start position:0%
and they're not paying me to say these
 

00:07:41.440 --> 00:07:44.150 align:start position:0%
and they're not paying me to say these
exact<00:07:42.000><c> words.</c><00:07:42.639><c> They're</c><00:07:42.880><c> just</c><00:07:43.199><c> genuinely</c><00:07:43.840><c> that</c>

00:07:44.150 --> 00:07:44.160 align:start position:0%
exact words. They're just genuinely that
 

00:07:44.160 --> 00:07:45.990 align:start position:0%
exact words. They're just genuinely that
chill.<00:07:44.800><c> So,</c><00:07:45.120><c> if</c><00:07:45.280><c> you've</c><00:07:45.520><c> been</c><00:07:45.599><c> planning</c><00:07:45.840><c> on</c>

00:07:45.990 --> 00:07:46.000 align:start position:0%
chill. So, if you've been planning on
 

00:07:46.000 --> 00:07:47.589 align:start position:0%
chill. So, if you've been planning on
getting<00:07:46.240><c> into</c><00:07:46.479><c> programming</c><00:07:46.960><c> or</c><00:07:47.199><c> learning</c><00:07:47.440><c> a</c>

00:07:47.589 --> 00:07:47.599 align:start position:0%
getting into programming or learning a
 

00:07:47.599 --> 00:07:49.189 align:start position:0%
getting into programming or learning a
new<00:07:47.759><c> programming</c><00:07:48.160><c> language,</c><00:07:48.800><c> consider</c>

00:07:49.189 --> 00:07:49.199 align:start position:0%
new programming language, consider
 

00:07:49.199 --> 00:07:50.870 align:start position:0%
new programming language, consider
giving<00:07:49.440><c> Cody</c><00:07:49.759><c> a</c><00:07:49.919><c> shot</c><00:07:50.080><c> through</c><00:07:50.319><c> the</c><00:07:50.479><c> link</c><00:07:50.639><c> in</c>

00:07:50.870 --> 00:07:50.880 align:start position:0%
giving Cody a shot through the link in
 

00:07:50.880 --> 00:07:53.189 align:start position:0%
giving Cody a shot through the link in
the<00:07:51.039><c> description.</c><00:07:51.759><c> Oh,</c><00:07:52.080><c> and</c><00:07:52.400><c> one</c><00:07:52.560><c> more</c><00:07:52.800><c> thing.</c>

00:07:53.189 --> 00:07:53.199 align:start position:0%
the description. Oh, and one more thing.
 

00:07:53.199 --> 00:07:55.189 align:start position:0%
the description. Oh, and one more thing.
Cody<00:07:53.680><c> is</c><00:07:53.840><c> doing</c><00:07:54.000><c> a</c><00:07:54.240><c> sale</c><00:07:54.479><c> at</c><00:07:54.720><c> the</c><00:07:54.800><c> end</c><00:07:54.879><c> of</c><00:07:55.039><c> this</c>

00:07:55.189 --> 00:07:55.199 align:start position:0%
Cody is doing a sale at the end of this
 

00:07:55.199 --> 00:07:56.869 align:start position:0%
Cody is doing a sale at the end of this
month.<00:07:55.680><c> But</c><00:07:55.840><c> since</c><00:07:56.080><c> this</c><00:07:56.319><c> video</c><00:07:56.560><c> is</c><00:07:56.720><c> coming</c>

00:07:56.869 --> 00:07:56.879 align:start position:0%
month. But since this video is coming
 

00:07:56.879 --> 00:07:59.029 align:start position:0%
month. But since this video is coming
out<00:07:57.120><c> way</c><00:07:57.360><c> before</c><00:07:57.680><c> that,</c><00:07:58.160><c> they're</c><00:07:58.560><c> straight</c><00:07:58.800><c> up</c>

00:07:59.029 --> 00:07:59.039 align:start position:0%
out way before that, they're straight up
 

00:07:59.039 --> 00:08:00.550 align:start position:0%
out way before that, they're straight up
just<00:07:59.199><c> giving</c><00:07:59.440><c> you</c><00:07:59.520><c> all</c><00:07:59.680><c> a</c><00:07:59.919><c> discount</c><00:08:00.160><c> code</c><00:08:00.400><c> so</c>

00:08:00.550 --> 00:08:00.560 align:start position:0%
just giving you all a discount code so
 

00:08:00.560 --> 00:08:02.309 align:start position:0%
just giving you all a discount code so
that<00:08:00.720><c> you</c><00:08:00.879><c> wouldn't</c><00:08:01.039><c> have</c><00:08:01.199><c> to</c><00:08:01.280><c> wait.</c><00:08:01.840><c> So,</c><00:08:02.080><c> to</c>

00:08:02.309 --> 00:08:02.319 align:start position:0%
that you wouldn't have to wait. So, to
 

00:08:02.319 --> 00:08:04.790 align:start position:0%
that you wouldn't have to wait. So, to
get<00:08:02.560><c> 20%</c><00:08:03.039><c> off</c><00:08:03.280><c> Kodi</c><00:08:03.759><c> Pro,</c><00:08:04.080><c> use</c><00:08:04.319><c> the</c><00:08:04.479><c> coupon</c>

00:08:04.790 --> 00:08:04.800 align:start position:0%
get 20% off Kodi Pro, use the coupon
 

00:08:04.800 --> 00:08:07.670 align:start position:0%
get 20% off Kodi Pro, use the coupon
code<00:08:05.039><c> on</c><00:08:05.280><c> screen</c><00:08:05.520><c> or</c><00:08:05.840><c> in</c><00:08:06.000><c> the</c><00:08:06.160><c> description.</c>

00:08:07.670 --> 00:08:07.680 align:start position:0%
code on screen or in the description.
 

00:08:07.680 --> 00:08:09.830 align:start position:0%
code on screen or in the description.
Coming<00:08:07.919><c> back</c><00:08:08.160><c> to</c><00:08:08.319><c> that</c><00:08:08.560><c> community</c><00:08:08.960><c> post,</c><00:08:09.520><c> the</c>

00:08:09.830 --> 00:08:09.840 align:start position:0%
Coming back to that community post, the
 

00:08:09.840 --> 00:08:13.029 align:start position:0%
Coming back to that community post, the
most<00:08:10.240><c> popular</c><00:08:10.639><c> suggestion</c><00:08:11.199><c> by</c><00:08:11.520><c> far</c><00:08:12.000><c> was</c><00:08:12.479><c> Run,</c>

00:08:13.029 --> 00:08:13.039 align:start position:0%
most popular suggestion by far was Run,
 

00:08:13.039 --> 00:08:15.670 align:start position:0%
most popular suggestion by far was Run,
a<00:08:13.280><c> series</c><00:08:13.520><c> of</c><00:08:13.759><c> 3D</c><00:08:14.240><c> firstperson</c><00:08:14.879><c> platformers</c>

00:08:15.670 --> 00:08:15.680 align:start position:0%
a series of 3D firstperson platformers
 

00:08:15.680 --> 00:08:20.150 align:start position:0%
a series of 3D firstperson platformers
with<00:08:16.000><c> one</c><00:08:16.560><c> simple</c><00:08:17.039><c> question.</c><00:08:18.160><c> How</c><00:08:18.479><c> was</c><00:08:18.639><c> it</c><00:08:19.039><c> 3D?</c>

00:08:20.150 --> 00:08:20.160 align:start position:0%
with one simple question. How was it 3D?
 

00:08:20.160 --> 00:08:22.309 align:start position:0%
with one simple question. How was it 3D?
I<00:08:20.400><c> mean,</c><00:08:20.560><c> if</c><00:08:20.800><c> you</c><00:08:20.960><c> look</c><00:08:21.199><c> back</c><00:08:21.440><c> to</c><00:08:21.680><c> most</c><00:08:22.000><c> flash</c>

00:08:22.309 --> 00:08:22.319 align:start position:0%
I mean, if you look back to most flash
 

00:08:22.319 --> 00:08:25.029 align:start position:0%
I mean, if you look back to most flash
games<00:08:22.560><c> of</c><00:08:22.800><c> the</c><00:08:23.039><c> era,</c><00:08:23.440><c> the</c><00:08:23.680><c> vast</c><00:08:24.080><c> majority</c><00:08:24.720><c> used</c>

00:08:25.029 --> 00:08:25.039 align:start position:0%
games of the era, the vast majority used
 

00:08:25.039 --> 00:08:28.390 align:start position:0%
games of the era, the vast majority used
simple<00:08:25.520><c> 2D</c><00:08:26.000><c> graphics</c><00:08:26.800><c> or</c><00:08:27.120><c> at</c><00:08:27.360><c> best</c><00:08:28.000><c> faked</c>

00:08:28.390 --> 00:08:28.400 align:start position:0%
simple 2D graphics or at best faked
 

00:08:28.400 --> 00:08:31.110 align:start position:0%
simple 2D graphics or at best faked
their<00:08:28.720><c> 3D</c><00:08:29.199><c> with</c><00:08:29.440><c> pre-rendered</c><00:08:30.160><c> scenes.</c><00:08:30.960><c> For</c>

00:08:31.110 --> 00:08:31.120 align:start position:0%
their 3D with pre-rendered scenes. For
 

00:08:31.120 --> 00:08:33.430 align:start position:0%
their 3D with pre-rendered scenes. For
the<00:08:31.360><c> longest</c><00:08:31.759><c> time,</c><00:08:32.320><c> Flash</c><00:08:32.719><c> didn't</c><00:08:32.959><c> natively</c>

00:08:33.430 --> 00:08:33.440 align:start position:0%
the longest time, Flash didn't natively
 

00:08:33.440 --> 00:08:35.909 align:start position:0%
the longest time, Flash didn't natively
support<00:08:33.839><c> 3D</c><00:08:34.320><c> rendering.</c><00:08:34.880><c> It</c><00:08:35.120><c> does</c><00:08:35.360><c> now,</c><00:08:35.680><c> but</c>

00:08:35.909 --> 00:08:35.919 align:start position:0%
support 3D rendering. It does now, but
 

00:08:35.919 --> 00:08:37.909 align:start position:0%
support 3D rendering. It does now, but
that<00:08:36.159><c> was</c><00:08:36.320><c> only</c><00:08:36.560><c> introduced</c><00:08:36.959><c> in</c><00:08:37.200><c> Flash</c><00:08:37.680><c> 10,</c>

00:08:37.909 --> 00:08:37.919 align:start position:0%
that was only introduced in Flash 10,
 

00:08:37.919 --> 00:08:40.709 align:start position:0%
that was only introduced in Flash 10,
which<00:08:38.240><c> came</c><00:08:38.399><c> out</c><00:08:38.560><c> on</c><00:08:38.719><c> October</c><00:08:39.279><c> 2008.</c><00:08:40.320><c> But</c><00:08:40.479><c> the</c>

00:08:40.709 --> 00:08:40.719 align:start position:0%
which came out on October 2008. But the
 

00:08:40.719 --> 00:08:43.110 align:start position:0%
which came out on October 2008. But the
very<00:08:41.039><c> first</c><00:08:41.440><c> Run</c><00:08:41.760><c> game</c><00:08:42.159><c> was</c><00:08:42.479><c> released</c><00:08:42.880><c> a</c>

00:08:43.110 --> 00:08:43.120 align:start position:0%
very first Run game was released a
 

00:08:43.120 --> 00:08:45.190 align:start position:0%
very first Run game was released a
couple<00:08:43.279><c> of</c><00:08:43.519><c> months</c><00:08:43.839><c> before</c><00:08:44.240><c> that.</c><00:08:44.660><c> [music]</c><00:08:45.040><c> To</c>

00:08:45.190 --> 00:08:45.200 align:start position:0%
couple of months before that. [music] To
 

00:08:45.200 --> 00:08:47.190 align:start position:0%
couple of months before that. [music] To
get<00:08:45.279><c> to</c><00:08:45.440><c> the</c><00:08:45.600><c> bottom</c><00:08:45.760><c> of</c><00:08:45.920><c> this,</c><00:08:46.240><c> I</c><00:08:46.480><c> decompiled</c>

00:08:47.190 --> 00:08:47.200 align:start position:0%
get to the bottom of this, I decompiled
 

00:08:47.200 --> 00:08:49.829 align:start position:0%
get to the bottom of this, I decompiled
that<00:08:47.519><c> first</c><00:08:47.839><c> Run</c><00:08:48.160><c> game.</c><00:08:48.560><c> While</c><00:08:48.800><c> Run</c><00:08:49.279><c> 3</c><00:08:49.440><c> is</c><00:08:49.680><c> the</c>

00:08:49.829 --> 00:08:49.839 align:start position:0%
that first Run game. While Run 3 is the
 

00:08:49.839 --> 00:08:51.990 align:start position:0%
that first Run game. While Run 3 is the
community<00:08:50.320><c> favorite,</c><00:08:50.959><c> that</c><00:08:51.200><c> one</c><00:08:51.519><c> does</c><00:08:51.760><c> take</c>

00:08:51.990 --> 00:08:52.000 align:start position:0%
community favorite, that one does take
 

00:08:52.000 --> 00:08:54.310 align:start position:0%
community favorite, that one does take
full<00:08:52.240><c> advantage</c><00:08:52.560><c> of</c><00:08:52.720><c> the</c><00:08:52.880><c> built-in</c><00:08:53.360><c> 3D.</c><00:08:54.080><c> I</c>

00:08:54.310 --> 00:08:54.320 align:start position:0%
full advantage of the built-in 3D. I
 

00:08:54.320 --> 00:08:55.829 align:start position:0%
full advantage of the built-in 3D. I
also<00:08:54.560><c> figured</c><00:08:54.800><c> that</c><00:08:55.040><c> starting</c><00:08:55.279><c> with</c><00:08:55.440><c> a</c><00:08:55.600><c> less</c>

00:08:55.829 --> 00:08:55.839 align:start position:0%
also figured that starting with a less
 

00:08:55.839 --> 00:08:57.670 align:start position:0%
also figured that starting with a less
ambitious<00:08:56.240><c> entry</c><00:08:56.640><c> would</c><00:08:56.880><c> make</c><00:08:56.959><c> it</c><00:08:57.200><c> easier</c><00:08:57.440><c> to</c>

00:08:57.670 --> 00:08:57.680 align:start position:0%
ambitious entry would make it easier to
 

00:08:57.680 --> 00:08:59.990 align:start position:0%
ambitious entry would make it easier to
reverse<00:08:58.080><c> engineer.</c><00:08:58.959><c> But</c><00:08:59.279><c> regardless</c><00:08:59.839><c> of</c>

00:08:59.990 --> 00:09:00.000 align:start position:0%
reverse engineer. But regardless of
 

00:09:00.000 --> 00:09:02.310 align:start position:0%
reverse engineer. But regardless of
which<00:09:00.320><c> version</c><00:09:00.640><c> I</c><00:09:00.800><c> picked,</c><00:09:01.279><c> it</c><00:09:01.519><c> was</c><00:09:01.760><c> by</c><00:09:02.000><c> no</c>

00:09:02.310 --> 00:09:02.320 align:start position:0%
which version I picked, it was by no
 

00:09:02.320 --> 00:09:04.310 align:start position:0%
which version I picked, it was by no
means<00:09:02.640><c> going</c><00:09:02.880><c> to</c><00:09:03.120><c> be</c><00:09:03.360><c> simple.</c><00:09:04.080><c> You</c><00:09:04.311><c> [music]</c>

00:09:04.310 --> 00:09:04.320 align:start position:0%
means going to be simple. You [music]
 

00:09:04.320 --> 00:09:06.790 align:start position:0%
means going to be simple. You [music]
see,<00:09:04.800><c> Run</c><00:09:05.279><c> isn't</c><00:09:05.680><c> actually</c><00:09:06.080><c> developed</c><00:09:06.480><c> in</c>

00:09:06.790 --> 00:09:06.800 align:start position:0%
see, Run isn't actually developed in
 

00:09:06.800 --> 00:09:09.110 align:start position:0%
see, Run isn't actually developed in
Flash<00:09:07.200><c> Action</c><00:09:07.680><c> Script.</c><00:09:08.160><c> It's</c><00:09:08.480><c> written</c><00:09:08.720><c> in</c>

00:09:09.110 --> 00:09:09.120 align:start position:0%
Flash Action Script. It's written in
 

00:09:09.120 --> 00:09:11.190 align:start position:0%
Flash Action Script. It's written in
hacks,<00:09:09.760><c> a</c><00:09:10.000><c> very</c><00:09:10.320><c> different</c><00:09:10.720><c> programming</c>

00:09:11.190 --> 00:09:11.200 align:start position:0%
hacks, a very different programming
 

00:09:11.200 --> 00:09:13.509 align:start position:0%
hacks, a very different programming
language<00:09:11.680><c> capable</c><00:09:12.000><c> of</c><00:09:12.240><c> compiling</c><00:09:12.800><c> down</c><00:09:13.120><c> to</c><00:09:13.360><c> a</c>

00:09:13.509 --> 00:09:13.519 align:start position:0%
language capable of compiling down to a
 

00:09:13.519 --> 00:09:16.310 align:start position:0%
language capable of compiling down to a
lot<00:09:13.680><c> of</c><00:09:13.760><c> other</c><00:09:14.000><c> platforms,</c><00:09:14.880><c> Flash</c><00:09:15.360><c> included.</c>

00:09:16.310 --> 00:09:16.320 align:start position:0%
lot of other platforms, Flash included.
 

00:09:16.320 --> 00:09:18.070 align:start position:0%
lot of other platforms, Flash included.
This<00:09:16.480><c> is</c><00:09:16.640><c> probably</c><00:09:16.959><c> an</c><00:09:17.279><c> awesome</c><00:09:17.519><c> tool</c><00:09:17.839><c> for</c>

00:09:18.070 --> 00:09:18.080 align:start position:0%
This is probably an awesome tool for
 

00:09:18.080 --> 00:09:21.110 align:start position:0%
This is probably an awesome tool for
developers,<00:09:18.720><c> but</c><00:09:19.040><c> it</c><00:09:19.279><c> makes</c><00:09:19.600><c> decompilation</c><00:09:20.720><c> a</c>

00:09:21.110 --> 00:09:21.120 align:start position:0%
developers, but it makes decompilation a
 

00:09:21.120 --> 00:09:23.990 align:start position:0%
developers, but it makes decompilation a
nightmare.<00:09:22.080><c> Hacks</c><00:09:22.640><c> outputs</c><00:09:23.200><c> bite</c><00:09:23.600><c> code,</c>

00:09:23.990 --> 00:09:24.000 align:start position:0%
nightmare. Hacks outputs bite code,
 

00:09:24.000 --> 00:09:26.070 align:start position:0%
nightmare. Hacks outputs bite code,
avoiding<00:09:24.399><c> the</c><00:09:24.560><c> need</c><00:09:24.800><c> for</c><00:09:25.040><c> verbose</c><00:09:25.680><c> action</c>

00:09:26.070 --> 00:09:26.080 align:start position:0%
avoiding the need for verbose action
 

00:09:26.080 --> 00:09:27.590 align:start position:0%
avoiding the need for verbose action
script.<00:09:26.640><c> This</c><00:09:26.880><c> means</c><00:09:27.040><c> that</c><00:09:27.279><c> in</c><00:09:27.440><c> the</c>

00:09:27.590 --> 00:09:27.600 align:start position:0%
script. This means that in the
 

00:09:27.600 --> 00:09:29.990 align:start position:0%
script. This means that in the
decompilation,<00:09:28.640><c> a</c><00:09:28.959><c> lot</c><00:09:29.040><c> of</c><00:09:29.279><c> variables</c><00:09:29.760><c> are</c>

00:09:29.990 --> 00:09:30.000 align:start position:0%
decompilation, a lot of variables are
 

00:09:30.000 --> 00:09:31.990 align:start position:0%
decompilation, a lot of variables are
missing<00:09:30.399><c> their</c><00:09:30.640><c> names,</c><00:09:31.040><c> and</c><00:09:31.279><c> a</c><00:09:31.519><c> lot</c><00:09:31.600><c> of</c><00:09:31.680><c> code</c>

00:09:31.990 --> 00:09:32.000 align:start position:0%
missing their names, and a lot of code
 

00:09:32.000 --> 00:09:34.470 align:start position:0%
missing their names, and a lot of code
ends<00:09:32.240><c> up</c><00:09:32.399><c> being</c><00:09:32.640><c> mangled.</c><00:09:33.360><c> It's</c><00:09:33.680><c> a</c><00:09:33.920><c> lot</c><00:09:34.080><c> harder</c>

00:09:34.470 --> 00:09:34.480 align:start position:0%
ends up being mangled. It's a lot harder
 

00:09:34.480 --> 00:09:36.310 align:start position:0%
ends up being mangled. It's a lot harder
to<00:09:34.720><c> understand</c><00:09:35.120><c> how</c><00:09:35.440><c> something</c><00:09:35.760><c> works</c><00:09:36.080><c> when</c>

00:09:36.310 --> 00:09:36.320 align:start position:0%
to understand how something works when
 

00:09:36.320 --> 00:09:38.070 align:start position:0%
to understand how something works when
you're<00:09:36.480><c> dealing</c><00:09:36.720><c> with</c><00:09:36.959><c> nothing</c><00:09:37.200><c> but</c><00:09:37.519><c> cryptic</c>

00:09:38.070 --> 00:09:38.080 align:start position:0%
you're dealing with nothing but cryptic
 

00:09:38.080 --> 00:09:40.710 align:start position:0%
you're dealing with nothing but cryptic
symbols<00:09:38.480><c> and</c><00:09:38.800><c> numbers.</c><00:09:39.440><c> If</c><00:09:39.680><c> I</c><00:09:39.760><c> had</c><00:09:39.920><c> to</c><00:09:40.080><c> guess,</c>

00:09:40.710 --> 00:09:40.720 align:start position:0%
symbols and numbers. If I had to guess,
 

00:09:40.720 --> 00:09:43.190 align:start position:0%
symbols and numbers. If I had to guess,
this<00:09:40.959><c> is</c><00:09:41.120><c> what</c><00:09:41.360><c> non-programmers</c><00:09:42.399><c> think</c><00:09:42.800><c> code</c>

00:09:43.190 --> 00:09:43.200 align:start position:0%
this is what non-programmers think code
 

00:09:43.200 --> 00:09:45.670 align:start position:0%
this is what non-programmers think code
looks<00:09:43.440><c> like.</c><00:09:44.080><c> Still,</c><00:09:44.480><c> I</c><00:09:44.800><c> was</c><00:09:45.040><c> able</c><00:09:45.279><c> to</c><00:09:45.440><c> track</c>

00:09:45.670 --> 00:09:45.680 align:start position:0%
looks like. Still, I was able to track
 

00:09:45.680 --> 00:09:47.350 align:start position:0%
looks like. Still, I was able to track
down<00:09:45.839><c> the</c><00:09:46.000><c> class</c><00:09:46.320><c> responsible</c><00:09:46.880><c> for</c><00:09:47.120><c> drawing</c>

00:09:47.350 --> 00:09:47.360 align:start position:0%
down the class responsible for drawing
 

00:09:47.360 --> 00:09:49.350 align:start position:0%
down the class responsible for drawing
the<00:09:47.519><c> tiles</c><00:09:48.000><c> and</c><00:09:48.240><c> fully</c><00:09:48.560><c> cleaned</c><00:09:48.800><c> it</c><00:09:48.959><c> up</c><00:09:49.120><c> with</c>

00:09:49.350 --> 00:09:49.360 align:start position:0%
the tiles and fully cleaned it up with
 

00:09:49.360 --> 00:09:51.190 align:start position:0%
the tiles and fully cleaned it up with
comments<00:09:49.760><c> and</c><00:09:50.000><c> everything.</c><00:09:50.560><c> But</c><00:09:50.800><c> before</c><00:09:51.040><c> we</c>

00:09:51.190 --> 00:09:51.200 align:start position:0%
comments and everything. But before we
 

00:09:51.200 --> 00:09:53.030 align:start position:0%
comments and everything. But before we
get<00:09:51.360><c> into</c><00:09:51.600><c> how</c><00:09:51.760><c> this</c><00:09:52.000><c> game</c><00:09:52.240><c> works,</c><00:09:52.640><c> I</c><00:09:52.880><c> want</c><00:09:52.959><c> to</c>

00:09:53.030 --> 00:09:53.040 align:start position:0%
get into how this game works, I want to
 

00:09:53.040 --> 00:09:55.030 align:start position:0%
get into how this game works, I want to
give<00:09:53.200><c> you</c><00:09:53.279><c> a</c><00:09:53.519><c> glimpse</c><00:09:53.760><c> of</c><00:09:54.080><c> what</c><00:09:54.320><c> that</c><00:09:54.560><c> cleanup</c>

00:09:55.030 --> 00:09:55.040 align:start position:0%
give you a glimpse of what that cleanup
 

00:09:55.040 --> 00:09:57.670 align:start position:0%
give you a glimpse of what that cleanup
process<00:09:55.519><c> is</c><00:09:55.839><c> like.</c><00:09:56.720><c> When</c><00:09:56.959><c> I</c><00:09:57.120><c> first</c><00:09:57.360><c> opened</c>

00:09:57.670 --> 00:09:57.680 align:start position:0%
process is like. When I first opened
 

00:09:57.680 --> 00:09:59.670 align:start position:0%
process is like. When I first opened
this<00:09:57.839><c> file,</c><00:09:58.160><c> I</c><00:09:58.399><c> skimmed</c><00:09:58.800><c> it</c><00:09:58.959><c> to</c><00:09:59.120><c> look</c><00:09:59.279><c> for</c><00:09:59.440><c> any</c>

00:09:59.670 --> 00:09:59.680 align:start position:0%
this file, I skimmed it to look for any
 

00:09:59.680 --> 00:10:01.590 align:start position:0%
this file, I skimmed it to look for any
resemblance<00:10:00.160><c> of</c><00:10:00.320><c> rendering</c><00:10:00.880><c> code.</c><00:10:01.279><c> There</c><00:10:01.440><c> are</c>

00:10:01.590 --> 00:10:01.600 align:start position:0%
resemblance of rendering code. There are
 

00:10:01.600 --> 00:10:03.269 align:start position:0%
resemblance of rendering code. There are
only<00:10:01.760><c> three</c><00:10:02.080><c> functions</c><00:10:02.480><c> here</c><00:10:02.640><c> that</c><00:10:02.880><c> retain</c>

00:10:03.269 --> 00:10:03.279 align:start position:0%
only three functions here that retain
 

00:10:03.279 --> 00:10:05.430 align:start position:0%
only three functions here that retain
their<00:10:03.519><c> names.</c><00:10:04.000><c> That</c><00:10:04.160><c> being</c><00:10:04.480><c> display,</c><00:10:05.120><c> get</c>

00:10:05.430 --> 00:10:05.440 align:start position:0%
their names. That being display, get
 

00:10:05.440 --> 00:10:07.750 align:start position:0%
their names. That being display, get
color,<00:10:05.839><c> and</c><00:10:06.080><c> get</c><00:10:06.399><c> multiplier.</c><00:10:07.360><c> Those</c><00:10:07.600><c> first</c>

00:10:07.750 --> 00:10:07.760 align:start position:0%
color, and get multiplier. Those first
 

00:10:07.760 --> 00:10:09.509 align:start position:0%
color, and get multiplier. Those first
two<00:10:08.080><c> sounded</c><00:10:08.480><c> promising,</c><00:10:08.959><c> and</c><00:10:09.120><c> that's</c><00:10:09.360><c> what</c>

00:10:09.509 --> 00:10:09.519 align:start position:0%
two sounded promising, and that's what
 

00:10:09.519 --> 00:10:10.870 align:start position:0%
two sounded promising, and that's what
got<00:10:09.680><c> me</c><00:10:09.760><c> to</c><00:10:09.920><c> look</c><00:10:10.000><c> at</c><00:10:10.160><c> this</c><00:10:10.320><c> class</c><00:10:10.560><c> in</c><00:10:10.720><c> the</c>

00:10:10.870 --> 00:10:10.880 align:start position:0%
got me to look at this class in the
 

00:10:10.880 --> 00:10:12.949 align:start position:0%
got me to look at this class in the
first<00:10:11.040><c> place.</c><00:10:11.519><c> So,</c><00:10:11.839><c> with</c><00:10:12.080><c> nothing</c><00:10:12.399><c> more</c><00:10:12.640><c> to</c><00:10:12.800><c> go</c>

00:10:12.949 --> 00:10:12.959 align:start position:0%
first place. So, with nothing more to go
 

00:10:12.959 --> 00:10:15.269 align:start position:0%
first place. So, with nothing more to go
off<00:10:13.200><c> of,</c><00:10:13.519><c> I</c><00:10:13.760><c> started</c><00:10:14.079><c> at</c><00:10:14.320><c> the</c><00:10:14.560><c> get</c><00:10:14.959><c> color</c>

00:10:15.269 --> 00:10:15.279 align:start position:0%
off of, I started at the get color
 

00:10:15.279 --> 00:10:17.590 align:start position:0%
off of, I started at the get color
function.<00:10:16.160><c> Right</c><00:10:16.399><c> away,</c><00:10:16.720><c> the</c><00:10:16.959><c> function</c><00:10:17.360><c> takes</c>

00:10:17.590 --> 00:10:17.600 align:start position:0%
function. Right away, the function takes
 

00:10:17.600 --> 00:10:20.790 align:start position:0%
function. Right away, the function takes
in<00:10:17.839><c> a</c><00:10:18.000><c> parameter</c><00:10:18.399><c> of</c><00:10:18.640><c> an</c><00:10:18.880><c> unknown</c><00:10:19.519><c> class.</c><00:10:20.480><c> But</c>

00:10:20.790 --> 00:10:20.800 align:start position:0%
in a parameter of an unknown class. But
 

00:10:20.800 --> 00:10:22.790 align:start position:0%
in a parameter of an unknown class. But
right<00:10:21.120><c> below</c><00:10:21.519><c> that,</c><00:10:21.920><c> I</c><00:10:22.160><c> see</c><00:10:22.320><c> that</c><00:10:22.480><c> this</c>

00:10:22.790 --> 00:10:22.800 align:start position:0%
right below that, I see that this
 

00:10:22.800 --> 00:10:25.509 align:start position:0%
right below that, I see that this
parameter<00:10:23.279><c> has</c><00:10:23.519><c> a</c><00:10:23.839><c> Z</c><00:10:24.160><c> property.</c><00:10:25.040><c> That</c><00:10:25.279><c> not</c>

00:10:25.509 --> 00:10:25.519 align:start position:0%
parameter has a Z property. That not
 

00:10:25.519 --> 00:10:27.509 align:start position:0%
parameter has a Z property. That not
only<00:10:25.680><c> tells</c><00:10:25.920><c> me</c><00:10:26.079><c> that</c><00:10:26.240><c> this</c><00:10:26.480><c> is</c><00:10:26.560><c> a</c><00:10:26.720><c> vector,</c><00:10:27.279><c> but</c>

00:10:27.509 --> 00:10:27.519 align:start position:0%
only tells me that this is a vector, but
 

00:10:27.519 --> 00:10:30.069 align:start position:0%
only tells me that this is a vector, but
also<00:10:27.839><c> that</c><00:10:28.079><c> it's</c><00:10:28.240><c> a</c><00:10:28.480><c> 3D</c><00:10:29.040><c> vector</c><00:10:29.519><c> and</c><00:10:29.680><c> that</c><00:10:29.920><c> this</c>

00:10:30.069 --> 00:10:30.079 align:start position:0%
also that it's a 3D vector and that this
 

00:10:30.079 --> 00:10:32.790 align:start position:0%
also that it's a 3D vector and that this
function<00:10:30.480><c> is</c><00:10:30.640><c> using</c><00:10:30.880><c> the</c><00:10:31.040><c> Z-axis</c><00:10:31.760><c> for</c><00:10:32.079><c> depth.</c>

00:10:32.790 --> 00:10:32.800 align:start position:0%
function is using the Z-axis for depth.
 

00:10:32.800 --> 00:10:35.190 align:start position:0%
function is using the Z-axis for depth.
That's<00:10:33.200><c> exactly</c><00:10:33.680><c> what</c><00:10:33.920><c> I</c><00:10:34.160><c> was</c><00:10:34.240><c> looking</c><00:10:34.480><c> for.</c>

00:10:35.190 --> 00:10:35.200 align:start position:0%
That's exactly what I was looking for.
 

00:10:35.200 --> 00:10:36.710 align:start position:0%
That's exactly what I was looking for.
Then<00:10:35.440><c> there's</c><00:10:35.680><c> some</c><00:10:35.839><c> arithmetic</c><00:10:36.320><c> that</c><00:10:36.480><c> I</c><00:10:36.640><c> have</c>

00:10:36.710 --> 00:10:36.720 align:start position:0%
Then there's some arithmetic that I have
 

00:10:36.720 --> 00:10:38.550 align:start position:0%
Then there's some arithmetic that I have
no<00:10:36.959><c> chance</c><00:10:37.120><c> of</c><00:10:37.279><c> understanding</c><00:10:37.760><c> just</c><00:10:38.000><c> yet,</c><00:10:38.320><c> but</c>

00:10:38.550 --> 00:10:38.560 align:start position:0%
no chance of understanding just yet, but
 

00:10:38.560 --> 00:10:40.150 align:start position:0%
no chance of understanding just yet, but
right<00:10:38.880><c> after</c><00:10:39.120><c> that,</c><00:10:39.519><c> there's</c><00:10:39.760><c> a</c><00:10:39.920><c> call</c><00:10:39.942><c> [music]</c>

00:10:40.150 --> 00:10:40.160 align:start position:0%
right after that, there's a call [music]
 

00:10:40.160 --> 00:10:42.550 align:start position:0%
right after that, there's a call [music]
to<00:10:40.399><c> another</c><00:10:40.720><c> unnamed</c><00:10:41.279><c> function.</c><00:10:41.920><c> Upon</c><00:10:42.240><c> first</c>

00:10:42.550 --> 00:10:42.560 align:start position:0%
to another unnamed function. Upon first
 

00:10:42.560 --> 00:10:43.829 align:start position:0%
to another unnamed function. Upon first
glance,<00:10:42.880><c> this</c><00:10:43.120><c> might</c><00:10:43.279><c> seem</c><00:10:43.519><c> just</c><00:10:43.760><c> as</c>

00:10:43.829 --> 00:10:43.839 align:start position:0%
glance, this might seem just as
 

00:10:43.839 --> 00:10:45.430 align:start position:0%
glance, this might seem just as
indecipherable<00:10:44.560><c> as</c><00:10:44.800><c> everything</c><00:10:45.040><c> else,</c>

00:10:45.430 --> 00:10:45.440 align:start position:0%
indecipherable as everything else,
 

00:10:45.440 --> 00:10:46.630 align:start position:0%
indecipherable as everything else,
especially<00:10:45.760><c> with</c><00:10:46.000><c> all</c><00:10:46.160><c> those</c><00:10:46.320><c> random</c>

00:10:46.630 --> 00:10:46.640 align:start position:0%
especially with all those random
 

00:10:46.640 --> 00:10:49.910 align:start position:0%
especially with all those random
numerical<00:10:47.200><c> constants.</c><00:10:48.160><c> But</c><00:10:48.720><c> hold</c><00:10:48.959><c> on,</c><00:10:49.519><c> I</c>

00:10:49.910 --> 00:10:49.920 align:start position:0%
numerical constants. But hold on, I
 

00:10:49.920 --> 00:10:52.069 align:start position:0%
numerical constants. But hold on, I
recognize<00:10:50.422><c> [music]</c><00:10:50.480><c> those</c><00:10:50.800><c> numbers.</c><00:10:51.600><c> Those</c>

00:10:52.069 --> 00:10:52.079 align:start position:0%
recognize [music] those numbers. Those
 

00:10:52.079 --> 00:10:53.910 align:start position:0%
recognize [music] those numbers. Those
are<00:10:52.399><c> powers</c><00:10:52.720><c> of</c><00:10:52.959><c> two.</c><00:10:53.519><c> and</c><00:10:53.760><c> more</c>

00:10:53.910 --> 00:10:53.920 align:start position:0%
are powers of two. and more
 

00:10:53.920 --> 00:10:55.670 align:start position:0%
are powers of two. and more
specifically,<00:10:54.480><c> they're</c><00:10:54.720><c> bit</c><00:10:54.959><c> masks</c><00:10:55.360><c> for</c><00:10:55.519><c> the</c>

00:10:55.670 --> 00:10:55.680 align:start position:0%
specifically, they're bit masks for the
 

00:10:55.680 --> 00:10:58.069 align:start position:0%
specifically, they're bit masks for the
lower<00:10:56.000><c> three</c><00:10:56.240><c> bytes</c><00:10:56.560><c> of</c><00:10:56.640><c> a</c><00:10:56.880><c> 32-bit</c><00:10:57.519><c> integer.</c>

00:10:58.069 --> 00:10:58.079 align:start position:0%
lower three bytes of a 32-bit integer.
 

00:10:58.079 --> 00:11:00.389 align:start position:0%
lower three bytes of a 32-bit integer.
In<00:10:58.320><c> the</c><00:10:58.480><c> context</c><00:10:58.720><c> of</c><00:10:58.959><c> color,</c><00:10:59.440><c> these</c><00:10:59.760><c> masks</c><00:11:00.240><c> are</c>

00:11:00.389 --> 00:11:00.399 align:start position:0%
In the context of color, these masks are
 

00:11:00.399 --> 00:11:01.910 align:start position:0%
In the context of color, these masks are
often<00:11:00.720><c> used</c><00:11:00.902><c> [music]</c><00:11:00.959><c> to</c><00:11:01.200><c> filter</c><00:11:01.519><c> out</c>

00:11:01.910 --> 00:11:01.920 align:start position:0%
often used [music] to filter out
 

00:11:01.920 --> 00:11:04.470 align:start position:0%
often used [music] to filter out
individual<00:11:02.640><c> color</c><00:11:03.040><c> channels.</c><00:11:03.920><c> With</c><00:11:04.160><c> that</c>

00:11:04.470 --> 00:11:04.480 align:start position:0%
individual color channels. With that
 

00:11:04.480 --> 00:11:06.389 align:start position:0%
individual color channels. With that
little<00:11:04.640><c> bit</c><00:11:04.800><c> of</c><00:11:04.959><c> insight,</c><00:11:05.519><c> we</c><00:11:05.760><c> now</c><00:11:06.000><c> have</c><00:11:06.160><c> our</c>

00:11:06.389 --> 00:11:06.399 align:start position:0%
little bit of insight, we now have our
 

00:11:06.399 --> 00:11:07.990 align:start position:0%
little bit of insight, we now have our
first<00:11:06.720><c> fully</c><00:11:07.200><c> deopiscated</c><00:11:07.452><c> [music]</c>

00:11:07.990 --> 00:11:08.000 align:start position:0%
first fully deopiscated [music]
 

00:11:08.000 --> 00:11:10.389 align:start position:0%
first fully deopiscated [music]
function,<00:11:08.640><c> which</c><00:11:08.880><c> I'll</c><00:11:09.200><c> call</c><00:11:09.519><c> scale</c><00:11:09.920><c> color.</c>

00:11:10.389 --> 00:11:10.399 align:start position:0%
function, which I'll call scale color.
 

00:11:10.399 --> 00:11:12.230 align:start position:0%
function, which I'll call scale color.
It<00:11:10.560><c> takes</c><00:11:10.720><c> an</c><00:11:10.880><c> RGB</c><00:11:11.440><c> color</c><00:11:11.680><c> value</c><00:11:11.920><c> as</c><00:11:12.079><c> an</c>

00:11:12.230 --> 00:11:12.240 align:start position:0%
It takes an RGB color value as an
 

00:11:12.240 --> 00:11:14.550 align:start position:0%
It takes an RGB color value as an
integer<00:11:12.640><c> and</c><00:11:12.959><c> scales</c><00:11:13.440><c> each</c><00:11:13.680><c> channel</c><00:11:14.079><c> by</c><00:11:14.399><c> the</c>

00:11:14.550 --> 00:11:14.560 align:start position:0%
integer and scales each channel by the
 

00:11:14.560 --> 00:11:17.030 align:start position:0%
integer and scales each channel by the
given<00:11:14.959><c> factor.</c><00:11:15.760><c> From</c><00:11:16.000><c> here,</c><00:11:16.320><c> we</c><00:11:16.560><c> just</c><00:11:16.720><c> have</c><00:11:16.880><c> to</c>

00:11:17.030 --> 00:11:17.040 align:start position:0%
given factor. From here, we just have to
 

00:11:17.040 --> 00:11:18.710 align:start position:0%
given factor. From here, we just have to
move<00:11:17.279><c> backwards.</c><00:11:17.920><c> In</c><00:11:17.940><c> [music]</c><00:11:18.079><c> the</c><00:11:18.240><c> get</c><00:11:18.480><c> color</c>

00:11:18.710 --> 00:11:18.720 align:start position:0%
move backwards. In [music] the get color
 

00:11:18.720 --> 00:11:20.710 align:start position:0%
move backwards. In [music] the get color
function,<00:11:19.200><c> we</c><00:11:19.440><c> now</c><00:11:19.760><c> know</c><00:11:20.000><c> what</c><00:11:20.240><c> this</c><00:11:20.480><c> last</c>

00:11:20.710 --> 00:11:20.720 align:start position:0%
function, we now know what this last
 

00:11:20.720 --> 00:11:22.630 align:start position:0%
function, we now know what this last
call<00:11:21.040><c> is</c><00:11:21.360><c> along</c><00:11:21.600><c> with</c><00:11:21.839><c> reasonable</c><00:11:22.240><c> guesses</c>

00:11:22.630 --> 00:11:22.640 align:start position:0%
call is along with reasonable guesses
 

00:11:22.640 --> 00:11:24.550 align:start position:0%
call is along with reasonable guesses
for<00:11:22.800><c> the</c><00:11:22.959><c> parameters</c><00:11:23.440><c> going</c><00:11:23.680><c> into</c><00:11:24.000><c> it.</c><00:11:24.399><c> And</c>

00:11:24.550 --> 00:11:24.560 align:start position:0%
for the parameters going into it. And
 

00:11:24.560 --> 00:11:26.710 align:start position:0%
for the parameters going into it. And
now<00:11:24.720><c> that</c><00:11:24.880><c> we</c><00:11:25.040><c> know</c><00:11:25.200><c> what</c><00:11:25.440><c> get</c><00:11:25.760><c> color</c><00:11:26.079><c> does,</c><00:11:26.560><c> we</c>

00:11:26.710 --> 00:11:26.720 align:start position:0%
now that we know what get color does, we
 

00:11:26.720 --> 00:11:28.790 align:start position:0%
now that we know what get color does, we
can<00:11:26.959><c> continue</c><00:11:27.440><c> stepping</c><00:11:27.839><c> backwards</c><00:11:28.320><c> to</c><00:11:28.560><c> find</c>

00:11:28.790 --> 00:11:28.800 align:start position:0%
can continue stepping backwards to find
 

00:11:28.800 --> 00:11:30.230 align:start position:0%
can continue stepping backwards to find
out<00:11:29.040><c> more</c><00:11:29.279><c> from</c><00:11:29.519><c> the</c><00:11:29.680><c> code</c><00:11:29.722><c> [music]</c><00:11:29.920><c> that</c>

00:11:30.230 --> 00:11:30.240 align:start position:0%
out more from the code [music] that
 

00:11:30.240 --> 00:11:33.269 align:start position:0%
out more from the code [music] that
references<00:11:30.800><c> it.</c><00:11:31.279><c> It's</c><00:11:31.600><c> a</c><00:11:31.839><c> lot</c><00:11:32.000><c> like</c><00:11:32.160><c> a</c><00:11:32.399><c> puzzle.</c>

00:11:33.269 --> 00:11:33.279 align:start position:0%
references it. It's a lot like a puzzle.
 

00:11:33.279 --> 00:11:35.670 align:start position:0%
references it. It's a lot like a puzzle.
Anyway,<00:11:33.920><c> that's</c><00:11:34.160><c> how</c><00:11:34.320><c> I</c><00:11:34.560><c> got</c><00:11:34.640><c> my</c><00:11:34.880><c> deopiscated</c>

00:11:35.670 --> 00:11:35.680 align:start position:0%
Anyway, that's how I got my deopiscated
 

00:11:35.680 --> 00:11:37.430 align:start position:0%
Anyway, that's how I got my deopiscated
copy<00:11:35.920><c> of</c><00:11:36.079><c> the</c><00:11:36.240><c> code.</c><00:11:36.640><c> And</c><00:11:36.800><c> that's</c><00:11:36.959><c> why</c><00:11:37.120><c> I</c><00:11:37.360><c> can</c>

00:11:37.430 --> 00:11:37.440 align:start position:0%
copy of the code. And that's why I can
 

00:11:37.440 --> 00:11:39.509 align:start position:0%
copy of the code. And that's why I can
tell<00:11:37.600><c> you</c><00:11:37.760><c> that</c><00:11:38.079><c> this</c><00:11:38.480><c> pretty</c><00:11:38.800><c> much</c><00:11:38.959><c> sums</c><00:11:39.279><c> up</c>

00:11:39.509 --> 00:11:39.519 align:start position:0%
tell you that this pretty much sums up
 

00:11:39.519 --> 00:11:42.150 align:start position:0%
tell you that this pretty much sums up
all<00:11:39.680><c> the</c><00:11:39.920><c> magic.</c><00:11:40.880><c> The</c><00:11:41.120><c> four</c><00:11:41.360><c> corners</c><00:11:41.760><c> of</c><00:11:42.000><c> each</c>

00:11:42.150 --> 00:11:42.160 align:start position:0%
all the magic. The four corners of each
 

00:11:42.160 --> 00:11:44.470 align:start position:0%
all the magic. The four corners of each
tile<00:11:42.640><c> are</c><00:11:42.880><c> projected</c><00:11:43.440><c> onto</c><00:11:43.920><c> the</c><00:11:44.160><c> camera</c>

00:11:44.470 --> 00:11:44.480 align:start position:0%
tile are projected onto the camera
 

00:11:44.480 --> 00:11:46.743 align:start position:0%
tile are projected onto the camera
plane,<00:11:44.959><c> turning</c><00:11:45.360><c> 3D</c><00:11:45.839><c> coordinates</c><00:11:46.320><c> into</c><00:11:46.640><c> 2D</c>

00:11:46.743 --> 00:11:46.753 align:start position:0%
plane, turning 3D coordinates into 2D
 

00:11:46.753 --> 00:11:48.949 align:start position:0%
plane, turning 3D coordinates into 2D
[music]<00:11:47.200><c> points.</c><00:11:47.839><c> And</c><00:11:48.079><c> after</c><00:11:48.320><c> that,</c><00:11:48.720><c> it's</c>

00:11:48.949 --> 00:11:48.959 align:start position:0%
[music] points. And after that, it's
 

00:11:48.959 --> 00:11:50.710 align:start position:0%
[music] points. And after that, it's
really<00:11:49.200><c> just</c><00:11:49.360><c> a</c><00:11:49.600><c> matter</c><00:11:49.760><c> of</c><00:11:49.920><c> drawing</c><00:11:50.240><c> a</c><00:11:50.399><c> flat</c>

00:11:50.710 --> 00:11:50.720 align:start position:0%
really just a matter of drawing a flat
 

00:11:50.720 --> 00:11:53.430 align:start position:0%
really just a matter of drawing a flat
shape<00:11:51.040><c> from</c><00:11:51.360><c> those</c><00:11:51.680><c> 2D</c><00:11:52.160><c> points.</c><00:11:53.040><c> That's</c><00:11:53.279><c> why</c>

00:11:53.430 --> 00:11:53.440 align:start position:0%
shape from those 2D points. That's why
 

00:11:53.440 --> 00:11:55.350 align:start position:0%
shape from those 2D points. That's why
the<00:11:53.680><c> walls</c><00:11:54.000><c> have</c><00:11:54.160><c> this</c><00:11:54.399><c> blocky</c><00:11:54.880><c> gradient</c>

00:11:55.350 --> 00:11:55.360 align:start position:0%
the walls have this blocky gradient
 

00:11:55.360 --> 00:11:57.269 align:start position:0%
the walls have this blocky gradient
going<00:11:55.600><c> on.</c><00:11:56.000><c> It's</c><00:11:56.160><c> not</c><00:11:56.320><c> as</c><00:11:56.480><c> much</c><00:11:56.640><c> a</c><00:11:56.800><c> stylistic</c>

00:11:57.269 --> 00:11:57.279 align:start position:0%
going on. It's not as much a stylistic
 

00:11:57.279 --> 00:11:59.190 align:start position:0%
going on. It's not as much a stylistic
choice<00:11:57.519><c> as</c><00:11:57.760><c> it</c><00:11:57.920><c> is</c><00:11:58.079><c> a</c><00:11:58.240><c> limitation</c><00:11:58.720><c> of</c><00:11:58.880><c> the</c><00:11:59.040><c> fact</c>

00:11:59.190 --> 00:11:59.200 align:start position:0%
choice as it is a limitation of the fact
 

00:11:59.200 --> 00:12:01.509 align:start position:0%
choice as it is a limitation of the fact
that<00:11:59.360><c> these</c><00:11:59.600><c> are</c><00:11:59.839><c> 2D</c><00:12:00.320><c> shapes</c><00:12:00.800><c> without</c><00:12:01.200><c> any</c>

00:12:01.509 --> 00:12:01.519 align:start position:0%
that these are 2D shapes without any
 

00:12:01.519 --> 00:12:04.389 align:start position:0%
that these are 2D shapes without any
real<00:12:01.839><c> 3D</c><00:12:02.320><c> shading.</c><00:12:03.120><c> The</c><00:12:03.360><c> player</c><00:12:03.680><c> is</c><00:12:04.000><c> also</c><00:12:04.240><c> not</c>

00:12:04.389 --> 00:12:04.399 align:start position:0%
real 3D shading. The player is also not
 

00:12:04.399 --> 00:12:07.190 align:start position:0%
real 3D shading. The player is also not
a<00:12:04.640><c> 3D</c><00:12:04.959><c> object,</c><00:12:05.440><c> but</c><00:12:05.680><c> rather</c><00:12:05.920><c> an</c><00:12:06.160><c> animated</c><00:12:06.720><c> 2D</c>

00:12:07.190 --> 00:12:07.200 align:start position:0%
a 3D object, but rather an animated 2D
 

00:12:07.200 --> 00:12:08.949 align:start position:0%
a 3D object, but rather an animated 2D
sprite,<00:12:07.760><c> though,</c><00:12:08.000><c> I</c><00:12:08.160><c> guess</c><00:12:08.320><c> that</c><00:12:08.560><c> one</c><00:12:08.720><c> was</c>

00:12:08.949 --> 00:12:08.959 align:start position:0%
sprite, though, I guess that one was
 

00:12:08.959 --> 00:12:11.509 align:start position:0%
sprite, though, I guess that one was
probably<00:12:09.360><c> more</c><00:12:09.680><c> obvious.</c><00:12:10.560><c> But</c><00:12:10.800><c> if</c><00:12:11.040><c> it's</c><00:12:11.279><c> all</c>

00:12:11.509 --> 00:12:11.519 align:start position:0%
probably more obvious. But if it's all
 

00:12:11.519 --> 00:12:14.550 align:start position:0%
probably more obvious. But if it's all
just<00:12:11.839><c> fake</c><00:12:12.240><c> 3D</c><00:12:12.720><c> drawn</c><00:12:13.040><c> with</c><00:12:13.279><c> 2D</c><00:12:13.760><c> shapes,</c><00:12:14.240><c> then</c>

00:12:14.550 --> 00:12:14.560 align:start position:0%
just fake 3D drawn with 2D shapes, then
 

00:12:14.560 --> 00:12:16.629 align:start position:0%
just fake 3D drawn with 2D shapes, then
how<00:12:14.800><c> did</c><00:12:14.959><c> they</c><00:12:15.200><c> do</c><00:12:15.360><c> the</c><00:12:15.519><c> screen</c><00:12:15.839><c> rotations</c><00:12:16.320><c> and</c>

00:12:16.629 --> 00:12:16.639 align:start position:0%
how did they do the screen rotations and
 

00:12:16.639 --> 00:12:18.949 align:start position:0%
how did they do the screen rotations and
collisions?<00:12:17.600><c> Well,</c><00:12:18.000><c> while</c><00:12:18.240><c> the</c><00:12:18.480><c> rendering</c>

00:12:18.949 --> 00:12:18.959 align:start position:0%
collisions? Well, while the rendering
 

00:12:18.959 --> 00:12:21.670 align:start position:0%
collisions? Well, while the rendering
code<00:12:19.279><c> is</c><00:12:19.600><c> faking</c><00:12:20.079><c> the</c><00:12:20.320><c> third</c><00:12:20.560><c> dimension,</c><00:12:21.440><c> the</c>

00:12:21.670 --> 00:12:21.680 align:start position:0%
code is faking the third dimension, the
 

00:12:21.680 --> 00:12:23.829 align:start position:0%
code is faking the third dimension, the
rest<00:12:21.839><c> of</c><00:12:22.000><c> the</c><00:12:22.160><c> non-rendering</c><00:12:23.040><c> code</c><00:12:23.440><c> doesn't</c>

00:12:23.829 --> 00:12:23.839 align:start position:0%
rest of the non-rendering code doesn't
 

00:12:23.839 --> 00:12:25.990 align:start position:0%
rest of the non-rendering code doesn't
have<00:12:24.079><c> to.</c><00:12:24.560><c> As</c><00:12:24.720><c> far</c><00:12:24.880><c> as</c><00:12:24.959><c> I</c><00:12:25.120><c> can</c><00:12:25.279><c> tell,</c><00:12:25.680><c> most</c><00:12:25.920><c> of</c>

00:12:25.990 --> 00:12:26.000 align:start position:0%
have to. As far as I can tell, most of
 

00:12:26.000 --> 00:12:28.150 align:start position:0%
have to. As far as I can tell, most of
the<00:12:26.160><c> gameplay</c><00:12:26.639><c> focused</c><00:12:26.959><c> stuff</c><00:12:27.200><c> uses</c><00:12:27.680><c> 3D</c>

00:12:28.150 --> 00:12:28.160 align:start position:0%
the gameplay focused stuff uses 3D
 

00:12:28.160 --> 00:12:29.829 align:start position:0%
the gameplay focused stuff uses 3D
vector<00:12:28.560><c> math</c><00:12:28.720><c> and</c><00:12:28.880><c> trigonometry</c>

00:12:29.829 --> 00:12:29.839 align:start position:0%
vector math and trigonometry
 

00:12:29.839 --> 00:12:31.990 align:start position:0%
vector math and trigonometry
extensively.<00:12:30.800><c> So,</c><00:12:31.040><c> in</c><00:12:31.279><c> that</c><00:12:31.440><c> regard,</c><00:12:31.760><c> it's</c>

00:12:31.990 --> 00:12:32.000 align:start position:0%
extensively. So, in that regard, it's
 

00:12:32.000 --> 00:12:33.590 align:start position:0%
extensively. So, in that regard, it's
not<00:12:32.240><c> much</c><00:12:32.399><c> different</c><00:12:32.639><c> from</c><00:12:32.800><c> a</c><00:12:33.040><c> game</c><00:12:33.200><c> engine</c>

00:12:33.590 --> 00:12:33.600 align:start position:0%
not much different from a game engine
 

00:12:33.600 --> 00:12:35.910 align:start position:0%
not much different from a game engine
today.<00:12:34.240><c> The</c><00:12:34.480><c> math</c><00:12:34.800><c> doesn't</c><00:12:35.120><c> care</c><00:12:35.440><c> how</c><00:12:35.680><c> many</c>

00:12:35.910 --> 00:12:35.920 align:start position:0%
today. The math doesn't care how many
 

00:12:35.920 --> 00:12:37.829 align:start position:0%
today. The math doesn't care how many
dimensions<00:12:36.480><c> you</c><00:12:36.720><c> use.</c><00:12:37.200><c> So,</c><00:12:37.360><c> as</c><00:12:37.519><c> long</c><00:12:37.600><c> as</c><00:12:37.680><c> you</c>

00:12:37.829 --> 00:12:37.839 align:start position:0%
dimensions you use. So, as long as you
 

00:12:37.839 --> 00:12:40.389 align:start position:0%
dimensions you use. So, as long as you
have<00:12:37.920><c> a</c><00:12:38.079><c> way</c><00:12:38.160><c> to</c><00:12:38.399><c> render</c><00:12:38.720><c> in</c><00:12:39.040><c> 3D,</c><00:12:39.839><c> the</c><00:12:40.079><c> rest</c>

00:12:40.389 --> 00:12:40.399 align:start position:0%
have a way to render in 3D, the rest
 

00:12:40.399 --> 00:12:42.550 align:start position:0%
have a way to render in 3D, the rest
becomes<00:12:40.959><c> trivial.</c>

00:12:42.550 --> 00:12:42.560 align:start position:0%
becomes trivial.
 

00:12:42.560 --> 00:12:44.230 align:start position:0%
becomes trivial.
Another<00:12:42.959><c> game</c><00:12:43.200><c> that</c><00:12:43.440><c> was</c><00:12:43.600><c> brought</c><00:12:43.760><c> up</c><00:12:43.920><c> in</c><00:12:44.079><c> the</c>

00:12:44.230 --> 00:12:44.240 align:start position:0%
Another game that was brought up in the
 

00:12:44.240 --> 00:12:46.949 align:start position:0%
Another game that was brought up in the
comments<00:12:44.560><c> is</c><00:12:45.040><c> Interactive</c><00:12:45.680><c> Buddy,</c><00:12:46.399><c> a</c><00:12:46.639><c> weird</c>

00:12:46.949 --> 00:12:46.959 align:start position:0%
comments is Interactive Buddy, a weird
 

00:12:46.959 --> 00:12:48.629 align:start position:0%
comments is Interactive Buddy, a weird
kind<00:12:47.120><c> of</c><00:12:47.279><c> sandbox</c><00:12:47.839><c> where</c><00:12:48.079><c> you</c><00:12:48.160><c> get</c><00:12:48.320><c> to</c><00:12:48.399><c> play</c>

00:12:48.629 --> 00:12:48.639 align:start position:0%
kind of sandbox where you get to play
 

00:12:48.639 --> 00:12:50.870 align:start position:0%
kind of sandbox where you get to play
God<00:12:48.959><c> with</c><00:12:49.120><c> this</c><00:12:49.360><c> boxed</c><00:12:49.760><c> in</c><00:12:49.920><c> sphere</c><00:12:50.240><c> creature.</c>

00:12:50.870 --> 00:12:50.880 align:start position:0%
God with this boxed in sphere creature.
 

00:12:50.880 --> 00:12:52.470 align:start position:0%
God with this boxed in sphere creature.
I'm<00:12:51.040><c> not</c><00:12:51.200><c> exactly</c><00:12:51.519><c> sure</c><00:12:51.680><c> what</c><00:12:51.839><c> the</c><00:12:52.000><c> ethics</c><00:12:52.320><c> of</c>

00:12:52.470 --> 00:12:52.480 align:start position:0%
I'm not exactly sure what the ethics of
 

00:12:52.480 --> 00:12:54.150 align:start position:0%
I'm not exactly sure what the ethics of
this<00:12:52.639><c> whole</c><00:12:52.880><c> situation</c><00:12:53.279><c> are,</c><00:12:53.600><c> but</c><00:12:53.839><c> either</c>

00:12:54.150 --> 00:12:54.160 align:start position:0%
this whole situation are, but either
 

00:12:54.160 --> 00:12:55.509 align:start position:0%
this whole situation are, but either
way,<00:12:54.399><c> that's</c><00:12:54.639><c> not</c><00:12:54.880><c> what</c><00:12:55.040><c> we're</c><00:12:55.200><c> here</c><00:12:55.360><c> to</c>

00:12:55.509 --> 00:12:55.519 align:start position:0%
way, that's not what we're here to
 

00:12:55.519 --> 00:12:57.350 align:start position:0%
way, that's not what we're here to
discuss.<00:12:56.160><c> The</c><00:12:56.320><c> commenter</c><00:12:56.720><c> who</c><00:12:56.959><c> brought</c><00:12:57.200><c> up</c>

00:12:57.350 --> 00:12:57.360 align:start position:0%
discuss. The commenter who brought up
 

00:12:57.360 --> 00:12:59.430 align:start position:0%
discuss. The commenter who brought up
this<00:12:57.600><c> game</c><00:12:57.920><c> mentioned</c><00:12:58.320><c> that</c><00:12:58.480><c> it</c><00:12:58.720><c> features</c><00:12:59.040><c> its</c>

00:12:59.430 --> 00:12:59.440 align:start position:0%
this game mentioned that it features its
 

00:12:59.440 --> 00:13:01.829 align:start position:0%
this game mentioned that it features its
own<00:12:59.760><c> scripting</c><00:13:00.240><c> language.</c><00:13:00.959><c> I</c><00:13:01.200><c> have</c><00:13:01.440><c> seen</c><00:13:01.680><c> this</c>

00:13:01.829 --> 00:13:01.839 align:start position:0%
own scripting language. I have seen this
 

00:13:01.839 --> 00:13:03.990 align:start position:0%
own scripting language. I have seen this
game<00:13:02.079><c> before,</c><00:13:02.480><c> but</c><00:13:02.639><c> I</c><00:13:02.880><c> had</c><00:13:03.040><c> no</c><00:13:03.279><c> idea</c><00:13:03.600><c> you</c><00:13:03.839><c> could</c>

00:13:03.990 --> 00:13:04.000 align:start position:0%
game before, but I had no idea you could
 

00:13:04.000 --> 00:13:06.710 align:start position:0%
game before, but I had no idea you could
write<00:13:04.320><c> code</c><00:13:04.560><c> in</c><00:13:04.800><c> it.</c><00:13:05.360><c> So,</c><00:13:05.680><c> naturally,</c><00:13:06.240><c> I</c><00:13:06.480><c> had</c>

00:13:06.710 --> 00:13:06.720 align:start position:0%
write code in it. So, naturally, I had
 

00:13:06.720 --> 00:13:09.750 align:start position:0%
write code in it. So, naturally, I had
to<00:13:06.880><c> take</c><00:13:07.040><c> a</c><00:13:07.279><c> closer</c><00:13:07.680><c> look.</c><00:13:08.639><c> Once</c><00:13:08.959><c> again,</c><00:13:09.440><c> the</c>

00:13:09.750 --> 00:13:09.760 align:start position:0%
to take a closer look. Once again, the
 

00:13:09.760 --> 00:13:12.389 align:start position:0%
to take a closer look. Once again, the
entire<00:13:10.240><c> game</c><00:13:10.560><c> code</c><00:13:10.880><c> decompiles</c><00:13:11.600><c> to</c><00:13:11.760><c> a</c><00:13:12.000><c> single</c>

00:13:12.389 --> 00:13:12.399 align:start position:0%
entire game code decompiles to a single
 

00:13:12.399 --> 00:13:15.430 align:start position:0%
entire game code decompiles to a single
9,200<00:13:13.680><c> line</c><00:13:13.920><c> file.</c><00:13:14.560><c> Though,</c><00:13:14.880><c> because</c><00:13:15.120><c> this</c><00:13:15.360><c> is</c>

00:13:15.430 --> 00:13:15.440 align:start position:0%
9,200 line file. Though, because this is
 

00:13:15.440 --> 00:13:17.670 align:start position:0%
9,200 line file. Though, because this is
only<00:13:15.600><c> a</c><00:13:15.839><c> reconstruction</c><00:13:16.480><c> of</c><00:13:16.720><c> Action</c><00:13:17.120><c> Script</c><00:13:17.360><c> 2</c>

00:13:17.670 --> 00:13:17.680 align:start position:0%
only a reconstruction of Action Script 2
 

00:13:17.680 --> 00:13:19.269 align:start position:0%
only a reconstruction of Action Script 2
code,<00:13:18.079><c> there's</c><00:13:18.320><c> no</c><00:13:18.480><c> way</c><00:13:18.639><c> of</c><00:13:18.800><c> knowing</c><00:13:18.959><c> whether</c>

00:13:19.269 --> 00:13:19.279 align:start position:0%
code, there's no way of knowing whether
 

00:13:19.279 --> 00:13:20.790 align:start position:0%
code, there's no way of knowing whether
the<00:13:19.440><c> game</c><00:13:19.600><c> was</c><00:13:19.839><c> actually</c><00:13:20.160><c> developed</c><00:13:20.560><c> this</c>

00:13:20.790 --> 00:13:20.800 align:start position:0%
the game was actually developed this
 

00:13:20.800 --> 00:13:22.710 align:start position:0%
the game was actually developed this
way.<00:13:21.279><c> True</c><00:13:21.519><c> to</c><00:13:21.680><c> the</c><00:13:21.839><c> claims,</c><00:13:22.240><c> one</c><00:13:22.480><c> of</c><00:13:22.560><c> the</c>

00:13:22.710 --> 00:13:22.720 align:start position:0%
way. True to the claims, one of the
 

00:13:22.720 --> 00:13:24.069 align:start position:0%
way. True to the claims, one of the
first<00:13:22.959><c> things</c><00:13:23.120><c> we</c><00:13:23.360><c> find</c><00:13:23.600><c> is</c><00:13:23.839><c> an</c>

00:13:24.069 --> 00:13:24.079 align:start position:0%
first things we find is an
 

00:13:24.079 --> 00:13:26.550 align:start position:0%
first things we find is an
initialization<00:13:24.959><c> for</c><00:13:25.200><c> the</c><00:13:25.440><c> scripting</c><00:13:25.920><c> engine.</c>

00:13:26.550 --> 00:13:26.560 align:start position:0%
initialization for the scripting engine.
 

00:13:26.560 --> 00:13:28.230 align:start position:0%
initialization for the scripting engine.
But<00:13:26.720><c> while</c><00:13:26.959><c> digging</c><00:13:27.279><c> through</c><00:13:27.440><c> the</c><00:13:27.680><c> code</c><00:13:28.000><c> does</c>

00:13:28.230 --> 00:13:28.240 align:start position:0%
But while digging through the code does
 

00:13:28.240 --> 00:13:29.670 align:start position:0%
But while digging through the code does
provide<00:13:28.480><c> a</c><00:13:28.720><c> rough</c><00:13:28.959><c> reference</c><00:13:29.360><c> for</c><00:13:29.519><c> the</c>

00:13:29.670 --> 00:13:29.680 align:start position:0%
provide a rough reference for the
 

00:13:29.680 --> 00:13:32.069 align:start position:0%
provide a rough reference for the
language,<00:13:30.320><c> the</c><00:13:30.560><c> best</c><00:13:30.800><c> way</c><00:13:31.040><c> to</c><00:13:31.200><c> get</c><00:13:31.360><c> a</c><00:13:31.600><c> feel</c><00:13:31.839><c> for</c>

00:13:32.069 --> 00:13:32.079 align:start position:0%
language, the best way to get a feel for
 

00:13:32.079 --> 00:13:34.389 align:start position:0%
language, the best way to get a feel for
it<00:13:32.240><c> is</c><00:13:32.560><c> to</c><00:13:32.800><c> write</c><00:13:32.864><c> [music]</c><00:13:33.120><c> some</c><00:13:33.519><c> code.</c><00:13:34.160><c> I</c>

00:13:34.389 --> 00:13:34.399 align:start position:0%
it is to write [music] some code. I
 

00:13:34.399 --> 00:13:36.069 align:start position:0%
it is to write [music] some code. I
wanted<00:13:34.639><c> to</c><00:13:34.800><c> find</c><00:13:34.959><c> out</c><00:13:35.200><c> whether</c><00:13:35.519><c> this</c><00:13:35.760><c> silly</c>

00:13:36.069 --> 00:13:36.079 align:start position:0%
wanted to find out whether this silly
 

00:13:36.079 --> 00:13:38.710 align:start position:0%
wanted to find out whether this silly
feature<00:13:36.480><c> is</c><00:13:36.800><c> touring</c><00:13:37.440><c> complete.</c><00:13:38.000><c> If</c><00:13:38.160><c> it</c><00:13:38.320><c> is,</c>

00:13:38.710 --> 00:13:38.720 align:start position:0%
feature is touring complete. If it is,
 

00:13:38.720 --> 00:13:40.150 align:start position:0%
feature is touring complete. If it is,
that<00:13:38.959><c> would</c><00:13:39.120><c> mean</c><00:13:39.279><c> that</c><00:13:39.440><c> the</c><00:13:39.680><c> engine</c><00:13:40.000><c> can</c>

00:13:40.150 --> 00:13:40.160 align:start position:0%
that would mean that the engine can
 

00:13:40.160 --> 00:13:42.550 align:start position:0%
that would mean that the engine can
perform<00:13:40.720><c> any</c><00:13:41.120><c> computation</c><00:13:41.920><c> given</c><00:13:42.320><c> enough</c>

00:13:42.550 --> 00:13:42.560 align:start position:0%
perform any computation given enough
 

00:13:42.560 --> 00:13:45.910 align:start position:0%
perform any computation given enough
time<00:13:42.720><c> and</c><00:13:43.040><c> resources.</c><00:13:44.079><c> So</c><00:13:44.480><c> to</c><00:13:44.800><c> prove</c><00:13:45.040><c> this,</c><00:13:45.600><c> I</c>

00:13:45.910 --> 00:13:45.920 align:start position:0%
time and resources. So to prove this, I
 

00:13:45.920 --> 00:13:47.590 align:start position:0%
time and resources. So to prove this, I
decided<00:13:46.240><c> to</c><00:13:46.480><c> write</c><00:13:46.720><c> a</c><00:13:46.959><c> brain</c><00:13:47.279><c> [&nbsp;__&nbsp;]</c>

00:13:47.590 --> 00:13:47.600 align:start position:0%
decided to write a brain [&nbsp;__&nbsp;]
 

00:13:47.600 --> 00:13:50.069 align:start position:0%
decided to write a brain [&nbsp;__&nbsp;]
interpreter.<00:13:48.880><c> Now,</c><00:13:49.200><c> I've</c><00:13:49.440><c> already</c><00:13:49.680><c> made</c><00:13:49.920><c> a</c>

00:13:50.069 --> 00:13:50.079 align:start position:0%
interpreter. Now, I've already made a
 

00:13:50.079 --> 00:13:51.990 align:start position:0%
interpreter. Now, I've already made a
whole<00:13:50.240><c> entire</c><00:13:50.639><c> video</c><00:13:50.959><c> covering</c><00:13:51.360><c> this</c><00:13:51.600><c> cursed</c>

00:13:51.990 --> 00:13:52.000 align:start position:0%
whole entire video covering this cursed
 

00:13:52.000 --> 00:13:54.150 align:start position:0%
whole entire video covering this cursed
language,<00:13:52.560><c> but</c><00:13:52.800><c> here's</c><00:13:53.120><c> the</c><00:13:53.279><c> gist</c><00:13:53.519><c> of</c><00:13:53.600><c> it.</c>

00:13:54.150 --> 00:13:54.160 align:start position:0%
language, but here's the gist of it.
 

00:13:54.160 --> 00:13:56.310 align:start position:0%
language, but here's the gist of it.
Brainfuck<00:13:54.800><c> is</c><00:13:55.040><c> an</c><00:13:55.279><c> incredibly</c><00:13:55.920><c> simple</c>

00:13:56.310 --> 00:13:56.320 align:start position:0%
Brainfuck is an incredibly simple
 

00:13:56.320 --> 00:13:58.389 align:start position:0%
Brainfuck is an incredibly simple
language<00:13:56.880><c> consisting</c><00:13:57.279><c> of</c><00:13:57.440><c> just</c><00:13:57.680><c> eight</c><00:13:58.000><c> valid</c>

00:13:58.389 --> 00:13:58.399 align:start position:0%
language consisting of just eight valid
 

00:13:58.399 --> 00:14:00.389 align:start position:0%
language consisting of just eight valid
characters.<00:13:59.120><c> This</c><00:13:59.360><c> simplicity</c><00:13:59.920><c> also</c><00:14:00.240><c> makes</c>

00:14:00.389 --> 00:14:00.399 align:start position:0%
characters. This simplicity also makes
 

00:14:00.399 --> 00:14:02.790 align:start position:0%
characters. This simplicity also makes
it<00:14:00.639><c> difficult</c><00:14:00.880><c> to</c><00:14:01.120><c> use,</c><00:14:01.519><c> hence</c><00:14:01.760><c> the</c><00:14:02.000><c> name.</c><00:14:02.560><c> But</c>

00:14:02.790 --> 00:14:02.800 align:start position:0%
it difficult to use, hence the name. But
 

00:14:02.800 --> 00:14:05.030 align:start position:0%
it difficult to use, hence the name. But
fundamentally,<00:14:03.600><c> its</c><00:14:03.920><c> design</c><00:14:04.320><c> mimics</c><00:14:04.720><c> that</c><00:14:04.959><c> of</c>

00:14:05.030 --> 00:14:05.040 align:start position:0%
fundamentally, its design mimics that of
 

00:14:05.040 --> 00:14:07.350 align:start position:0%
fundamentally, its design mimics that of
a<00:14:05.199><c> touring</c><00:14:05.600><c> machine,</c><00:14:06.160><c> which</c><00:14:06.560><c> by</c><00:14:06.880><c> definition</c>

00:14:07.350 --> 00:14:07.360 align:start position:0%
a touring machine, which by definition
 

00:14:07.360 --> 00:14:09.990 align:start position:0%
a touring machine, which by definition
is<00:14:07.760><c> touring</c><00:14:08.320><c> complete.</c><00:14:09.040><c> In</c><00:14:09.279><c> most</c><00:14:09.519><c> programming</c>

00:14:09.990 --> 00:14:10.000 align:start position:0%
is touring complete. In most programming
 

00:14:10.000 --> 00:14:11.670 align:start position:0%
is touring complete. In most programming
languages,<00:14:10.560><c> writing</c><00:14:10.880><c> a</c><00:14:11.040><c> brain</c><00:14:11.440><c> [&nbsp;__&nbsp;]</c>

00:14:11.670 --> 00:14:11.680 align:start position:0%
languages, writing a brain [&nbsp;__&nbsp;]
 

00:14:11.680 --> 00:14:14.470 align:start position:0%
languages, writing a brain [&nbsp;__&nbsp;]
interpreter<00:14:12.320><c> is</c><00:14:12.560><c> often</c><00:14:12.959><c> a</c><00:14:13.199><c> trivial</c><00:14:13.680><c> exercise.</c>

00:14:14.470 --> 00:14:14.480 align:start position:0%
interpreter is often a trivial exercise.
 

00:14:14.480 --> 00:14:16.550 align:start position:0%
interpreter is often a trivial exercise.
But<00:14:14.800><c> in</c><00:14:14.959><c> the</c><00:14:15.120><c> case</c><00:14:15.199><c> of</c><00:14:15.440><c> shock</c><00:14:15.760><c> script,</c><00:14:16.320><c> yes,</c>

00:14:16.550 --> 00:14:16.560 align:start position:0%
But in the case of shock script, yes,
 

00:14:16.560 --> 00:14:18.310 align:start position:0%
But in the case of shock script, yes,
that's<00:14:16.880><c> actually</c><00:14:17.199><c> what</c><00:14:17.360><c> it's</c><00:14:17.600><c> called,</c><00:14:18.079><c> it</c>

00:14:18.310 --> 00:14:18.320 align:start position:0%
that's actually what it's called, it
 

00:14:18.320 --> 00:14:21.189 align:start position:0%
that's actually what it's called, it
took<00:14:18.720><c> substantial</c><00:14:19.600><c> effort.</c><00:14:20.399><c> Most</c><00:14:20.720><c> operations</c>

00:14:21.189 --> 00:14:21.199 align:start position:0%
took substantial effort. Most operations
 

00:14:21.199 --> 00:14:23.189 align:start position:0%
took substantial effort. Most operations
in<00:14:21.440><c> shock</c><00:14:21.760><c> script</c><00:14:22.079><c> are</c><00:14:22.240><c> kind</c><00:14:22.399><c> of</c><00:14:22.560><c> like</c><00:14:22.800><c> Excel</c>

00:14:23.189 --> 00:14:23.199 align:start position:0%
in shock script are kind of like Excel
 

00:14:23.199 --> 00:14:25.269 align:start position:0%
in shock script are kind of like Excel
functions.<00:14:24.000><c> There's</c><00:14:24.240><c> a</c><00:14:24.480><c> name,</c><00:14:24.800><c> a</c><00:14:25.040><c> pair</c><00:14:25.199><c> of</c>

00:14:25.269 --> 00:14:25.279 align:start position:0%
functions. There's a name, a pair of
 

00:14:25.279 --> 00:14:27.110 align:start position:0%
functions. There's a name, a pair of
brackets,<00:14:25.760><c> and</c><00:14:25.920><c> a</c><00:14:26.079><c> few</c><00:14:26.240><c> commaepparated</c>

00:14:27.110 --> 00:14:27.120 align:start position:0%
brackets, and a few commaepparated
 

00:14:27.120 --> 00:14:29.269 align:start position:0%
brackets, and a few commaepparated
arguments.<00:14:27.839><c> Even</c><00:14:28.079><c> an</c><00:14:28.320><c> if</c><00:14:28.560><c> statement</c><00:14:28.880><c> follows</c>

00:14:29.269 --> 00:14:29.279 align:start position:0%
arguments. Even an if statement follows
 

00:14:29.279 --> 00:14:31.030 align:start position:0%
arguments. Even an if statement follows
the<00:14:29.519><c> same</c><00:14:29.680><c> structure,</c><00:14:30.160><c> which</c><00:14:30.480><c> is</c><00:14:30.720><c> pretty</c>

00:14:31.030 --> 00:14:31.040 align:start position:0%
the same structure, which is pretty
 

00:14:31.040 --> 00:14:33.189 align:start position:0%
the same structure, which is pretty
non-standard<00:14:31.839><c> for</c><00:14:32.000><c> a</c><00:14:32.240><c> programming</c><00:14:32.560><c> language.</c>

00:14:33.189 --> 00:14:33.199 align:start position:0%
non-standard for a programming language.
 

00:14:33.199 --> 00:14:34.870 align:start position:0%
non-standard for a programming language.
There's<00:14:33.440><c> also</c><00:14:33.680><c> no</c><00:14:33.839><c> way</c><00:14:34.000><c> to</c><00:14:34.160><c> define</c><00:14:34.480><c> your</c><00:14:34.720><c> own</c>

00:14:34.870 --> 00:14:34.880 align:start position:0%
There's also no way to define your own
 

00:14:34.880 --> 00:14:36.790 align:start position:0%
There's also no way to define your own
functions<00:14:35.279><c> aside</c><00:14:35.600><c> from</c><00:14:35.839><c> writing</c><00:14:36.160><c> code</c><00:14:36.399><c> into</c><00:14:36.639><c> a</c>

00:14:36.790 --> 00:14:36.800 align:start position:0%
functions aside from writing code into a
 

00:14:36.800 --> 00:14:39.430 align:start position:0%
functions aside from writing code into a
string<00:14:37.040><c> and</c><00:14:37.279><c> evaluating</c><00:14:38.079><c> that.</c><00:14:38.639><c> And</c><00:14:38.959><c> to</c><00:14:39.199><c> top</c>

00:14:39.430 --> 00:14:39.440 align:start position:0%
string and evaluating that. And to top
 

00:14:39.440 --> 00:14:41.990 align:start position:0%
string and evaluating that. And to top
it<00:14:39.600><c> all</c><00:14:39.760><c> off,</c><00:14:40.320><c> there</c><00:14:40.560><c> are</c><00:14:40.880><c> several</c><00:14:41.440><c> bugs</c><00:14:41.839><c> in</c>

00:14:41.990 --> 00:14:42.000 align:start position:0%
it all off, there are several bugs in
 

00:14:42.000 --> 00:14:44.389 align:start position:0%
it all off, there are several bugs in
the<00:14:42.240><c> scripting</c><00:14:42.639><c> engine.</c><00:14:43.360><c> For</c><00:14:43.519><c> example,</c><00:14:44.079><c> the</c>

00:14:44.389 --> 00:14:44.399 align:start position:0%
the scripting engine. For example, the
 

00:14:44.399 --> 00:14:47.189 align:start position:0%
the scripting engine. For example, the
order<00:14:44.720><c> of</c><00:14:44.959><c> operations</c><00:14:45.680><c> is</c><00:14:46.079><c> completely</c><00:14:46.800><c> messed</c>

00:14:47.189 --> 00:14:47.199 align:start position:0%
order of operations is completely messed
 

00:14:47.199 --> 00:14:49.750 align:start position:0%
order of operations is completely messed
up.<00:14:47.680><c> In</c><00:14:47.920><c> this</c><00:14:48.160><c> if</c><00:14:48.480><c> statement,</c><00:14:49.040><c> the</c><00:14:49.279><c> and</c>

00:14:49.750 --> 00:14:49.760 align:start position:0%
up. In this if statement, the and
 

00:14:49.760 --> 00:14:51.829 align:start position:0%
up. In this if statement, the and
operator<00:14:50.320><c> applies</c><00:14:50.880><c> not</c><00:14:51.120><c> to</c><00:14:51.279><c> the</c><00:14:51.440><c> pair</c><00:14:51.680><c> of</c>

00:14:51.829 --> 00:14:51.839 align:start position:0%
operator applies not to the pair of
 

00:14:51.839 --> 00:14:53.829 align:start position:0%
operator applies not to the pair of
comparisons<00:14:52.399><c> as</c><00:14:52.560><c> you'd</c><00:14:52.800><c> expect</c><00:14:53.040><c> it</c><00:14:53.279><c> to,</c><00:14:53.600><c> but</c>

00:14:53.829 --> 00:14:53.839 align:start position:0%
comparisons as you'd expect it to, but
 

00:14:53.839 --> 00:14:56.710 align:start position:0%
comparisons as you'd expect it to, but
to<00:14:54.079><c> the</c><00:14:54.320><c> operands</c><00:14:55.040><c> adjacent</c><00:14:55.680><c> to</c><00:14:55.839><c> it.</c><00:14:56.320><c> Even</c><00:14:56.560><c> if</c>

00:14:56.710 --> 00:14:56.720 align:start position:0%
to the operands adjacent to it. Even if
 

00:14:56.720 --> 00:14:59.350 align:start position:0%
to the operands adjacent to it. Even if
you<00:14:56.880><c> add</c><00:14:57.120><c> brackets,</c><00:14:57.839><c> it</c><00:14:58.160><c> still</c><00:14:58.480><c> doesn't</c><00:14:58.880><c> work.</c>

00:14:59.350 --> 00:14:59.360 align:start position:0%
you add brackets, it still doesn't work.
 

00:14:59.360 --> 00:15:00.949 align:start position:0%
you add brackets, it still doesn't work.
I<00:14:59.519><c> found</c><00:14:59.680><c> that</c><00:14:59.839><c> the</c><00:15:00.079><c> only</c><00:15:00.320><c> way</c><00:15:00.480><c> around</c><00:15:00.800><c> this</c>

00:15:00.949 --> 00:15:00.959 align:start position:0%
I found that the only way around this
 

00:15:00.959 --> 00:15:03.350 align:start position:0%
I found that the only way around this
was<00:15:01.199><c> to</c><00:15:01.440><c> create</c><00:15:01.839><c> named</c><00:15:02.320><c> variables</c><00:15:02.880><c> with</c><00:15:03.120><c> the</c>

00:15:03.350 --> 00:15:03.360 align:start position:0%
was to create named variables with the
 

00:15:03.360 --> 00:15:05.990 align:start position:0%
was to create named variables with the
value<00:15:03.600><c> of</c><00:15:03.839><c> each</c><00:15:04.160><c> condition.</c><00:15:05.120><c> But</c><00:15:05.360><c> in</c><00:15:05.600><c> the</c><00:15:05.760><c> end,</c>

00:15:05.990 --> 00:15:06.000 align:start position:0%
value of each condition. But in the end,
 

00:15:06.000 --> 00:15:08.470 align:start position:0%
value of each condition. But in the end,
I<00:15:06.320><c> did</c><00:15:06.560><c> manage</c><00:15:06.880><c> to</c><00:15:07.040><c> get</c><00:15:07.199><c> a</c><00:15:07.440><c> simple</c><00:15:07.760><c> hello</c><00:15:08.160><c> world</c>

00:15:08.470 --> 00:15:08.480 align:start position:0%
I did manage to get a simple hello world
 

00:15:08.480 --> 00:15:10.230 align:start position:0%
I did manage to get a simple hello world
program<00:15:08.500><c> [music]</c><00:15:08.800><c> to</c><00:15:09.040><c> work</c><00:15:09.279><c> from</c><00:15:09.600><c> within</c><00:15:10.000><c> the</c>

00:15:10.230 --> 00:15:10.240 align:start position:0%
program [music] to work from within the
 

00:15:10.240 --> 00:15:13.189 align:start position:0%
program [music] to work from within the
brain<00:15:10.560><c> [&nbsp;__&nbsp;]</c><00:15:10.800><c> interpreter.</c><00:15:11.839><c> So,</c><00:15:12.240><c> hooray.</c><00:15:12.959><c> This</c>

00:15:13.189 --> 00:15:13.199 align:start position:0%
brain [&nbsp;__&nbsp;] interpreter. So, hooray. This
 

00:15:13.199 --> 00:15:15.350 align:start position:0%
brain [&nbsp;__&nbsp;] interpreter. So, hooray. This
simple<00:15:13.519><c> flash</c><00:15:13.920><c> game</c><00:15:14.079><c> is</c><00:15:14.399><c> touring</c><00:15:14.880><c> complete.</c>

00:15:15.350 --> 00:15:15.360 align:start position:0%
simple flash game is touring complete.
 

00:15:15.360 --> 00:15:17.350 align:start position:0%
simple flash game is touring complete.
Given<00:15:15.680><c> enough</c><00:15:16.000><c> resources</c><00:15:16.480><c> and</c><00:15:16.720><c> patience,</c><00:15:17.199><c> you</c>

00:15:17.350 --> 00:15:17.360 align:start position:0%
Given enough resources and patience, you
 

00:15:17.360 --> 00:15:20.069 align:start position:0%
Given enough resources and patience, you
could<00:15:17.519><c> eventually</c><00:15:17.920><c> use</c><00:15:18.079><c> it</c><00:15:18.240><c> to</c><00:15:18.480><c> run</c><00:15:18.720><c> GTA</c><00:15:19.279><c> 6.</c>

00:15:20.069 --> 00:15:20.079 align:start position:0%
could eventually use it to run GTA 6.
 

00:15:20.079 --> 00:15:22.150 align:start position:0%
could eventually use it to run GTA 6.
Now,<00:15:20.399><c> that's</c><00:15:20.639><c> all</c><00:15:20.880><c> pretty</c><00:15:21.199><c> cool,</c><00:15:21.600><c> but</c><00:15:21.920><c> while</c>

00:15:22.150 --> 00:15:22.160 align:start position:0%
Now, that's all pretty cool, but while
 

00:15:22.160 --> 00:15:23.750 align:start position:0%
Now, that's all pretty cool, but while
looking<00:15:22.399><c> through</c><00:15:22.560><c> the</c><00:15:22.800><c> game's</c><00:15:23.120><c> code,</c><00:15:23.519><c> I</c>

00:15:23.750 --> 00:15:23.760 align:start position:0%
looking through the game's code, I
 

00:15:23.760 --> 00:15:25.910 align:start position:0%
looking through the game's code, I
spotted<00:15:24.320><c> something</c><00:15:24.720><c> else.</c><00:15:25.440><c> Something</c>

00:15:25.910 --> 00:15:25.920 align:start position:0%
spotted something else. Something
 

00:15:25.920 --> 00:15:27.829 align:start position:0%
spotted something else. Something
arguably<00:15:26.480><c> more</c><00:15:26.800><c> impressive</c><00:15:27.199><c> than</c><00:15:27.360><c> a</c><00:15:27.519><c> hidden</c>

00:15:27.829 --> 00:15:27.839 align:start position:0%
arguably more impressive than a hidden
 

00:15:27.839 --> 00:15:31.350 align:start position:0%
arguably more impressive than a hidden
scripting<00:15:28.240><c> engine.</c><00:15:29.279><c> This</c><00:15:29.600><c> game</c><00:15:30.720><c> implements</c>

00:15:31.350 --> 00:15:31.360 align:start position:0%
scripting engine. This game implements
 

00:15:31.360 --> 00:15:34.150 align:start position:0%
scripting engine. This game implements
its<00:15:31.680><c> own</c><00:15:32.160><c> physics.</c>

00:15:34.150 --> 00:15:34.160 align:start position:0%
its own physics.
 

00:15:34.160 --> 00:15:36.150 align:start position:0%
its own physics.
In<00:15:34.399><c> most</c><00:15:34.720><c> flash</c><00:15:35.040><c> games,</c><00:15:35.440><c> the</c><00:15:35.600><c> physics</c><00:15:36.000><c> are</c>

00:15:36.150 --> 00:15:36.160 align:start position:0%
In most flash games, the physics are
 

00:15:36.160 --> 00:15:38.310 align:start position:0%
In most flash games, the physics are
handled<00:15:36.480><c> by</c><00:15:36.720><c> a</c><00:15:36.880><c> ready-made</c><00:15:37.519><c> physics</c><00:15:37.920><c> library</c>

00:15:38.310 --> 00:15:38.320 align:start position:0%
handled by a ready-made physics library
 

00:15:38.320 --> 00:15:39.910 align:start position:0%
handled by a ready-made physics library
that<00:15:38.560><c> you</c><00:15:38.720><c> can</c><00:15:38.800><c> just</c><00:15:38.959><c> throw</c><00:15:39.120><c> into</c><00:15:39.360><c> your</c><00:15:39.600><c> code,</c>

00:15:39.910 --> 00:15:39.920 align:start position:0%
that you can just throw into your code,
 

00:15:39.920 --> 00:15:41.990 align:start position:0%
that you can just throw into your code,
configure<00:15:40.320><c> a</c><00:15:40.560><c> bit,</c><00:15:40.720><c> and</c><00:15:40.959><c> then</c><00:15:41.199><c> forget</c><00:15:41.600><c> about.</c>

00:15:41.990 --> 00:15:42.000 align:start position:0%
configure a bit, and then forget about.
 

00:15:42.000 --> 00:15:44.069 align:start position:0%
configure a bit, and then forget about.
The<00:15:42.240><c> heavy</c><00:15:42.560><c> lifting</c><00:15:42.880><c> is</c><00:15:43.199><c> done</c><00:15:43.360><c> by</c><00:15:43.680><c> someone</c>

00:15:44.069 --> 00:15:44.079 align:start position:0%
The heavy lifting is done by someone
 

00:15:44.079 --> 00:15:45.829 align:start position:0%
The heavy lifting is done by someone
else.<00:15:44.720><c> What</c><00:15:44.959><c> you're</c><00:15:45.120><c> currently</c><00:15:45.440><c> looking</c><00:15:45.680><c> at</c>

00:15:45.829 --> 00:15:45.839 align:start position:0%
else. What you're currently looking at
 

00:15:45.839 --> 00:15:48.310 align:start position:0%
else. What you're currently looking at
is<00:15:46.160><c> Home</c><00:15:46.480><c> Sheep</c><00:15:46.800><c> Home.</c><00:15:47.360><c> I</c><00:15:47.519><c> used</c><00:15:47.680><c> to</c><00:15:47.839><c> speedrun</c>

00:15:48.310 --> 00:15:48.320 align:start position:0%
is Home Sheep Home. I used to speedrun
 

00:15:48.320 --> 00:15:50.470 align:start position:0%
is Home Sheep Home. I used to speedrun
this<00:15:48.480><c> game,</c><00:15:48.720><c> and</c><00:15:48.880><c> in</c><00:15:49.120><c> my</c><00:15:49.279><c> prime,</c><00:15:49.680><c> I</c><00:15:49.920><c> dissected</c>

00:15:50.470 --> 00:15:50.480 align:start position:0%
this game, and in my prime, I dissected
 

00:15:50.480 --> 00:15:52.069 align:start position:0%
this game, and in my prime, I dissected
the<00:15:50.720><c> code</c><00:15:50.959><c> through</c><00:15:51.199><c> and</c><00:15:51.360><c> through</c><00:15:51.519><c> to</c><00:15:51.759><c> hunt</c><00:15:51.920><c> for</c>

00:15:52.069 --> 00:15:52.079 align:start position:0%
the code through and through to hunt for
 

00:15:52.079 --> 00:15:53.690 align:start position:0%
the code through and through to hunt for
glitches<00:15:52.480><c> and</c><00:15:52.720><c> movement</c><00:15:53.120><c> tricks.</c><00:15:53.680><c> And</c>

00:15:53.690 --> 00:15:53.700 align:start position:0%
glitches and movement tricks. And
 

00:15:53.700 --> 00:15:55.110 align:start position:0%
glitches and movement tricks. And
[music]<00:15:53.839><c> that's</c><00:15:54.079><c> when</c><00:15:54.240><c> I</c><00:15:54.399><c> learned</c><00:15:54.639><c> that</c><00:15:54.880><c> many</c>

00:15:55.110 --> 00:15:55.120 align:start position:0%
[music] that's when I learned that many
 

00:15:55.120 --> 00:15:57.189 align:start position:0%
[music] that's when I learned that many
such<00:15:55.440><c> flash</c><00:15:55.759><c> games</c><00:15:56.000><c> use</c><00:15:56.240><c> a</c><00:15:56.399><c> robust</c><00:15:56.880><c> physics</c>

00:15:57.189 --> 00:15:57.199 align:start position:0%
such flash games use a robust physics
 

00:15:57.199 --> 00:15:59.575 align:start position:0%
such flash games use a robust physics
engine<00:15:57.680><c> called</c><00:15:58.000><c> Box</c><00:15:58.480><c> 2D.</c><00:15:59.199><c> for</c><00:15:59.360><c> my</c><00:15:59.519><c> glitch</c>

00:15:59.575 --> 00:15:59.585 align:start position:0%
engine called Box 2D. for my glitch
 

00:15:59.585 --> 00:16:01.189 align:start position:0%
engine called Box 2D. for my glitch
[music]<00:15:59.839><c> hunting.</c><00:16:00.399><c> That</c><00:16:00.560><c> meant</c><00:16:00.800><c> that</c><00:16:00.959><c> it's</c>

00:16:01.189 --> 00:16:01.199 align:start position:0%
[music] hunting. That meant that it's
 

00:16:01.199 --> 00:16:03.110 align:start position:0%
[music] hunting. That meant that it's
unlikely<00:16:01.680><c> I'd</c><00:16:01.920><c> find</c><00:16:02.160><c> many</c><00:16:02.399><c> physics</c><00:16:02.800><c> related</c>

00:16:03.110 --> 00:16:03.120 align:start position:0%
unlikely I'd find many physics related
 

00:16:03.120 --> 00:16:05.030 align:start position:0%
unlikely I'd find many physics related
bugs<00:16:03.600><c> given</c><00:16:03.839><c> that</c><00:16:04.000><c> engines</c><00:16:04.399><c> like</c><00:16:04.560><c> these</c><00:16:04.800><c> are</c>

00:16:05.030 --> 00:16:05.040 align:start position:0%
bugs given that engines like these are
 

00:16:05.040 --> 00:16:07.436 align:start position:0%
bugs given that engines like these are
often<00:16:05.440><c> fairly</c><00:16:05.839><c> stable.</c><00:16:06.639><c> But</c><00:16:06.880><c> coming</c><00:16:07.199><c> back</c><00:16:07.360><c> to</c>

00:16:07.436 --> 00:16:07.446 align:start position:0%
often fairly stable. But coming back to
 

00:16:07.446 --> 00:16:09.670 align:start position:0%
often fairly stable. But coming back to
[music]<00:16:07.600><c> Interactive</c><00:16:08.160><c> Buddy,</c><00:16:08.880><c> this</c><00:16:09.279><c> doesn't</c>

00:16:09.670 --> 00:16:09.680 align:start position:0%
[music] Interactive Buddy, this doesn't
 

00:16:09.680 --> 00:16:12.150 align:start position:0%
[music] Interactive Buddy, this doesn't
use<00:16:09.920><c> Box</c><00:16:10.320><c> 2D.</c><00:16:10.880><c> In</c><00:16:11.040><c> fact,</c><00:16:11.279><c> this</c><00:16:11.600><c> doesn't</c><00:16:11.839><c> use</c>

00:16:12.150 --> 00:16:12.160 align:start position:0%
use Box 2D. In fact, this doesn't use
 

00:16:12.160 --> 00:16:14.550 align:start position:0%
use Box 2D. In fact, this doesn't use
any<00:16:12.480><c> general</c><00:16:12.959><c> purpose</c><00:16:13.199><c> physics</c><00:16:13.600><c> engine.</c><00:16:14.160><c> It's</c>

00:16:14.550 --> 00:16:14.560 align:start position:0%
any general purpose physics engine. It's
 

00:16:14.560 --> 00:16:17.430 align:start position:0%
any general purpose physics engine. It's
all<00:16:14.959><c> in-house</c><00:16:15.680><c> code</c><00:16:16.160><c> written</c><00:16:16.639><c> specifically</c>

00:16:17.430 --> 00:16:17.440 align:start position:0%
all in-house code written specifically
 

00:16:17.440 --> 00:16:19.910 align:start position:0%
all in-house code written specifically
for<00:16:17.759><c> this</c><00:16:18.079><c> game,</c><00:16:18.639><c> which</c><00:16:19.040><c> certainly</c><00:16:19.519><c> does</c><00:16:19.759><c> some</c>

00:16:19.910 --> 00:16:19.920 align:start position:0%
for this game, which certainly does some
 

00:16:19.920 --> 00:16:22.470 align:start position:0%
for this game, which certainly does some
work<00:16:20.160><c> in</c><00:16:20.399><c> explaining</c><00:16:20.800><c> the</c><00:16:21.120><c> 9,000line</c><00:16:22.079><c> code</c>

00:16:22.470 --> 00:16:22.480 align:start position:0%
work in explaining the 9,000line code
 

00:16:22.480 --> 00:16:23.156 align:start position:0%
work in explaining the 9,000line code
footprint.

00:16:23.156 --> 00:16:23.166 align:start position:0%
footprint.
 

00:16:23.166 --> 00:16:23.350 align:start position:0%
footprint.
&gt;&gt; [music]

00:16:23.350 --> 00:16:23.360 align:start position:0%
&gt;&gt; [music]
 

00:16:23.360 --> 00:16:25.509 align:start position:0%
&gt;&gt; [music]
&gt;&gt; If<00:16:23.680><c> there's</c><00:16:24.000><c> any</c><00:16:24.240><c> takeaway</c><00:16:24.720><c> to</c><00:16:24.880><c> be</c><00:16:25.040><c> had</c><00:16:25.279><c> from</c>

00:16:25.509 --> 00:16:25.519 align:start position:0%
&gt;&gt; If there's any takeaway to be had from
 

00:16:25.519 --> 00:16:27.509 align:start position:0%
&gt;&gt; If there's any takeaway to be had from
digging<00:16:25.839><c> through</c><00:16:26.000><c> the</c><00:16:26.240><c> code,</c><00:16:26.639><c> it's</c><00:16:26.880><c> that</c><00:16:27.199><c> this</c>

00:16:27.509 --> 00:16:27.519 align:start position:0%
digging through the code, it's that this
 

00:16:27.519 --> 00:16:29.670 align:start position:0%
digging through the code, it's that this
game<00:16:27.920><c> and</c><00:16:28.240><c> frankly</c><00:16:28.720><c> all</c><00:16:28.959><c> of</c><00:16:29.040><c> the</c><00:16:29.199><c> games</c><00:16:29.360><c> we've</c>

00:16:29.670 --> 00:16:29.680 align:start position:0%
game and frankly all of the games we've
 

00:16:29.680 --> 00:16:32.470 align:start position:0%
game and frankly all of the games we've
talked<00:16:29.920><c> about</c><00:16:30.399><c> are</c><00:16:30.720><c> a</c><00:16:30.959><c> work</c><00:16:31.279><c> of</c><00:16:31.600><c> passion.</c>

00:16:32.470 --> 00:16:32.480 align:start position:0%
talked about are a work of passion.
 

00:16:32.480 --> 00:16:34.230 align:start position:0%
talked about are a work of passion.
Thanks<00:16:32.720><c> again</c><00:16:32.880><c> to</c><00:16:33.040><c> Cody</c><00:16:33.440><c> for</c><00:16:33.600><c> sponsoring</c><00:16:34.000><c> this</c>

00:16:34.230 --> 00:16:34.240 align:start position:0%
Thanks again to Cody for sponsoring this
 

00:16:34.240 --> 00:16:39.079 align:start position:0%
Thanks again to Cody for sponsoring this
video<00:16:34.639><c> and</c><00:16:34.959><c> thank</c><00:16:35.279><c> you</c><00:16:35.759><c> for</c><00:16:36.079><c> watching.</c>

