SwiftUI-Games
SwiftUI-Games (WIP)
Collection of simple demos of SwiftUI + SceneKit games
TestFlight Beta (iOS 16+)
Design
- Pure
SwiftUI
at any cost. ZeroUIKit
imports - Full Apple-crossplatform. Playable on
iOS
,macOS
. (tvOS
later) - Only modern APIs, zero legacy support.
iOS 16+
- Zero dependencies
- Zero projectiles. I hate projectiles
Goals
- Formulate some clean and simple architecture for Apple-crossplatform
SwiftUI
+SceneKit
projects - Collect all the bad hacks in the world
Why it's so messy?
- I made it
- SwiftUI is young and raw
- APIs and project itself is constantly changing
MinimalDemo
Simple SCNScene with ball and some SwiftUI overlay
TBSGame (WIP)
Setup for turn based strategy with Field, Teams and Heroes with unique Abilities.
- In-scene tap and drag gesture hack without
UIKit
SceneRendererDelegate
hack withoutUIKit
- Hitscan helper
TogetherGame (WIP)
Simple arcade. Control two nice balls, catch all of bad ones
SceneRendererDelegate
hack withoutUIKit
forrenderer(renderer, updateAtTime)
(SceneKit
each-frame-callback similar toupdate()
from Unity)SCNPhysicsContactDelegate
hack withoutUIKit
- In-game
Timer
hack GCVirtualController
, each stick moves one ball. Simpliest implementation, checkDarkGame
for cool cross-platformSuperController
code (WIP)
DarkGame (WIP)
Simple arcade. Control ball, loot and run. The Spirit will light your way
SceneRendererDelegate
hack withoutUIKit
forrenderer(renderer, updateAtTime)
(SceneKit
each-frame-callback similar toupdate()
from Unity)SCNPhysicsContactDelegate
hack withoutUIKit
- Keyboard, real gamepad or
GCVirtualController
control in one place calledSuperController
(WIP, not working)
JumpGame
Ugly Doddle Jump clone with SceneKit and SwiftUI
Roadmap
Current tasks are here
- Temple Run clone
- Clash of Clans/Warcraft simple clone with some buildings
- Heroes Editor
- Some Battle Royal
- Simple dialog system
Broken things (by Apple or me)
- Some transitions and animations
Icon is generated by a neural network, btw!
Языки
Swift