A classic Pong game built in ActionScript 3, featuring human and AI-controlled paddles. The game logic is implemented in a modular fashion using controllers, models, and views.
This project includes a precompiled MyPong.swf file that can be played directly in the browser using the Ruffle Flash emulator.
You can play this game directly in your browser via GitHub Pages:
π Play MyPong
Since modern browsers no longer support the Adobe Flash Player, this project uses Ruffle, a Flash Player emulator written in Rust.
To enable playback of the .swf file on GitHub Pages:
- Download the latest
ruffle_web_selfhostedbundle (chooseruffle_web_selfhostedzip). - Extract the contents and copy the following files into your repository's root directory:
ruffle.jsruffle.wasm
- Create an
index.htmlfile in your root directory with the following contents:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>MyPong</title>
<script src="ruffle.js"></script>
</head>
<body>
<h1>MyPong</h1>
<p>A simple Pong game made with AS3</p>
<div id="game">
<embed src="MyPong.swf" width="550" height="400">
</div>
</body>
</html>- Commit and push your changes to GitHub.
- In your repository settings, enable GitHub Pages:
- Go to
Settings>Pages - Choose the root of the main branch (
/ (root)) - Save and wait a few moments
- Go to
Now your game should be playable via your GitHub Pages URL!
MyPong/
βββ MyPong.swf # Compiled SWF file
βββ src/ # Source code in ActionScript 3
β βββ MyPong.as # Main entry point
β βββ Controlers/ # Startup and game control logic
β βββ Models/ # Game configuration and player logic (AI/Human)
β βββ Views/ # Ball, field, and paddles
βββ .as3_classpath # AS3 classpath configuration
βββ .project # Project metadata for FDT
βββ README.md # You're reading it!
Created by Frank Vlatten
Happy retro gaming! πΉοΈ