You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How can i make a xcode game for the web?

Hello community,

(please keep in mind, i know nothing about swift or xcode, that is why i am doing this)

I decided i would stop lazing around and make a game in xcode using sprite kit

I just do not know how to put it in the web

Here is a screenshot of what i am thinking i should do,

I want the answers to these 2 questions

How can i put a game in the web, (any tutorials, responses, or resources would help too)

How do i make a folder in xcode, (a regular folder, not like a swift folder, just confused)

Thanks, MoronX

(sort of like games on "itch.io" or online games that are relevant to that)- Edit


Posted on Nov 6, 2022 6:19 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 6, 2022 7:55 AM

MoronX wrote:

How can i put a game in the web, (any tutorials, responses, or resources would help too)


You can’t. Apps using GameKit are not web-based, and the resulting games are distributed through the Apple App Store.


how do i make a folder in xcode, (a regular folder, not like a swift folder, just confused)


Xcode uses both folders and groups for organizing source code and assets and such, and the distinction and the choice can be subtle. There aren’t “Swift folders”, though there can be groups or folders filled with Swift source code files.


(sort of like games on "itch.io" or online games that are relevant to that)- Edit


That’s usually different tooling. i haven’t looked at what games on itch.io might be using. (I’d assume those use JavaScript or Web Assembly. Common game engine choices include Unity, Godot, and Unreal. I’ve looked at Unity, and it’s bigger than Xcode. And very capable.



More generally…


AAA-sized games are massive undertakings. Years of work, and dozens and variously hundreds of talented folks.


Smaller Apple Arcade -sized games are still large investments of time and skills and staff.


Here? You’re stymied by groups and folders. (That’s not intended as derogatory, either! I still have to think about that distinction myself.) For your first few app development projects, I’d suggest aiming a little lower. A little more constrained. We all started not knowing this stuff too, and it takes a while to build up to the experience and knowledge required.


Build your knowledge of programming, and of a programming language. Start smaller with your projects and tooling, too. Use Swift Playgrounds, for instance, and not the juggernaut that is Xcode.


Trying to learn programming, and learn Swift, and learn Xcode, and write a game, is… more than I’d suggest at once, more than I’d be able to do at once, and I’ve been at this a while.


Put differently, programming works by dividing up big problems into smaller problems, and incrementally and iteratively designing and testing and solving solving each of the smaller problems and then building up to solving the big problem. Nobody builds a (functional) orbital rocket on the first go. Everybody iterates.


Paths to learn more can include college, or widely-available online classes, or otherwise. Stanford has online programming classes (including CS193p), as do other schools. But right now, I'd suspect that CS193p is probably more than you want to tangle with, so I’ll point to the Apple Swift materials and Playgrounds: Swift Playgrounds - Apple


I’d be… stymied… if I had to learn programming and Swift and Xcode and game physics and state machines and the rest all in one go… Start smaller. Learn Playgrounds, and learn Swift. Then learn SpriteKit or whatever. Build up.

2 replies
Question marked as Top-ranking reply

Nov 6, 2022 7:55 AM in response to MoronX

MoronX wrote:

How can i put a game in the web, (any tutorials, responses, or resources would help too)


You can’t. Apps using GameKit are not web-based, and the resulting games are distributed through the Apple App Store.


how do i make a folder in xcode, (a regular folder, not like a swift folder, just confused)


Xcode uses both folders and groups for organizing source code and assets and such, and the distinction and the choice can be subtle. There aren’t “Swift folders”, though there can be groups or folders filled with Swift source code files.


(sort of like games on "itch.io" or online games that are relevant to that)- Edit


That’s usually different tooling. i haven’t looked at what games on itch.io might be using. (I’d assume those use JavaScript or Web Assembly. Common game engine choices include Unity, Godot, and Unreal. I’ve looked at Unity, and it’s bigger than Xcode. And very capable.



More generally…


AAA-sized games are massive undertakings. Years of work, and dozens and variously hundreds of talented folks.


Smaller Apple Arcade -sized games are still large investments of time and skills and staff.


Here? You’re stymied by groups and folders. (That’s not intended as derogatory, either! I still have to think about that distinction myself.) For your first few app development projects, I’d suggest aiming a little lower. A little more constrained. We all started not knowing this stuff too, and it takes a while to build up to the experience and knowledge required.


Build your knowledge of programming, and of a programming language. Start smaller with your projects and tooling, too. Use Swift Playgrounds, for instance, and not the juggernaut that is Xcode.


Trying to learn programming, and learn Swift, and learn Xcode, and write a game, is… more than I’d suggest at once, more than I’d be able to do at once, and I’ve been at this a while.


Put differently, programming works by dividing up big problems into smaller problems, and incrementally and iteratively designing and testing and solving solving each of the smaller problems and then building up to solving the big problem. Nobody builds a (functional) orbital rocket on the first go. Everybody iterates.


Paths to learn more can include college, or widely-available online classes, or otherwise. Stanford has online programming classes (including CS193p), as do other schools. But right now, I'd suspect that CS193p is probably more than you want to tangle with, so I’ll point to the Apple Swift materials and Playgrounds: Swift Playgrounds - Apple


I’d be… stymied… if I had to learn programming and Swift and Xcode and game physics and state machines and the rest all in one go… Start smaller. Learn Playgrounds, and learn Swift. Then learn SpriteKit or whatever. Build up.

How can i make a xcode game for the web?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.