Project Name
Fencing Club
Group Members
Jaixi Pan, Sam Kingston, Leanna Barwick
Project Description
Based on the book “Fencing”, Fencing Club is a 1-3 player online game, built using p5.js and Pubnub. Players practice fencing technique, competing to improve speed, accuracy and sword handling skills.
Gameplay is viewed on a shared screen. Phones are used as real fencing foils. Optional “foil handle” phone holder accessory can be fabricated using the downloadable 3D printing file.
Players start and learn fencing moves on the welcome page; en garde (accesses phone’s gyroscope, scores how the phone is angled in stillness), lunge (accesses phone’s accelerometer, scores how fast the phone is thrust outwards), and parry (accesses phone’s accelerometer, scores how fast the phone is withdrawn towards the body). Foils for mobile devices and the game area are also accessed here.
Entering the game area, a ten second countdown starts. When the timer completes, one fencing movement appears in green (the other two in red), a new four second timer starts, and players perform the green highlighted movement, receiving a real-time score based on their performance. This repeats in a succession of five rounds of randomly selected movements, after which the game is over, and the winner is displayed, based on who has the highest total score.
Project Development
Prototype for game area
3D printed fencing foil handle phone holder accessory
Video: testing the code for the mobile phone fencing foil
https://vimeo.com/363362608
Network Diagram
Final Work
fencing foil handle phone holder accessory
Mobile phone navigated to Player 1 fencing foil
En Garde! title screen
Game area screen
Links to Code
https://github.com/Leanna-B/fencing-club
Links to Working Files
Fencing Club Welcome Page
Fencing Club Game Area
Fencing Club Player 1 Foil
Fencing Club Player 2 Foil
Fencing Club Player 3 Foil