Skip to content

Instantly share code, notes, and snippets.

View AaronO's full-sized avatar

Aaron O'Mullan AaronO

View GitHub Profile
@AaronO
AaronO / GameScene.swift
Created December 4, 2022 00:21
GPT-Pong's code, created by ChatGPT, fixed by AaronO
import SpriteKit
import AVFoundation
class GameScene: SKScene {
// Create a ball node
let ball = SKShapeNode(circleOfRadius: 10)
// Create player paddles
let player1 = SKShapeNode(rectOf: CGSize(width: 10, height: 50))
let player2 = SKShapeNode(rectOf: CGSize(width: 10, height: 50))