Welcome to the CS Club Game Showcase! This project is meant to be a way for us to create cool JavaScript games and share them with everyone else in the club. Follow the instructions below to contribute your own game to the showcase.
View the current project here: https://unt-csce-club.github.io/CSCE-community-game/
-
Fork the Repository
First, fork the repository to make a new repo. Then clone it to your local machine using the following command:
git clone YOUR_FORK_URL
-
Create Your Game Folder
Create a new folder for your game inside the project directory. Name the folder according to your game, preferably with a descriptive name. For example, I named mine
aaron_snake. This is where you'll code your game. -
Add Your Level
In the
gameMenu.jsfile located at the root of the project, locate themenuLevelsarray inside thesetMenu()function. Here, you'll find Level objects describing other game levels. Add a new object for your game in the following format:new Level("level title", "author", "date", "href"),
Make sure that the
hreffield points to your game's HTML file. Ex: For Snake, the href ishref="./aaron_snake/index.html"Note: make sure you add the.at the beginning, otherwise when the page is deployed it'll route to the wrong file. -
Example Code
View some example code in the examples folder if you aren't sure how to get started. The examples outline Kaboom.js, an easy to learn library that is more streamlined for game dev than vanilla JavaScript.
-
Commit and Push Your Changes
After adding your game folder and updating the level HTML, commit your changes and push them to the repository.
git add .
git commit -m "Added [Your Game Name] level"
git push origin main-
Submit a Pull Request
Finally, submit a pull request to merge your changes into the main branch. We will review your contribution and merge it if everything looks good. Congratulations! Your game is now part of the showcase.