Skip to corpus content
HIMR Public Corpustimestamped source index

Recording

Creating space invaders game on XCODE 7 macbook air

2015-10-20 · 17 min

internet_archive
Machine transcript · wording, timing and speaker attribution may be wrong

Wording, speaker labels, and timestamps can still be wrong. A transcript does not establish that statements in the recording are factual. Use the source links and surrounding context.

Read summary

Expand to load the summary.

Open summary page ↗
Source information & transcript revisions

Transcript revisions

  1. rev_16d5cf749a1ee0f944dde6101424f352Machine-generated and unreviewed; may be wrong; not a verified quotation.
    enraw_asractive270 segments

Transcript

en
  1. Hey guys, so I have this interesting idea

    Segment details0:04–0:07 · rev_16d5cf749a1ee0f944dde6101424f352_0
  2. for a video. I'm currently learning how to

    Segment details0:07–0:09 · rev_16d5cf749a1ee0f944dde6101424f352_1
  3. use Xcode, and I'm following this tutorial

    Segment details0:10–0:11 · rev_16d5cf749a1ee0f944dde6101424f352_2
  4. to how to make a Space Invaders game. And

    Segment details0:12–0:15 · rev_16d5cf749a1ee0f944dde6101424f352_3
  5. as you can see, it doesn't look very good.

    Segment details0:15–0:18 · rev_16d5cf749a1ee0f944dde6101424f352_4
  6. I mean, you have a plain background, you

    Segment details0:19–0:21 · rev_16d5cf749a1ee0f944dde6101424f352_5
  7. have this ship that looks like a stupid

    Segment details0:21–0:23 · rev_16d5cf749a1ee0f944dde6101424f352_6
  8. red block, and the bullet is just an

    Segment details0:23–0:26 · rev_16d5cf749a1ee0f944dde6101424f352_7
  9. orange rectangle. So this was the code.

    Segment details0:26–0:29 · rev_16d5cf749a1ee0f944dde6101424f352_8
  10. Hold on, the code is right

    Segment details0:30–0:35 · rev_16d5cf749a1ee0f944dde6101424f352_9
  11. here.

    Segment details0:35–0:35 · rev_16d5cf749a1ee0f944dde6101424f352_10
  12. And basically this just links up the

    Segment details0:39–0:41 · rev_16d5cf749a1ee0f944dde6101424f352_11
  13. buttons on the screen. And this is the

    Segment details0:42–0:44 · rev_16d5cf749a1ee0f944dde6101424f352_12
  14. code. So, so far we've done— we've

    Segment details0:44–0:51 · rev_16d5cf749a1ee0f944dde6101424f352_13
  15. made the code so when you press on the

    Segment details0:51–0:52 · rev_16d5cf749a1ee0f944dde6101424f352_14
  16. left arrow side of the screen, the ship

    Segment details0:52–0:54 · rev_16d5cf749a1ee0f944dde6101424f352_15
  17. moves to the left, and then on the

    Segment details0:55–0:56 · rev_16d5cf749a1ee0f944dde6101424f352_16
  18. right-hand side, the ship moves to the

    Segment details0:56–0:58 · rev_16d5cf749a1ee0f944dde6101424f352_17
  19. right. And this one limits the number of

    Segment details0:58–1:01 · rev_16d5cf749a1ee0f944dde6101424f352_18
  20. bullets that you can shoot. So currently

    Segment details1:01–1:04 · rev_16d5cf749a1ee0f944dde6101424f352_19
  21. you can only shoot one bullet, but I'm

    Segment details1:04–1:06 · rev_16d5cf749a1ee0f944dde6101424f352_20
  22. going to change that later so you can

    Segment details1:06–1:08 · rev_16d5cf749a1ee0f944dde6101424f352_21
  23. shoot multiple bullets because I want it

    Segment details1:08–1:09 · rev_16d5cf749a1ee0f944dde6101424f352_22
  24. to be more fast-paced and action-oriented.

    Segment details1:10–1:13 · rev_16d5cf749a1ee0f944dde6101424f352_23
  25. And this is the bullet. So the

    Segment details1:15–1:18 · rev_16d5cf749a1ee0f944dde6101424f352_24
  26. bullet appears Now the bullet disappears

    Segment details1:19–1:21 · rev_16d5cf749a1ee0f944dde6101424f352_25
  27. hidden when it is less than 0 on the

    Segment details1:22–1:25 · rev_16d5cf749a1ee0f944dde6101424f352_26
  28. y-axis. And then you

    Segment details1:25–1:28 · rev_16d5cf749a1ee0f944dde6101424f352_27
  29. click on the button shoot to shoot another

    Segment details1:28–1:30 · rev_16d5cf749a1ee0f944dde6101424f352_28
  30. bullet. Anyway, so this is what the game

    Segment details1:30–1:33 · rev_16d5cf749a1ee0f944dde6101424f352_29
  31. looks like when you press run.

    Segment details1:33–1:34 · rev_16d5cf749a1ee0f944dde6101424f352_30
  32. It's a bit slow when you press run. It's

    Segment details1:38–1:39 · rev_16d5cf749a1ee0f944dde6101424f352_31
  33. like loading up this. Okay,

    Segment details1:39–1:43 · rev_16d5cf749a1ee0f944dde6101424f352_32
  34. so build succeeded. Where is it?

    Segment details1:43–1:45 · rev_16d5cf749a1ee0f944dde6101424f352_33
  35. Start, and you press Start. If you press

    Segment details1:48–1:50 · rev_16d5cf749a1ee0f944dde6101424f352_34
  36. Shoot, it shoots an orange block.

    Segment details1:51–1:53 · rev_16d5cf749a1ee0f944dde6101424f352_35
  37. And if you press on the left, it goes

    Segment details1:54–1:57 · rev_16d5cf749a1ee0f944dde6101424f352_36
  38. left. Press on the right, it will go to

    Segment details1:57–1:59 · rev_16d5cf749a1ee0f944dde6101424f352_37
  39. the right. Easy, right? But what I want to

    Segment details1:59–2:03 · rev_16d5cf749a1ee0f944dde6101424f352_38
  40. do in this video is make this more pretty.

    Segment details2:03–2:05 · rev_16d5cf749a1ee0f944dde6101424f352_39
  41. So let's close this and go back to

    Segment details2:07–2:10 · rev_16d5cf749a1ee0f944dde6101424f352_40
  42. Main.storyboard. And I actually downloaded

    Segment details2:10–2:14 · rev_16d5cf749a1ee0f944dde6101424f352_41
  43. this PNG of a spaceship which looks a lot

    Segment details2:14–2:16 · rev_16d5cf749a1ee0f944dde6101424f352_42
  44. better than our current spaceship, and it

    Segment details2:17–2:18 · rev_16d5cf749a1ee0f944dde6101424f352_43
  45. looks like this. Now doesn't that look

    Segment details2:19–2:20 · rev_16d5cf749a1ee0f944dde6101424f352_44
  46. better? Look at that, look at that.

    Segment details2:21–2:23 · rev_16d5cf749a1ee0f944dde6101424f352_45
  47. Okay, let's do run, see how it looks like.

    Segment details2:24–2:26 · rev_16d5cf749a1ee0f944dde6101424f352_46
  48. Why is the cursor hand? It should be like

    Segment details2:32–2:34 · rev_16d5cf749a1ee0f944dde6101424f352_47
  49. a pointer. Anyway, so we have shoot.

    Segment details2:35–2:36 · rev_16d5cf749a1ee0f944dde6101424f352_48
  50. Shoots a block, and our spaceship looks

    Segment details2:38–2:41 · rev_16d5cf749a1ee0f944dde6101424f352_49
  51. really cool now. Okay, so what I want to

    Segment details2:42–2:45 · rev_16d5cf749a1ee0f944dde6101424f352_50
  52. do now is replace the bullets because

    Segment details2:45–2:48 · rev_16d5cf749a1ee0f944dde6101424f352_51
  53. this— I don't want this ugly orange. So

    Segment details2:48–2:50 · rev_16d5cf749a1ee0f944dde6101424f352_52
  54. let's look for something interesting. I

    Segment details2:50–2:51 · rev_16d5cf749a1ee0f944dde6101424f352_53
  55. was thinking of a fireball, but now let's

    Segment details2:52–2:54 · rev_16d5cf749a1ee0f944dde6101424f352_54
  56. have a look at lasers. Laser pixel

    Segment details2:54–2:58 · rev_16d5cf749a1ee0f944dde6101424f352_55
  57. art PNG.

    Segment details2:59–3:00 · rev_16d5cf749a1ee0f944dde6101424f352_56
  58. So I'm just looking for these images on

    Segment details3:03–3:07 · rev_16d5cf749a1ee0f944dde6101424f352_57
  59. the search engine. I'm not really sure if

    Segment details3:07–3:09 · rev_16d5cf749a1ee0f944dde6101424f352_58
  60. you're allowed to do this, just pinch

    Segment details3:09–3:11 · rev_16d5cf749a1ee0f944dde6101424f352_59
  61. images off Google or search engines,

    Segment details3:11–3:14 · rev_16d5cf749a1ee0f944dde6101424f352_60
  62. but who cares. So let's try Google.

    Segment details3:15–3:18 · rev_16d5cf749a1ee0f944dde6101424f352_61
  63. So this search engine isn't very good,

    Segment details3:21–3:23 · rev_16d5cf749a1ee0f944dde6101424f352_62
  64. but it gives you random points if you

    Segment details3:23–3:27 · rev_16d5cf749a1ee0f944dde6101424f352_63
  65. search using that website, and you can

    Segment details3:27–3:30 · rev_16d5cf749a1ee0f944dde6101424f352_64
  66. change points for Amazon gift cards,

    Segment details3:30–3:32 · rev_16d5cf749a1ee0f944dde6101424f352_65
  67. which is nice. Laser pixel PNG

    Segment details3:32–3:36 · rev_16d5cf749a1ee0f944dde6101424f352_66
  68. art.

    Segment details3:36–3:36 · rev_16d5cf749a1ee0f944dde6101424f352_67
  69. So what we want is like a laser. These

    Segment details3:40–3:42 · rev_16d5cf749a1ee0f944dde6101424f352_68
  70. aren't really what I'm looking for.

    Segment details3:42–3:44 · rev_16d5cf749a1ee0f944dde6101424f352_69
  71. Oh, this is nice. What about this?

    Segment details3:47–3:48 · rev_16d5cf749a1ee0f944dde6101424f352_70
  72. But is it a PNG? Oh, it is a PNG.

    Segment details3:52–3:56 · rev_16d5cf749a1ee0f944dde6101424f352_71
  73. So let's download this. Save image

    Segment details3:57–4:00 · rev_16d5cf749a1ee0f944dde6101424f352_72
  74. as laser. Pew pew.

    Segment details4:01–4:03 · rev_16d5cf749a1ee0f944dde6101424f352_73
  75. And then what we have to do is go back

    Segment details4:06–4:09 · rev_16d5cf749a1ee0f944dde6101424f352_74
  76. into Xcode and then go where you

    Segment details4:09–4:12 · rev_16d5cf749a1ee0f944dde6101424f352_75
  77. downloaded it, and then you have to drag

    Segment details4:12–4:14 · rev_16d5cf749a1ee0f944dde6101424f352_76
  78. it, drag it under Supporting Files,

    Segment details4:15–4:18 · rev_16d5cf749a1ee0f944dde6101424f352_77
  79. and then do Finish. And then what you do,

    Segment details4:19–4:21 · rev_16d5cf749a1ee0f944dde6101424f352_78
  80. you click on Laser, and then you click on

    Segment details4:22–4:25 · rev_16d5cf749a1ee0f944dde6101424f352_79
  81. Image View, which is the 4th tab. Then you

    Segment details4:25–4:28 · rev_16d5cf749a1ee0f944dde6101424f352_80
  82. click on Image and then go down. Should be

    Segment details4:29–4:31 · rev_16d5cf749a1ee0f944dde6101424f352_81
  83. there. It's not there.

    Segment details4:32–4:34 · rev_16d5cf749a1ee0f944dde6101424f352_82
  84. Oh, is that it? Is this it? What is this?

    Segment details4:36–4:39 · rev_16d5cf749a1ee0f944dde6101424f352_83
  85. But we saved it as Laser. This isn't what

    Segment details4:41–4:43 · rev_16d5cf749a1ee0f944dde6101424f352_84
  86. it looks like. It should be laser pew

    Segment details4:44–4:47 · rev_16d5cf749a1ee0f944dde6101424f352_85
  87. pew.png. So what,

    Segment details4:47–4:51 · rev_16d5cf749a1ee0f944dde6101424f352_86
  88. what did we just do? We changed it to this

    Segment details4:51–4:53 · rev_16d5cf749a1ee0f944dde6101424f352_87
  89. pic. Oh, we just changed it to a smaller

    Segment details4:53–4:56 · rev_16d5cf749a1ee0f944dde6101424f352_88
  90. ship. Wait, let's do run. So the ship

    Segment details4:57–5:00 · rev_16d5cf749a1ee0f944dde6101424f352_89
  91. is firing a bullet which is a smaller

    Segment details5:01–5:03 · rev_16d5cf749a1ee0f944dde6101424f352_90
  92. version of the ship. That'd be quite funny

    Segment details5:04–5:06 · rev_16d5cf749a1ee0f944dde6101424f352_91
  93. actually.

    Segment details5:06–5:06 · rev_16d5cf749a1ee0f944dde6101424f352_92
  94. Okay, let's have a look at this. This

    Segment details5:10–5:12 · rev_16d5cf749a1ee0f944dde6101424f352_93
  95. should be funny. Shoot.

    Segment details5:13–5:16 · rev_16d5cf749a1ee0f944dde6101424f352_94
  96. It's shooting a smaller ship. Okay, we

    Segment details5:16–5:19 · rev_16d5cf749a1ee0f944dde6101424f352_95
  97. don't want that. We want the laser, but

    Segment details5:19–5:22 · rev_16d5cf749a1ee0f944dde6101424f352_96
  98. for some reason— oh, there it is, laser

    Segment details5:22–5:23 · rev_16d5cf749a1ee0f944dde6101424f352_97
  99. pew pew.png. Okay, let's make it a bit

    Segment details5:23–5:26 · rev_16d5cf749a1ee0f944dde6101424f352_98
  100. bigger so

    Segment details5:27–5:31 · rev_16d5cf749a1ee0f944dde6101424f352_99
  101. you can actually see it. Okay, run.

    Segment details5:32–5:35 · rev_16d5cf749a1ee0f944dde6101424f352_100
  102. I don't know, it's a bit of a boring

    Segment details5:40–5:41 · rev_16d5cf749a1ee0f944dde6101424f352_101
  103. looking laser. We might look for something

    Segment details5:41–5:44 · rev_16d5cf749a1ee0f944dde6101424f352_102
  104. more interesting. Shoot. That's alright.

    Segment details5:44–5:47 · rev_16d5cf749a1ee0f944dde6101424f352_103
  105. It looks like a laser. Also, the laser's

    Segment details5:48–5:51 · rev_16d5cf749a1ee0f944dde6101424f352_104
  106. trajectory speed is kind of slow. I want

    Segment details5:52–5:54 · rev_16d5cf749a1ee0f944dde6101424f352_105
  107. it to go faster so it actually looks like

    Segment details5:55–5:56 · rev_16d5cf749a1ee0f944dde6101424f352_106
  108. a proper missile instead of like a slow

    Segment details5:56–6:00 · rev_16d5cf749a1ee0f944dde6101424f352_107
  109. motion thing. Okay, let's do view more.

    Segment details6:00–6:03 · rev_16d5cf749a1ee0f944dde6101424f352_108
  110. Aren't there any decent lasers?

    Segment details6:06–6:08 · rev_16d5cf749a1ee0f944dde6101424f352_109
  111. What else could we do? We could do like a

    Segment details6:10–6:12 · rev_16d5cf749a1ee0f944dde6101424f352_110
  112. fireball. Fireball would be cool.

    Segment details6:12–6:14 · rev_16d5cf749a1ee0f944dde6101424f352_111
  113. Fireball PNG pixel art.

    Segment details6:15–6:17 · rev_16d5cf749a1ee0f944dde6101424f352_112
  114. Also, what I want to do is replace that

    Segment details6:21–6:22 · rev_16d5cf749a1ee0f944dde6101424f352_113
  115. background with like a space background.

    Segment details6:22–6:24 · rev_16d5cf749a1ee0f944dde6101424f352_114
  116. Oh, this is nice. Look at this.

    Segment details6:25–6:26 · rev_16d5cf749a1ee0f944dde6101424f352_115
  117. Or we could have Okay,

    Segment details6:29–6:33 · rev_16d5cf749a1ee0f944dde6101424f352_116
  118. this, this is all rubbish. Let's look,

    Segment details6:33–6:34 · rev_16d5cf749a1ee0f944dde6101424f352_117
  119. let's get this one, and we'll

    Segment details6:35–6:39 · rev_16d5cf749a1ee0f944dde6101424f352_118
  120. download this as Fireball.

    Segment details6:39–6:42 · rev_16d5cf749a1ee0f944dde6101424f352_119
  121. And then do as we did before, drag it into

    Segment details6:44–6:49 · rev_16d5cf749a1ee0f944dde6101424f352_120
  122. supporting files,

    Segment details6:50–6:51 · rev_16d5cf749a1ee0f944dde6101424f352_121
  123. finish, change this to Fireball

    Segment details6:53–6:58 · rev_16d5cf749a1ee0f944dde6101424f352_122
  124. and make it nice and big. We'll have like

    Segment details6:58–7:02 · rev_16d5cf749a1ee0f944dde6101424f352_123
  125. a fireball shooting ship. Okay, that's

    Segment details7:03–7:05 · rev_16d5cf749a1ee0f944dde6101424f352_124
  126. Okay, start.

    Segment details7:11–7:12 · rev_16d5cf749a1ee0f944dde6101424f352_125
  127. Come on. Oh, that's nice. It's a bit big.

    Segment details7:15–7:17 · rev_16d5cf749a1ee0f944dde6101424f352_126
  128. Shoot. Also, when you press shoot, it's

    Segment details7:20–7:23 · rev_16d5cf749a1ee0f944dde6101424f352_127
  129. kind of coming out from the ship. I I want

    Segment details7:23–7:25 · rev_16d5cf749a1ee0f944dde6101424f352_128
  130. it to come out from the front of the ship,

    Segment details7:25–7:26 · rev_16d5cf749a1ee0f944dde6101424f352_129
  131. so we might have to go into the coding,

    Segment details7:27–7:30 · rev_16d5cf749a1ee0f944dde6101424f352_130
  132. which is— where was it?

    Segment details7:31–7:34 · rev_16d5cf749a1ee0f944dde6101424f352_131
  133. Where is that code? Here we go.

    Segment details7:35–7:38 · rev_16d5cf749a1ee0f944dde6101424f352_132
  134. So bullet.center equals cg.Point.make. So

    Segment details7:39–7:42 · rev_16d5cf749a1ee0f944dde6101424f352_133
  135. when you press shoot, it will appear at

    Segment details7:42–7:44 · rev_16d5cf749a1ee0f944dde6101424f352_134
  136. the ship.center.x, which is at 650, but

    Segment details7:45–7:47 · rev_16d5cf749a1ee0f944dde6101424f352_135
  137. that's a bit too low. I want it to be

    Segment details7:48–7:49 · rev_16d5cf749a1ee0f944dde6101424f352_136
  138. higher, so let's try 590.

    Segment details7:50–7:54 · rev_16d5cf749a1ee0f944dde6101424f352_137
  139. It must be an easier way to do this, but I

    Segment details7:54–7:56 · rev_16d5cf749a1ee0f944dde6101424f352_138
  140. don't know, so I'm randomly guessing.

    Segment details7:57–7:58 · rev_16d5cf749a1ee0f944dde6101424f352_139
  141. Okay, let's see where it comes out. Oh,

    Segment details8:00–8:02 · rev_16d5cf749a1ee0f944dde6101424f352_140
  142. that's a bit too forward. Let's try 620.

    Segment details8:02–8:05 · rev_16d5cf749a1ee0f944dde6101424f352_141
  143. 620 is— oh, that's just

    Segment details8:12–8:16 · rev_16d5cf749a1ee0f944dde6101424f352_142
  144. right, just right.

    Segment details8:16–8:17 · rev_16d5cf749a1ee0f944dde6101424f352_143
  145. Shoot. Okay, so we go left, we go left,

    Segment details8:20–8:22 · rev_16d5cf749a1ee0f944dde6101424f352_144
  146. we go right, we go right. Okay, what we

    Segment details8:22–8:25 · rev_16d5cf749a1ee0f944dde6101424f352_145
  147. want to do now is change this shitty

    Segment details8:25–8:27 · rev_16d5cf749a1ee0f944dde6101424f352_146
  148. background. Okay, let's go for it. What

    Segment details8:27–8:30 · rev_16d5cf749a1ee0f944dde6101424f352_147
  149. kind of background should we do? How about

    Segment details8:31–8:32 · rev_16d5cf749a1ee0f944dde6101424f352_148
  150. a space pixel art background?

    Segment details8:32–8:36 · rev_16d5cf749a1ee0f944dde6101424f352_149
  151. So how about something like this? This

    Segment details8:41–8:45 · rev_16d5cf749a1ee0f944dde6101424f352_150
  152. looks nice. No,

    Segment details8:45–8:48 · rev_16d5cf749a1ee0f944dde6101424f352_151
  153. I want more of like a pixel art kind of

    Segment details8:49–8:51 · rev_16d5cf749a1ee0f944dde6101424f352_152
  154. style.

    Segment details8:51–8:51 · rev_16d5cf749a1ee0f944dde6101424f352_153
  155. How about this? No.

    Segment details8:54–8:56 · rev_16d5cf749a1ee0f944dde6101424f352_154
  156. How about—

    Segment details8:58–9:02 · rev_16d5cf749a1ee0f944dde6101424f352_155
  157. hmm, something nice and simple,

    Segment details9:03–9:07 · rev_16d5cf749a1ee0f944dde6101424f352_156
  158. but not too simple. Let's change

    Segment details9:08–9:11 · rev_16d5cf749a1ee0f944dde6101424f352_157
  159. it to space retro pixel art.

    Segment details9:11–9:14 · rev_16d5cf749a1ee0f944dde6101424f352_158
  160. No, this isn't what I want.

    Segment details9:19–9:21 · rev_16d5cf749a1ee0f944dde6101424f352_159
  161. Okay, how about starry night sky pixel

    Segment details9:23–9:26 · rev_16d5cf749a1ee0f944dde6101424f352_160
  162. art?

    Segment details9:27–9:27 · rev_16d5cf749a1ee0f944dde6101424f352_161
  163. No, this one's too many stars.

    Segment details9:31–9:33 · rev_16d5cf749a1ee0f944dde6101424f352_162
  164. Uh, not really what I'm looking for. How

    Segment details9:37–9:39 · rev_16d5cf749a1ee0f944dde6101424f352_163
  165. about starry space pixel background?

    Segment details9:40–9:44 · rev_16d5cf749a1ee0f944dde6101424f352_164
  166. No, this one's quite nice, but there

    Segment details9:50–9:54 · rev_16d5cf749a1ee0f944dde6101424f352_165
  167. wouldn't be clouds in space, and we're

    Segment details9:54–9:56 · rev_16d5cf749a1ee0f944dde6101424f352_166
  168. supposed to be a spaceship.

    Segment details9:56–9:57 · rev_16d5cf749a1ee0f944dde6101424f352_167
  169. This one? It's a bit fancy.

    Segment details10:07–10:09 · rev_16d5cf749a1ee0f944dde6101424f352_168
  170. No, it's too, too much clutter.

    Segment details10:12–10:16 · rev_16d5cf749a1ee0f944dde6101424f352_169
  171. It would be hard to see the spaceship.

    Segment details10:16–10:18 · rev_16d5cf749a1ee0f944dde6101424f352_170
  172. How about— hold

    Segment details10:20–10:25 · rev_16d5cf749a1ee0f944dde6101424f352_171
  173. on. So let me go on to the next video.

    Segment details10:25–10:28 · rev_16d5cf749a1ee0f944dde6101424f352_172
  174. Um,

    Segment details10:35–10:35 · rev_16d5cf749a1ee0f944dde6101424f352_173
  175. how about we try nighttime pixel art

    Segment details10:40–10:43 · rev_16d5cf749a1ee0f944dde6101424f352_174
  176. I quite like this one.

    Segment details10:48–10:49 · rev_16d5cf749a1ee0f944dde6101424f352_175
  177. It's a bit big. No,

    Segment details10:51–10:54 · rev_16d5cf749a1ee0f944dde6101424f352_176
  178. no good.

    Segment details10:55–10:55 · rev_16d5cf749a1ee0f944dde6101424f352_177
  179. Or we could go for— no,

    Segment details10:59–11:04 · rev_16d5cf749a1ee0f944dde6101424f352_178
  180. the first one was best. Okay, let's go

    Segment details11:05–11:07 · rev_16d5cf749a1ee0f944dde6101424f352_179
  181. back. Space art background pixel.

    Segment details11:07–11:10 · rev_16d5cf749a1ee0f944dde6101424f352_180
  182. Hmm. No, this isn't

    Segment details11:15–11:18 · rev_16d5cf749a1ee0f944dde6101424f352_181
  183. what I want.

    Segment details11:18–11:19 · rev_16d5cf749a1ee0f944dde6101424f352_182
  184. What is this?

    Segment details11:24–11:25 · rev_16d5cf749a1ee0f944dde6101424f352_183
  185. Okay, let's try this. Let's just try this

    Segment details11:27–11:29 · rev_16d5cf749a1ee0f944dde6101424f352_184
  186. because I can't find anything better.

    Segment details11:29–11:32 · rev_16d5cf749a1ee0f944dde6101424f352_185
  187. So change this to space background and

    Segment details11:33–11:37 · rev_16d5cf749a1ee0f944dde6101424f352_186
  188. then bring— we

    Segment details11:37–11:40 · rev_16d5cf749a1ee0f944dde6101424f352_187
  189. need to bring that space background into—

    Segment details11:41–11:43 · rev_16d5cf749a1ee0f944dde6101424f352_188
  190. oops.

    Segment details11:43–11:43 · rev_16d5cf749a1ee0f944dde6101424f352_189
  191. Whoops-a-doozy. Let's bring this into

    Segment details11:46–11:47 · rev_16d5cf749a1ee0f944dde6101424f352_190
  192. Supporting Files.

    Segment details11:47–11:48 · rev_16d5cf749a1ee0f944dde6101424f352_191
  193. Just press Enter. Now go into

    Segment details11:51–11:53 · rev_16d5cf749a1ee0f944dde6101424f352_192
  194. Main.storyboard, and we shall do— now

    Segment details11:53–11:59 · rev_16d5cf749a1ee0f944dde6101424f352_193
  195. how do we change the background? We can do

    Segment details12:00–12:02 · rev_16d5cf749a1ee0f944dde6101424f352_194
  196. an ImageView,

    Segment details12:02–12:03 · rev_16d5cf749a1ee0f944dde6101424f352_195
  197. and then we change this to Where is it?

    Segment details12:06–12:10 · rev_16d5cf749a1ee0f944dde6101424f352_196
  198. Space background, right? Let me do this.

    Segment details12:11–12:14 · rev_16d5cf749a1ee0f944dde6101424f352_197
  199. Now we need to stretch it out. Oh, but

    Segment details12:14–12:17 · rev_16d5cf749a1ee0f944dde6101424f352_198
  200. it's covering everything. How do we send

    Segment details12:18–12:20 · rev_16d5cf749a1ee0f944dde6101424f352_199
  201. it backwards?

    Segment details12:20–12:20 · rev_16d5cf749a1ee0f944dde6101424f352_200
  202. Okay, so I don't know— whoops— don't

    Segment details12:25–12:30 · rev_16d5cf749a1ee0f944dde6101424f352_201
  203. know how to do this, guys. How do I get my

    Segment details12:31–12:33 · rev_16d5cf749a1ee0f944dde6101424f352_202
  204. ship and my game on top of background.

    Segment details12:34–12:41 · rev_16d5cf749a1ee0f944dde6101424f352_203
  205. Oh, I know, maybe if we delete this,

    Segment details12:41–12:44 · rev_16d5cf749a1ee0f944dde6101424f352_204
  206. select all of this,

    Segment details12:45–12:46 · rev_16d5cf749a1ee0f944dde6101424f352_205
  207. select all, copy, delete,

    Segment details12:50–12:53 · rev_16d5cf749a1ee0f944dde6101424f352_206
  208. and then we put in the image, ImageView

    Segment details12:54–12:57 · rev_16d5cf749a1ee0f944dde6101424f352_207
  209. space background.

    Segment details12:59–13:00 · rev_16d5cf749a1ee0f944dde6101424f352_208
  210. And then stretch this out.

    Segment details13:03–13:05 · rev_16d5cf749a1ee0f944dde6101424f352_209
  211. And what I want to do is paste, paste all

    Segment details13:11–13:14 · rev_16d5cf749a1ee0f944dde6101424f352_210
  212. that stuff back like this. Did it work?

    Segment details13:14–13:18 · rev_16d5cf749a1ee0f944dde6101424f352_211
  213. I don't think it worked.

    Segment details13:20–13:21 · rev_16d5cf749a1ee0f944dde6101424f352_212
  214. Wait, I can't even click this.

    Segment details13:30–13:31 · rev_16d5cf749a1ee0f944dde6101424f352_213
  215. Something's gone wrong. Something has gone

    Segment details13:31–13:34 · rev_16d5cf749a1ee0f944dde6101424f352_214
  216. terribly wrong because it's not

    Segment details13:34–13:37 · rev_16d5cf749a1ee0f944dde6101424f352_215
  217. responding.

    Segment details13:38–13:38 · rev_16d5cf749a1ee0f944dde6101424f352_216
  218. Oh, there we are. Let's see. Okay, put it

    Segment details13:47–13:50 · rev_16d5cf749a1ee0f944dde6101424f352_217
  219. all the way back there. Okay, so this

    Segment details13:51–13:54 · rev_16d5cf749a1ee0f944dde6101424f352_218
  220. might actually work. Put auto resizing,

    Segment details13:54–13:58 · rev_16d5cf749a1ee0f944dde6101424f352_219
  221. click all these. Okay, let's have a look.

    Segment details13:58–14:00 · rev_16d5cf749a1ee0f944dde6101424f352_220
  222. So hopefully we should have a nice ship,

    Segment details14:02–14:04 · rev_16d5cf749a1ee0f944dde6101424f352_221
  223. a nice fireball on a nice background. And

    Segment details14:04–14:07 · rev_16d5cf749a1ee0f944dde6101424f352_222
  224. then we have to like redesign these

    Segment details14:07–14:09 · rev_16d5cf749a1ee0f944dde6101424f352_223
  225. buttons because they look a bit boring.

    Segment details14:09–14:10 · rev_16d5cf749a1ee0f944dde6101424f352_224
  226. Build succeeded. Oh yes, my favorite,

    Segment details14:13–14:15 · rev_16d5cf749a1ee0f944dde6101424f352_225
  227. favorite.

    Segment details14:16–14:16 · rev_16d5cf749a1ee0f944dde6101424f352_226
  228. Words. Okay, start. We also have to

    Segment details14:22–14:25 · rev_16d5cf749a1ee0f944dde6101424f352_227
  229. design this start menu because it looks a

    Segment details14:25–14:27 · rev_16d5cf749a1ee0f944dde6101424f352_228
  230. bit— oh, look at that! That is amazing.

    Segment details14:27–14:29 · rev_16d5cf749a1ee0f944dde6101424f352_229
  231. Oh wait, but my start button isn't

    Segment details14:30–14:32 · rev_16d5cf749a1ee0f944dde6101424f352_230
  232. working. Oh, is that because— wait, okay,

    Segment details14:32–14:35 · rev_16d5cf749a1ee0f944dde6101424f352_231
  233. so because we deleted them all, we have to

    Segment details14:36–14:39 · rev_16d5cf749a1ee0f944dde6101424f352_232
  234. relink these buttons. Yeah.

    Segment details14:39–14:42 · rev_16d5cf749a1ee0f944dde6101424f352_233
  235. So what we do is drag bullet to bullet,

    Segment details14:43–14:47 · rev_16d5cf749a1ee0f944dde6101424f352_234
  236. fireball, exit to exit,

    Segment details14:48–14:51 · rev_16d5cf749a1ee0f944dde6101424f352_235
  237. ship to ship,

    Segment details14:53–14:54 · rev_16d5cf749a1ee0f944dde6101424f352_236
  238. shoot to shoot,

    Segment details14:56–14:58 · rev_16d5cf749a1ee0f944dde6101424f352_237
  239. start to start. Okay, it should work now.

    Segment details14:59–15:03 · rev_16d5cf749a1ee0f944dde6101424f352_238
  240. Come on.

    Segment details15:10–15:10 · rev_16d5cf749a1ee0f944dde6101424f352_239
  241. Oh yes, it works,

    Segment details15:13–15:16 · rev_16d5cf749a1ee0f944dde6101424f352_240
  242. guys! It looks pretty cool now, doesn't

    Segment details15:16–15:18 · rev_16d5cf749a1ee0f944dde6101424f352_241
  243. it? So I'm gonna have a look for a better

    Segment details15:19–15:20 · rev_16d5cf749a1ee0f944dde6101424f352_242
  244. background because this background's a

    Segment details15:21–15:22 · rev_16d5cf749a1ee0f944dde6101424f352_243
  245. bit— it doesn't really suit the theme of

    Segment details15:22–15:26 · rev_16d5cf749a1ee0f944dde6101424f352_244
  246. the ship. Damn, that fireball's so slow.

    Segment details15:26–15:29 · rev_16d5cf749a1ee0f944dde6101424f352_245
  247. Okay, let's just see if we can speed that

    Segment details15:30–15:31 · rev_16d5cf749a1ee0f944dde6101424f352_246
  248. fireball up. How do we do that?

    Segment details15:32–15:34 · rev_16d5cf749a1ee0f944dde6101424f352_247
  249. So bulletOnScreen equals bulletOnScreen

    Segment details15:36–15:38 · rev_16d5cf749a1ee0f944dde6101424f352_248
  250. plus 1, bulletMovement equals 7. What if

    Segment details15:38–15:40 · rev_16d5cf749a1ee0f944dde6101424f352_249
  251. we change that to like 25? That should

    Segment details15:40–15:43 · rev_16d5cf749a1ee0f944dde6101424f352_250
  252. speed up that flaming fireball.

    Segment details15:43–15:45 · rev_16d5cf749a1ee0f944dde6101424f352_251
  253. Boom! That's more like it, that is more

    Segment details15:51–15:53 · rev_16d5cf749a1ee0f944dde6101424f352_252
  254. like it. That is a real fireball.

    Segment details15:54–15:56 · rev_16d5cf749a1ee0f944dde6101424f352_253
  255. Look at that. It might be a bit too fast

    Segment details16:00–16:02 · rev_16d5cf749a1ee0f944dde6101424f352_254
  256. actually. Let's try 18. 18 sounds good,

    Segment details16:03–16:06 · rev_16d5cf749a1ee0f944dde6101424f352_255
  257. guys. Good guys, sound good?

    Segment details16:06–16:09 · rev_16d5cf749a1ee0f944dde6101424f352_256
  258. Good, good, good. All's good.

    Segment details16:09–16:11 · rev_16d5cf749a1ee0f944dde6101424f352_257
  259. Okay, start and shoot. That's more like

    Segment details16:16–16:18 · rev_16d5cf749a1ee0f944dde6101424f352_258
  260. it. Okay, so that's how I redesigned this

    Segment details16:19–16:22 · rev_16d5cf749a1ee0f944dde6101424f352_259
  261. game. I'm actually following this tutorial

    Segment details16:22–16:24 · rev_16d5cf749a1ee0f944dde6101424f352_260
  262. by someone called Matt Healy Apps. And his

    Segment details16:24–16:27 · rev_16d5cf749a1ee0f944dde6101424f352_261
  263. YouTube tutorials are really good on

    Segment details16:27–16:29 · rev_16d5cf749a1ee0f944dde6101424f352_262
  264. Xcode. I only started Xcode about a week

    Segment details16:29–16:31 · rev_16d5cf749a1ee0f944dde6101424f352_263
  265. ago, and I'm really getting used to all

    Segment details16:32–16:33 · rev_16d5cf749a1ee0f944dde6101424f352_264
  266. the coding and all the menus. So he's a

    Segment details16:34–16:36 · rev_16d5cf749a1ee0f944dde6101424f352_265
  267. really good teacher, and you should check

    Segment details16:37–16:39 · rev_16d5cf749a1ee0f944dde6101424f352_266
  268. him out if you're learning how to use

    Segment details16:39–16:40 · rev_16d5cf749a1ee0f944dde6101424f352_267
  269. Xcode. And I hope you enjoyed this video,

    Segment details16:40–16:42 · rev_16d5cf749a1ee0f944dde6101424f352_268
  270. and I'll see you next time.

    Segment details16:42–16:43 · rev_16d5cf749a1ee0f944dde6101424f352_269