This repo contains all the source code and assets for CmSpeedrunner's game Pixel Railfight. It is set up in a way so that you can easily mod it from the getgo.
Dependencies:
- NPM (install:
curl -qL https://www.npmjs.com/install.sh | sh
) - Electron (install:
npm install --save-dev electron
) - Electron Packager (install:
npm install electron-packager --save-dev
)
Building:
- Download this repo
git clone https://github.com/relic374/pixel-railfight
cd
intopixel-railfight/PixelRailfight/
- Unzip
node_modules.zip
If you want to create a windows app:
electron-packager . pixelrailfight-mod --platform=win32 --asar --overwrite
If you want to create a MacOS app:
electron-packager . --overwrite --platform=darwin --arch=x64 --prune=true --out=release-builds --asar
If you want to create a Linux app:
electron-packager . pixel-railfight-mod --overwrite --asar --platform=linux --arch=x64 --prune=true --out=release-builds
NOTE: If you get an error about your architecture/arch, replace the x64
in --arch=x64
with your computer's architecture
- Getting_Started.md - Guide for getting started if you wanted to create what this repo has from scratch (obsolete, I paraphrased it above)
- File_Refference - Explainations of what every code##.js file contains
To be added:
- How to edit main.js
- How to switch/replace textures
- What the global modifiers at the top of
data.js
do
Download the game here
Over time I will be adding more guides
I have created a project named Hydro that easily backages electron apps. It's useful for building your mods. It is located on this github.
(Disclaimer: I got permission from the creator to upload this)