How to Build your first iOS Game in 10 minutes using Cursor AI
13:08

How to Build your first iOS Game in 10 minutes using Cursor AI

Alex Finn 18.10.2024 25 908 просмотров 656 лайков обн. 18.02.2026
Поделиться Telegram VK Бот
Транскрипт Скачать .md
Анализ с AI
Описание видео
Leave a like and subscribe if you learned anything! Follow my X: https://x.com/AlexFinnX Subscribe to my newsletter: https://www.1percentbetter.io/subscribe I'm going to show you how to build an iOS game that can easily be made in 15 mins with AI! No programming experience necessary! Beginner friendly! We use Xcode, Cursor to build the game for iOS. You can then use these skills to build any application or game you want. Timestamps: 0:00 Intro 0:24 Install 0:35 Xcode 1:04 Cursor 2:16 Prompt 3:10 Building 5:04 The Spaceship 6:20 Lasers 7:13 Enemies 10:04 Game Over 11:15 Scoreboard 12:16 Gameplay Cursor: https://www.cursor.com/ Xcode: https://developer.apple.com/xcode/

Оглавление (12 сегментов)

  1. 0:00 Intro 99 сл.
  2. 0:24 Install 37 сл.
  3. 0:35 Xcode 111 сл.
  4. 1:04 Cursor 299 сл.
  5. 2:16 Prompt 251 сл.
  6. 3:10 Building 480 сл.
  7. 5:04 The Spaceship 323 сл.
  8. 6:20 Lasers 223 сл.
  9. 7:13 Enemies 699 сл.
  10. 10:04 Game Over 265 сл.
  11. 11:15 Scoreboard 264 сл.
  12. 12:16 Gameplay 202 сл.
0:00

Intro

I'm going to show you in under 10 minutes how to build your very first iOS game and we're going to do it all with AI no programming experience necessary all you're going to need to build this app is xcode and cursor AI I want to build a SPAC shooting game make the spaceship Sprite detailed and look realistic give it wings and make it look cool all right that's sick AI made these ships I didn't design any of these ships I think they look pretty cool this is a game I would play so starting off
0:24

Install

download xcode it's in the Mac App Store search xcode download this it's free this is what allows you to build iOS apps and games super easy download that once that's good to go in here open
0:35

Xcode

it up this is the menu you'll see we're going to choose game cuz we're going to be building a sick iOS space shooting game choose game we hit next we're going to call it space shooter game hit next on that give yourself an organization identifier and then go ahead and create a folder that we can put this game in I'm naming mine space shooter game I select that folder it creates the game we are good to go boom now we have our Bas game up and running you can see that here now we're going to actually build the game the tool we're going to use to
1:04

Cursor

build the game is called cursor AI it is the absolute sickest AI programming tool on planet Earth go to cursor. comom download for free get that set up we'll move on to the next step once you got cursor open this is the screen you're going to see what we're going to do first is we're going to open up the folder we just created xcode so we can edit it with AI so I'm going to hit open folder find the folder you just created with xcode hit open on that and then boom We got this open up in cursor we're going to start building the game out in cursor it's going to show up this is connected to xcode so any code that's written in here by AI is going to show up an xcode so that we can run the game so this is cursor this is where we can build out our code it might look complex at first I'm going to make this really simple for you over on the left hand side's all your code for the game you can open up the folders you can see all the files again you don't need to know code so this is fine what we're going to do is we're going to open up the composer the composers are AI tool that will change everything for us this will make it super easy to build our game you hit command shift I that opens the composer this allows us to talk to the code make sure we know what you want to type in is at codebase this makes so the context of what it's building is all our code so it can just write all the code for us and then we're
2:16

Prompt

going to write our first prompt of what we want it to build so we're going to tell the AI and we're doing this all in plain English again you don't need any technical knowledge for this so here's the prompt we're going to do I want to build a space shooting game let's do this step by step first want to put a spaceship on the screen get rid of any code we don't need and just put a spaceship Sprite on the screen make the spaceship Sprite detailed and look realistic give it wings and make it look cool so basically what we're doing is we're working with the AI here we're going step by step with the AI we want to make it as simple as possible for the AI so we're saying get rid of any code we don't need let's put a spaceship on the screen let's make it look cool and what we're going to do from here is we're going to do it step by step make it simple and build out a really cool game this is how you program with AI you don't try to one shot and say make a space shooter game enter right what you want to do is you want to go step by step keep it simple one it makes it more fun because you can make the game as detailed as you want but to it makes it easier for the AI to understand what you
3:10

