Skip to content

Instantly share code, notes, and snippets.

View mintuz's full-sized avatar
🎯
Focusing

Adam Bulmer mintuz

🎯
Focusing
View GitHub Profile
@mintuz
mintuz / SwiftChartPong.swift
Created July 11, 2022 15:10 — forked from dduan/SwiftChartPong.swift
Pong Game implemented with Swift Charts.
import SwiftUI
import Charts
import Combine
import Foundation
final class GameState: ObservableObject {
struct Player {
var position: Int
var halfSize: Int = 150