Magnes is NES (Nintendo Entertaiment System) emulator written in Magelang.
This project is in WIP state.
To compile this game, you must first install the Magelang compiler.
-
Before installing Magelang, make sure you have the following tools installed:
-
Installing magelang compiler
# At the time of writing this project, Magelang has not been officially released.
# The game was compiled using Magelang with this commit ID: aa6460315e276a25263eb56b3ff558a03273f9e6.
# Use this commit ID to install Magelang to ensure version compatibility.
cargo install \
--git https://github.com/jauhararifin/magelang.git \
--rev aa6460315e276a25263eb56b3ff558a03273f9e6 \
magelang
# Verify the installation
magelang --version
- Run the build script
# Clone the flappybird repository
git clone https://github.com/jauhararifin/magnes.git
cd magnes
# Execute the build script:
bash ./build.sh
After running this script, you should see a ./build
directory in your current working directory, containing all the files required to run the game.
Checkout ./build/platform/web/
directory to run it on the web.
- Serve the build directory using an HTTP server. You can use the
http-server
package from NPM for this purpose.
npx http-server ./build/platform/web/ -p 8080
- Open your browser and navigate to https://localhost:8080.
Checkout the demo here.