Warning: This is a work in progress!
This repository contains the code required to run Coin Pusher 2000 in Electron. This project mainly contains the Rapier.rs binding needed to run the game.
-
Install Git if not already installed, cf. https://git-scm.com/
-
Intall Node.js if not already installed, cf. https://nodejs.org/en/download
-
Install Rust if not already installed, cf. https://www.rust-lang.org/tools/install
-
Install Python (required for native module compilation):
- macOS:
brew install python3or download from https://www.python.org/ - Windows: Download from https://www.python.org/ or
winget install Python.Python.3 - Linux:
sudo apt install python3 python3-dev(Ubuntu/Debian) or equivalent
- macOS:
-
Install build tools:
- macOS:
xcode-select --install(Command Line Tools) - Windows: Install Visual Studio Build Tools or Visual Studio Community
- Linux:
sudo apt install build-essential(Ubuntu/Debian) or equivalent
- macOS:
-
Run the following commands to clone the project, install its dependencies, and build it
git clone --recursive https://github.com/gildas-lormeau/coin-pusher-2000-electron.git
npm install
npm run buildLaunch the following command to run the game.
npm startLaunch the following command to run the game.
npm run packageIf you encounter build errors:
- Make sure Rust is properly installed:
rustc --version - Ensure Python is available:
python3 --version - On macOS, make sure Xcode Command Line Tools are installed
- On Windows, ensure Visual Studio Build Tools are installed
- Try clearing node modules:
rm -rf node_modules package-lock.json && npm install