An open-source project to contribute to and share simple browser games built with HTML, CSS and JavaScript.
Welcome to Small Browser Games!
This is an open-source project to contribute to and share simple browser games built with HTML, CSS and JavaScript.
You don't have to be a programming expert. Beginners are welcome too!
YouTube Video: [How to Contribute to Open Source on GitHub (Beginner Friendly) | Fork, Clone & Pull Request]
Here are the games people have shared so far. Pick any and have fun!
| Game | Made by | Play |
|---|---|---|
| Matrica | @astyurrr | Play |
| Guess Number Game | @it4chiuchiha | Play |
| Tic-Tac-Toe | @sabirhusseinbalal | Play |
| Schnake | @wiredkonst 1st contributor | Play |
Any simple browser game. For example:
These are just a few examples. Come with your own ideas!
You can also make a Snake, an arcade game, or something completely different.
Simply tell people how to play your game and which controls and devices it will run on.
Keep files optimized to ensure nice loading of games. Please do not include ads, malicious code, covert tracking etc which can compromise visitors or the website.
AI tools are acceptable as well. Just be sure that you know what you're sending.
Your first contribution doesn't have to be perfect. We can work through improvements together!
Read the rules.
Many thanks to all who have supported this project!
We wish to be a friendly and respectful community.
Please read our Code of Conduct.
This project is shared under the MIT License.
Like the project? Give it a star on GitHub ⭐.
Guess Number: layout breaks on phones
https://github.com/sabirhusseinbalal/sabirhusseinbalal.github.io/issues/15
Labels: bug, good first issue, easy
Tic-Tac-Toe: board overflows on small phones
https://github.com/sabirhusseinbalal/sabirhusseinbalal.github.io/issues/14
Labels: bug, good first issue, easy
Tic-Tac-Toe: “Already Filled!” hides whose turn it is
https://github.com/sabirhusseinbalal/sabirhusseinbalal.github.io/issues/13
Labels: bug, good first issue, easy
Game idea: Simple Quiz
https://github.com/sabirhusseinbalal/sabirhusseinbalal.github.io/issues/12
Labels: enhancement, help wanted, good first issue
Game idea: Reaction Speed Test
https://github.com/sabirhusseinbalal/sabirhusseinbalal.github.io/issues/11
Labels: enhancement, help wanted, good first issue
Game idea: Memory Card Game
https://github.com/sabirhusseinbalal/sabirhusseinbalal.github.io/issues/10
Labels: enhancement, help wanted, good first issue
Game idea: Rock Paper Scissors
https://github.com/sabirhusseinbalal/sabirhusseinbalal.github.io/issues/9
Labels: enhancement, help wanted, good first issue
Hey! Thanks for wanting to add your game here.
This project is created for people who like to create and share games. Don't need to be an expert. Simply come up with an idea and try it out!
Every game must be:
These are the usual rules for game contributions:
HTML, CSS and JavaScript.Click the Fork button at the top right of this page.
On your fork, click the green Code button and copy the link.
Then run this in your terminal (use your own username):
git clone https://github.com/your-username/sabirhusseinbalal.github.io.git
cd sabirhusseinbalal.github.io
git switch -c add-your-game-name
For example: git switch -c add-memory-game
You probably have an older version of Git. Use this instead:
git checkout -b add-your-game-name
Create a folder, using your GitHub username and your game name:
games/your-username/your-game-name/
By default, put these three files inside:
index.html
style.css
script.js
Open index.html in your browser and test your game.
games/
└── your-username/
└── your-game-name/
├── index.html
├── style.css
└── script.js
A few naming things:
number-guess.index.html, style.css, app.js, or anything in data/).our game page should have:
<title>. It is used as the name for the game on the website.<head>, so it works on phones:You can start from this:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Game Name</title>
<meta name="description" content="">
<!-- Supported devices: desktop, mobile, or desktop, mobile -->
<meta name="game:platforms" content="">
<!-- Controls: keyboard, mouse, touch -->
<meta name="game:controls" content="">
<!-- Add game tags, separated by commas -->
<meta name="game:tags" content="">
<!-- Optional: GitHub issue number for game likes -->
<meta name="game:likes-issue" content="">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>My Game Name</h1>
<!-- Your game goes here -->
<h2>How to play</h2>
<p>Write the controls here.</p>
<script src="script.js"></script>
</body>
</html>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
git add .
git commit -m "Add memory game"
git push origin add-your-game-name
Go to your fork on GitHub. Click Compare & pull request, fill in the form, and send it. I'll review it and reply.
In a pull request discuss a few lines about:
Rules are here to keep things safe and running smoothly, not to stop good ideas.
Broke a rule? Don't panic!
Perhaps, you need an additional image, sounds, even more files, or a bit more space. Simply write the reason in your PR.
If you are doing a project that I like, it's safe and will not cause problems for people who visit the site, I might make an exception. I may also help compress or optimize your assets.
Don't abandon a good idea because it does not meet all the guidelines. :3
One thing, however, never is okay – harmful code, malware, data stealing and unwanted tracking.
I will review your game and let you know if anything is amiss.
Please don't feel bad if I give you suggestions f