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: bf61fb3cdda14f762614f3017553d3c584fac9f3.
# Use this commit ID to install Magelang to ensure version compatibility.
cargo install \
--git https://github.com/jauhararifin/magelang.git \
--rev bf61fb3cdda14f762614f3017553d3c584fac9f3 \
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 http://localhost:8080.
Checkout the demo here.