Skip to content

Instantly share code, notes, and snippets.

View InyoungChang-ooh's full-sized avatar

InyoungChang-ooh

View GitHub Profile
@InyoungChang-ooh
InyoungChang-ooh / StarPlane.swift
Created October 24, 2025 17:11 — forked from JohnSundell/StarPlane.swift
A simple game written in SwiftUI. Note that this is just a fun little hack, the code is not meant to be taken seriously, and only works on iPhones in portrait mode.
// A fun little game written in SwiftUI
// Copyright (c) John Sundell 2020, MIT license.
// This is a hacky implementation written just for fun.
// It's only verified to work on iPhones in portrait mode.
import SwiftUI
final class GameController: ObservableObject {
@Published var plane = GameObject.plane()
@Published private(set) var clouds = [GameObject]()