The project is a redevelopment of the original arcade game using the original sprite sheets. Developed by Alexandro Kavroulaki, Niko Xenaki, Antonio Katsaraki for Game Development Course.
You can find a gameplay video in the following link
- CMake
- vcpkg
- Follow the instructions to install vcpkg using PowerShell.
- Ensure the
VCPKG_ROOTenvironment variable is set.
Using PowerShell:
# Install dependencies
vcpkg install
# Configure with vcpkg toolchain
cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake"
# Build
cmake --build build --config Release --target ALL_BUILD -j 14The game resources are copied to the build directory. To run the game, navigate to the executable's directory:
cd build/Release
./1942-arcade-game.exeYou can compile the game to WebAssembly to run it in a web browser.
Live Demo: The game is automatically deployed to GitHub Pages on every push!
Visit: https://[your-username].github.io/1942-Arcade-Game/
# Clone the Emscripten SDK
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
# Install and activate the latest SDK
.\emsdk install latest
.\emsdk activate latest
# Activate PATH and other environment variables in the current terminal
.\emsdk_env.bat# Navigate to the web directory
cd web
# Run the build script
.\build.batThis will create:
build-wasm/game.html- Main HTML filebuild-wasm/game.js- JavaScript glue codebuild-wasm/game.wasm- WebAssembly binarybuild-wasm/game.data- Embedded game resources
Start a local web server:
cd build-wasm
python -m http.server 8000Then open your browser to: http://localhost:8000/game.html
Note: WebAssembly files must be served over HTTP (not opened directly from the filesystem) due to browser security restrictions.
The game automatically deploys to GitHub Pages via GitHub Actions. To set up:
-
Enable GitHub Pages:
- Go to your repository Settings → Pages
- Under "Source", select "GitHub Actions"
-
Push your changes:
git add . git commit -m "Add WebAssembly build and GitHub Pages deployment" git push
-
Wait for deployment:
- Check the Actions tab to see the build progress
- Once complete, your game will be live at:
https://[your-username].github.io/1942-Arcade-Game/
The deployment workflow automatically:
- Installs Emscripten
- Downloads dependencies (RapidJSON)
- Compiles the game to WebAssembly
- Deploys to GitHub Pages