Building

want so once we put this prompt in we're going to hit enter and the AI is going to start working for us it's going to start building out our game it's going to do exactly what we asked it to do so our little AI employee is going to go certainly let's start by modifying the game scene and it's going to start building out the Sprite it's going to get rid of any code we don't need it's going to put the spaceship in our assets folder it's doing all the work for us it's making it super simple you're going to hit accept on this once you hit accept on that it's going to take the code the AI built and actually put it into xcode so now this is up to date with all the new code for your game and so what we can do here in xcode is actually hit that play button this is going to bring up a simulator that will run our game so I'm going to hit play here I'm going to pull over the simulator that just popped open and wow look at this okay so it still says hello world so it didn't get rid of all the code we don't need but if you look here there's a spaceship down here what okay so I click and it moves the spaceship around the yellow is just from uh my screen recording software but it's moving the spaceship around where I'm clicking that spaceship looks pretty cool it's even giving a little wiggle right it's sitting there it's wiggling back and forth I like that it makes it look realistic this is a goodlook spaceship now let's start building this out let's keep going so let's go back into cursor and let's keep working here first let's get rid of that hello world so I like that it still says can show you how to debug things so we just go to Ai and I'm going to say it still says hello world on the screen can you get rid of that again plain English giving commands telling it what's wrong and it's going to figure it out I hit enter on that it apologizes to me I apologize for the confusion I love when my AI apologizes to me and then it's building some code to get rid of that hello world so let's accept that I pull open X code again I exited out of the simulator I'm going to press play again let's replace it and it's going to build out our game for us I pull open the simulator boom there we go doesn't say hello world anymore our spaceship is there I can move it around that's sick okay so now let's move on to the next steps I'm thinking what we do
5:04

The Spaceship

is next steps we make it so that the spaceship can shoot right maybe we make it so that when I'm holding down the screen the spaceship starts firing missiles forward so let's do that so I open up cursor again let's go in here so I'm going to tell the AI I want to make it so when I'm holding down on the screen and moving the ship around it auto fires it should be shooting lasers to the top of the screen automatically again just telling in plain English exactly what I want hit enter it's going to start building out all the code for me what you can see in the left hand side is the code as it's writing it this would take hours to do if I was writing this code manually it's doing it all automatically for us which is so sick saving us so we've already saved hours of time here in the first few minutes which is amazing so here's what it's going to do it's going to add a bunch of states for us it's going to add the lasers it's going to fire make sure it's firing when we hit when we're touching the screen I hit accept all let's pop open xcode again and test this out I hit the play button I'm going to replace it let's pop this open and see what we got okay so we got the spaceship and don't mind the yellow circle again that's just my screen recording software but it's Auto shooting that's sick okay so we got the lasers I think the one thing I want to do is let's make it so the lasers are a little bigger and fire a little faster I want the laser to be a little bigger and fire a little faster so let's just quickly make that change I want the lasers so I told it I
6:20

Lasers

change I want the lasers so I told it a little bigger and shoot a little faster that's going to write out the code for us so it's going to adjust again you can make these little tiny adjustments with your AI you can say I want this a little bit bigger move this over here change this color whatever you want you can customize this game any way you want that's the most fun part about this at the end of the day is you're truly the artist right I always loved to create stuff but I'm a terrible artist I draw terribly now I can be an artist because of AI I can create the games I can make it whatever I want even though I stink at Art and I can't draw I'm building cool games exactly the way I want to build them so I hit accept all let's pop open xcode again let's hit the play button again let's replace it that builds out game loads oh yeah now that's looking good you can see the lasers clearly they're shooting very quick I like that next we got to get some enemies on the screen huh let's make this fun so we can kill some enemies with our spaceship I'm going back in cursor this is so easy
7:13

Enemies

