Skip to content

aheze/SwiftUICraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftUICraft

Minecraft but made with SwiftUI.

  • 100% SwiftUI. No SceneKit, SpriteKit, or anything else.
  • Powered by Prism, a lightweight 3D renderer for SwiftUI.
  • Place and destroy 20+ blocks.
  • Supports liquid physics with water and lava.
  • Works in both landscape and portrait mode.
  • Includes 3 levels to choose from.
  • Auto-saves your progress.
  • LASERS!
SwiftUICraft.mp4

Level 1

Level 2

Level 3

Lasers

Level 1 in portrait mode Level 2 in portrait mode

Main menu

Community

Author Contributing Need Help?
SwiftUICraft is made by aheze. All contributions are welcome. Just fork the repo, then make a pull request. Open an issue or join the Discord server. You can also ping me on Twitter. Or read the source code — there's lots of comments.

I thought SwiftUI was for making buttons and VStacks and other stuff!

Yes. No one said you couldn't make it 3D though :)

How does it work?

Perspective transforms. All the 3D functions are wrapped in my Prism library which I released last month.

Is it 100% SwiftUI?

Yep, literally 100%. No UIKit, SceneKit, SpriteKit, etc.

License

MIT License

Copyright (c) 2022 A. Zheng

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Promotional graphic

Not affiliated with Minecraft or Microsoft or anything. This was just a weekend project — if there's any copyright stuff or whatever that you'd like me to change, just message me.

Releases

No releases published

Languages