Skip to content

My WWDC 2017 Scholarship submission. Pong, developed using Swift Playground. Contains graphical elements, sounds, fireworks, ...

Notifications You must be signed in to change notification settings

iOlivier/Swift-Playground-Pong-2.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Swift Playground: Pong

This project contains my WWDC 2017 Scholarship submission.

Pong V2.0

My Swift Playground is a tribute to Pong, a very old computer game. I gave this vintage game a fresh new look with visual effects. While playing the game, the borders of the field change when the ball touches them. This also triggers a sound. On every scored goal, fireworks will be presented to the player who scores the point.

Technology

  • SpriteKit: I used SpriteKit and it’s features to develop this wonderful 2D game. I used SKShapeNodes with CategoryBitMasks to detect if my objects collided.
  • SpriteKit Particle Emitter: When a user scores a goal, I use the particle emitter to play the stunning fireworks.
  • AVAudioPlayer: This allows me to play a sound when the ball touches one of the borders or when playing fireworks.
  • Touch: By implementing the override functions touchesBegan, touchesMoved and touchesEnded I was able to implement multi touch on my Playground.
  • Threads: I play sounds and special effects in a separate thread to make the app more fluent.

About

My WWDC 2017 Scholarship submission. Pong, developed using Swift Playground. Contains graphical elements, sounds, fireworks, ...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages