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

  Рет қаралды 14,044

JohnDav

JohnDav

Күн бұрын

In part one of this multipart Swift Playgrounds game build I'm laying the foundation for my new physics-based 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 ...
Now using inside of GameScene I'm able to build my physics-based 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: apps.apple.com/us/app/zer0ed/...
Shapes&Numbers: apps.apple.com/us/app/shapes-...
My Website: www.johndav.com
//Affiliate Links To Gear I Use
MacBook: amzn.to/3q6y8wT
iPad Pro: amzn.to/37EZmol
Apple Pencil: amzn.to/3iba2gb
Camera: amzn.to/363IpDp
Lens: amzn.to/3iiLSAl
SM7B: amzn.to/3IjSclM

Пікірлер: 18
@J-Life
@J-Life Жыл бұрын
I have been using my iPad pro to develop normal apps, but now I really want to try my hand on game dev also😁 great inspiration!
@John-Dav
@John-Dav Жыл бұрын
Game Dev can be a lot of fun. Swift Playgrounds is great for prototyping and small games I've had a lot of fun with it. :)
@J-Life
@J-Life Жыл бұрын
@@John-Dav cant wait for part 2!
@fatih8087
@fatih8087 Жыл бұрын
Hi John, I love your videos. I am a student and I have started learning Swift as a hobby. However, there are not enough sources available in my native language. Additionally, my English level is not perfect, so I cannot understand every single English source except for your videos. When I watch them, I clearly understand. This is actually a gift for me. Thank you so much :)
@John-Dav
@John-Dav Жыл бұрын
So happy my videos are helpful. Love to hear that!
@wisdomandtruth
@wisdomandtruth 22 күн бұрын
There are very little videos on playgrounds app building on YT, I tried to follow along but sadly you do not explain why you do what you do and I am just a beginner so thank you for making this video and would you consider making a beginner tutorial one day?
@skulling4893
@skulling4893 Жыл бұрын
Where do you learn all this, im trying hard to learn to make games on swift playgrounds since i do so happen to have an iPad Pro with a Magic Keyboard so the setup is quite the same… but i never understand anything, the templates doesn’t seem to help and this is the only app available on iPadOS that is made for quote on quote “game developpement”. Do you know any learning course i could start following to start learning to code.
@John-Dav
@John-Dav Жыл бұрын
While I've learned a lot from KZfaq channels like Paul Hudson, Sean Allen and others, most of my learning has come from completing small projects like the one in this video. I set out with an idea "Make a game with a rocket ship that is controlled by SpriteKit's physics engine using player touch as an input" Then I start working. Sometimes this could be with pen and paper to rough out the idea, then maybe a little code to get things moving. Every time I hit a road block its back to the internet to do more learning. This could be googling a specific question, reading Apple's documentation on a specific framework or function, or watching a KZfaq tutorial on a topic. Sometimes I just bang my head against my keyboard when nothing works until my wife tells me to go to bed. That's all to say - I really can't recommend any specific learning course - but what I can recommend is that you start small. Make a tiny game. Follow a tutorial or build video like this one and try to replicate it (or better yet - make it your own). Hope this helps & thanks for watching!
@skulling4893
@skulling4893 Жыл бұрын
@@John-DavWow thats quite surprising to have such feedback. But really thank you and keep up the good work 💪👏
@Middyman43
@Middyman43 4 ай бұрын
After the “if location.x > 100 + taco.position” the rocket thrusters i keep getting an error saying can’t convert cgpoint to expected cgfloat
@John-Dav
@John-Dav 4 ай бұрын
You probably need to do taco.position.x since the location.x. Just a guess tho.
@user-zv4yb1nt4s
@user-zv4yb1nt4s 5 ай бұрын
can i make a 3D game with 3D characters i make in swift playgrounds or any another app on ipad ?
@John-Dav
@John-Dav 5 ай бұрын
I doubt Swift Playgrounds can handle 3d game development. It’s pretty basic and limited.
@Editwithhim
@Editwithhim 3 ай бұрын
Hey sir can i purchase i pad to learn python and start learning basic programming as i havent budget for pc or laptopp
@John-Dav
@John-Dav 3 ай бұрын
Yes an iPad could handle this. But a cheap laptop would also be able to write simple scripts and may be a bit easier to use as the iPad is kind of limited due to iPadOS. Given the choice I’d buy a computer to do this. But if I had access to an iPad I’d make it work without spending additional money. Hope that helps
@KCc-hk1yb
@KCc-hk1yb 6 ай бұрын
HOW did you get dark mode on the app???
@SpicyBeef12
@SpicyBeef12 3 ай бұрын
set your ipad to dark mode
Using SwiftUI's Built In Charts Feature in Swift Playgrounds!
28:50
Build your first SwiftUI app with Swift Playgrounds 4 for iPad
38:21
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 97 МЛН
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 12 МЛН
I Created A Mobile App Using These Simple Tools!
10:48
Simon Grimm
Рет қаралды 638 М.
Making iPad Apps... on the iPad!
6:45
Rene Ritchie
Рет қаралды 88 М.
Swift Playgrounds: A Promising Start For Hobby Developers
4:57
I tried coding on my iPad for 7 days
7:25
Adrian Twarog
Рет қаралды 1,7 МЛН
Make an app with an iPad and Swift Playgrounds 4
26:58
Anyone Can Code
Рет қаралды 33 М.
Why Does Scrum Make Programmers HATE Coding?
16:14
Thriving Technologist
Рет қаралды 505 М.
Make Video Games
44:12
Pirate Software
Рет қаралды 1 МЛН
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 1,7 МЛН
Simple maintenance. #leddisplay #ledscreen #ledwall #ledmodule #ledinstallation
0:19
LED Screen Factory-EagerLED
Рет қаралды 31 МЛН
Klavye İle Trafik Işığını Yönetmek #shorts
0:18
Osman Kabadayı
Рет қаралды 1,6 МЛН
Самый дорогой кабель Apple
0:37
Romancev768
Рет қаралды 343 М.
Easy Art with AR Drawing App - Step by step for Beginners
0:27
Melli Art School
Рет қаралды 11 МЛН