Get YouTube subscribers that watch and like your videos
Get Free YouTube Subscribers, Views and Likes

Building a Game on an iPad with Swift Playgrounds | Rockets are Fun

Follow
JohnDav

In part one of this multipart Swift Playgrounds game build I'm laying the foundation for my new physicsbased game "Rockets Are Fun". In the video, I'm starting by creating a simple UI using SwiftUI, and then by using SpriteView I can inject a SpriteKit scene right into that main window.

Part 2 Adding Fuel Gauges with SwiftUI:    • Using SwiftUI's Built In Charts Featu...  

Now using inside of GameScene I'm able to build my physicsbased rocket game with SpriteKit. Today's video covers the steps to get the rocket moving by using taps on the screen to control rotation and velocity.

I also found a way to provide some visual feedback to the player through two mechanisms right now. First, a fuel particle is expelled from the rocket as it moves. Second I used Apple's spinnyNode from their game template file in SpriteKit to denote which type of tap was registered by the player.

In the next video I'll be adding a fuel resource, the ability for the rocket to shoot, and much much more. Get subscribed if you want to see how this game progresses over the next few weeks.

0:00 Setup a Swift Playgrounds project
1:02 Building a basic game UI in Swift Playgrounds
4:28 Giving the rocket physics and adding the ground
9:54 Controlling the Rocket with addImpulse through player taps
16:43 Adding Visual Feedback for player controls

//Things I've Made
ZER0ED: https://apps.apple.com/us/app/zer0ed/...
Shapes&Numbers: https://apps.apple.com/us/app/shapes...
My Website: https://www.johndav.com

//Affiliate Links To Gear I Use
MacBook: https://amzn.to/3q6y8wT
iPad Pro: https://amzn.to/37EZmol
Apple Pencil: https://amzn.to/3iba2gb
Camera: https://amzn.to/363IpDp
Lens: https://amzn.to/3iiLSAl
SM7B: https://amzn.to/3IjSclM

posted by Brutei8c