SwiftUI Games Save

Collection of simple demos of SwiftUI + SceneKit games

Project README

SwiftUI-Games (WIP)

Collection of simple demos of SwiftUI + SceneKit games

TestFlight Beta (iOS 16+)

Design

  • Pure SwiftUI at any cost. Zero UIKit 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

MinimalDemo MinimalDemo

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 without UIKit
  • Hitscan helper

TBSGame TBSGame

TogetherGame (WIP)

Simple arcade. Control two nice balls, catch all of bad ones

  • SceneRendererDelegate hack without UIKit for renderer(renderer, updateAtTime) (SceneKit each-frame-callback similar to update() from Unity)
  • SCNPhysicsContactDelegate hack without UIKit
  • In-game Timer hack
  • GCVirtualController, each stick moves one ball. Simpliest implementation, check DarkGame for cool cross-platform SuperController code (WIP)

TogetherGame

DarkGame (WIP)

Simple arcade. Control ball, loot and run. The Spirit will light your way

  • SceneRendererDelegate hack without UIKit for renderer(renderer, updateAtTime) (SceneKit each-frame-callback similar to update() from Unity)
  • SCNPhysicsContactDelegate hack without UIKit
  • Keyboard, real gamepad or GCVirtualController control in one place called SuperController (WIP, not working)

DarkGame DarkGame

JumpGame

Ugly Doddle Jump clone with SceneKit and SwiftUI

DarkGame

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

swiftui-games-logo

Icon is generated by a neural network, btw!
Open Source Agenda is not affiliated with "SwiftUI Games" Project. README Source: damikdk/SwiftUI-Games
Stars
47
Open Issues
0
Last Commit
1 year ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating