Skip to content

How to make a mod or pull request

Repeat edited this page Dec 7, 2022 · 7 revisions

So, you want to modify Cool Fighting Game. Well, good for you! I'll just let you know how to do so.

Step 1: Fork the Github. See that little button on the top saying "Fork"? Yep, go press that, and make a fork of the game. This is probably the easiest step.

Step 2: Find the places you want to modify. If you're here to modify the html (which doesn't do much other than run and display the JavaScript), go to index.html. If you want to edit or add graphics, go to module.js (which I only separated from script.js to make the scroll bar not as big, and to make it a bit easier for y'all to modify). If you want to modify or add anything else, then go to script.js.

Step 3: Modify away! You can look throughout the wiki as to how to do different things, but in general, you can modify or add anything you'd like, as long as the engine (and Processing/JavaScript, of course) allows. I recommend coding on Replit, since that's what I use for coding the original game, but you are able to code on Github itself if you don't want to set up a repl.co page.

(Optional Step 4: Make a Pull Request) If you're looking to see your change in-game, you can make it happen with a Pull Request (if I approve of it, of course). You can just look up how to do that, I won't explain it here.

Important starting links:

Clone this wiki locally