![Game Technology: SpriteKit](https://camo.githubusercontent.com/a41b00eec79fdf723a45684b2c9569c4702b000b077887d8a90dc32bb0bc7a87/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f47616d65253230546563686e6f6c6f67792d5370726974654b69742d707572706c65)
Draw shapes in SpriteKit while making a fun and tense slicing game
Steps to clean a new SpriteKit project.
- On
GameScene.sks
- Delete the Hello World
Node
- On
attributes inspector
from GameScene.sks
:
- Change the
anchor point
for X
:0 Y
:0.
- Change the size for W:1024 H:768 to match iPad
landscape
size.
Although there are iPads much bigger, SpriteKit
takes care of it, so don't worry about this size.
- Delete
Actions.sks
, move it to trash.
- On
GameScene.swift
- Delete the two properties
- Delete all the code inside
didMove(to:)
- Delete the other methods
The application was created in step-by-step, so if you want to look through each part, here are some tags that goes through the developing path.
Screenshot 01 |
![screenshot01](https://raw.githubusercontent.com/DreamFly6/SwiftyNinja/master/.screenshots/screenshot01.png) |
Screenshot 02 |
![screenshot02](https://raw.githubusercontent.com/DreamFly6/SwiftyNinja/master/.screenshots/screenshot02.png) |
Screenshot 03 |
![screenshot03](https://raw.githubusercontent.com/DreamFly6/SwiftyNinja/master/.screenshots/screenshot03.png) |
It is basically same status as before but now with the logic to be able to create enemies, and bombs their position, movement and velocity.
Screenshot 03 |
![screenshot03](https://raw.githubusercontent.com/DreamFly6/SwiftyNinja/master/.screenshots/screenshot03.png) |
Screenshot 04 |
![screenshot04](https://raw.githubusercontent.com/DreamFly6/SwiftyNinja/master/.screenshots/screenshot04.png) |
In this part the code is not compiling, so the status is basically as before with compile errors.
Screenshot 04 |
![screenshot04](https://raw.githubusercontent.com/DreamFly6/SwiftyNinja/master/.screenshots/screenshot04.png) |
Screenshot 05 |
![screenshot05](https://raw.githubusercontent.com/DreamFly6/SwiftyNinja/master/.screenshots/screenshot05.png) |