Skip to main content

Project 26: Marble Maze

About 2 minSwiftiOSArticle(s)bloghackingwithswift.comcrashcourseswiftxcodeappstoreios

Project 26: Marble Maze 관련

Hacking with iOS – learn to code iPhone and iPad apps with free Swift tutorials

Learn Swift coding for iOS with these free tutorials – learn Swift, iOS, and Xcode

Project 26: Marble Maze

Respond to device tilting by steering a ball around a vortex maze.

Description

Respond to device tilting by steering a ball around a vortex maze.

Setting up | Hacking with iOS

Setting up
Loading a level: categoryBitMask, collisionBitMask, contactTestBitMask | Hacking with iOS

Loading a level: categoryBitMask, collisionBitMask, contactTestBitMask
Tilt to move: CMMotionManager | Hacking with iOS

Tilt to move: CMMotionManager
Contacting but not colliding | Hacking with iOS

Contacting but not colliding
Wrap up | Hacking with iOS

Wrap up

Need help?

I put together answers for over 600 of the most frequently asked questions I received from readers into one place: the Swift 5 Knowledge Base. It answers basic and advanced questions, and provides lots of free code you can re-use however you please. If you hit problems, try searching there first.

If you're still having problems, you can post to the Hacking with Swift subredditopen in new window where you can expect an answer fairly quickly, or you can find me on Twitteropen in new window where I'll do my best to help.


Project files

The project files for Hacking with Swift are all available on GitHub, where you can view them, fork them, or download them:

twostraws/HackingWithSwift
The project source code for Hacking with iOS.

이찬희 (MarkiiimarK)
Never Stop Learning.