we're only a few minutes in and we got a pretty good functioning game already this is the power of AI in just a couple minutes we actually have a pretty sick game going okay so I told the AI let's add some enemies to our screen add evil looking spaceships that come from the top of the screen I want them looking evil make them as Det detailed as our ship and make them fly at us hit enter it's going to start building out that code our enemy ships that we can start killing off here certainly it's add some enemy spaceships in our game we'll create a new function generate enemies and make them look detailed and have them move towards the player ship all right this is going to be sick it's building out all the code it's building out the paths the spaceship's going to go on for us it's going to create a bunch of them so they all flying toward us and it's going to spawn the enemies all again hundreds of lines of code here being written for us we didn't have to do a damn thing I had accept all I can't wait to see this update this is going to be a sick update are you excited to see this if you're excited to see what these enemy ships look like make sure you hit like down below subscribe as well all I do is make cool videos showing you how to build apps with AI no programming experience at all and then also let me know down in the replies what apps you want me to build next every app I build is based on user feedback let's go back into xcode let's hit the play button let's replace that our game pops open our spaceship is going all right we get any ships oh there there's the first ship okay so we can't kill anything but it's coming at us the spaceships are coming at us all right I like that all right let's do this let's go back in I think there's two things I want to fix here I want to make it so the spaceships come quicker so they come at you more so there's more spaceships and that they die when we shoot them I want to make them disappear when our lasers hit them so let's do this let's first make it so more spaceships are coming at a quicker pace so I go back into cursor I'm telling the AI make it so enemy spaceships spawn sooner and come at me more often also make sure they make it all the way to the bottom of the screen I want to make this a little bit more challenging so the AI is going to make those tweaks for us it's fixes very simple to do here again I've only written like four sentences and we have an entire playable game so far I take a sip of my coffee by the time I'm done with that sip of coffee all the lines of code are already written for us we're going to hit accept on that let's pull open X code again let's hit that play button every time I I feel like I'm opening a gift on Christmas I'm getting a little bit more functionality in our game it's very exciting here we go okay more SP oh they're already dying to the lasers all right that's sick it automatically knew we wanted to kill them with the lasers uh that's awesome okay this is cool I think what we need to add next is we need to make this a little bit more of a game we got to add a score to our screen o I like that I also shed out the AI these ships look pretty cool right the AI made these ships I didn't design any of these ships I think they look pretty cool this is a game I would play Let's go back into cursor I want to make it before we add a score let's make it so the game can end
10:04

Game Over

if a spaceship makes it to the bottom of the screen we want to make it so we can lose this game as well if a spaceship makes it to the bottom of the screen make it so we lose have a message pop up in Red Letters okay if a spaceship makes it to the bottom of the screen make it so we lose have a message pop up in red letters that says game over I want to make it so we can lose I want to add a little risk to the game make it a little bit more fun so it's adding to the game a game over screen that happens when the spaceship makes it to the bottom of the screen it's writing out that code it's checking for collisions it's checking for game over this is as simple as it gets right here updates the game and then spawns and stops spawning enemies once we lose let's accept that let's go back in all right let's hit the play button and see what we got here let's see what this looks like let's replace it it's loading up the simulator oh here we go okay oh wow oh let's kill that spaceship all right kill that spaceship let's see if it ends the game when it gets to the bottom Boom game over oh that's sick and it flashes too that looks nice wow we got a pretty solid setup so far let's go let's add we got now we add the scoreboard now we got to add the
11:15

Scoreboard

scoreboard look at these spaceships man these are goodlooking spaceships at ai is our artist man these are AI knows how to build some cool looking stuff let's do this let's go let's add the scoreboard let's go back in all right so I said I want to add a scoreboard to the top right make it so that every time I kill a spaceship the score goes up by one now it's a game now we can track the high scores now we can see how well we're doing now when we put this on our phone we can give it to our friends to play and see if we can beat them in this game this is going to be sick let's do this so the AI is working for us it's building the code it's generating the logic we're not we're just sitting here we're doing nothing we're just relaxing while our AI employee does all the work for us it's right in the code certain let's add a scoreboard to the top right of the screen increment the score each time the enemy spaceship's destroyed we'll modify the game to file to implement the feature here are the changes it's adding the changes adding a score label this is going to be sick except here we go pop open X code let's hit that play button again let's replace that I can't wait to see now we're actually playing the game now we got a score here we go we're loading up the simulator all right so scores in top
12:16

Gameplay

right killed one I'm three okay so it's got the score it works now I can just play this with my friends I can play the game load this up on my iPhone goes to my hand this to my friend see if I can beat them if I beat them I Style on them I dance on them I can prove once and for all I'm better than all my friends this is really sick think about it you now have the ability to impress all your friends show them that you can build apps AI is letting you look like a brainiac now right before you had to be a genius to build this stuff now you can do it all yourself if you enjoyed this video If you learned anything in this video make sure to hit like subscribe and let me know in the replies what else you want me to build if show you how in next videos to ship this in the App Store so anyone can buy it off the app store and you can start making money off it let me know down below as well and I'll see you in the next video

Ещё от Alex Finn

Ctrl+V

Экстракт Знаний в Telegram

Транскрипты, идеи, методички — всё самое полезное из лучших YouTube-каналов.

Подписаться