Welcome to Shane's Games! This repository contains the source code for Shane's Games website and most of the games featured on the platform.
Shane's Games is a collection of small browser games and projects created by Shane Bonkowski. The goal of this project is to provide a platform for sharing and playing free fun games while also promoting collaboration and open-source contributions.
Main-Website-Assets
, index.html
, and about.html
: Contain the source code for Shane's Games main website.games
: Contains the source code for all the games featured on Shane's Games.Shared-General-Assets
: Helper functions and assets accessed by the games and the main website.I welcome contributions from the community to improve and expand Shane's Games. If you have ideas, suggestions, or bug reports, please feel free to open an issue ticket. Additionally, I encourage pull requests for new features, bug fixes, and enhancements.
To contribute:
main
branch.I believe in the power of open source and collaboration. All games featured on the platform are open source, allowing anyone to modify, enhance, and contribute to the codebase. I encourage developers of all skill levels to get involved.
All code should be formatted according to the formatter / formatting guidelines described below for a given language. For documentation, please document all functions and files within reason! It not only is great for crediting yourself as an author of any files or functions you have created, but also makes it much easier for others to build upon your work in the future.
For Python, the black
formatter is used in order to enforce PEP-8 formatting.
For Python, the documentation style from Numpy is used. In addition, type hints from the typing
library are used. It looks as follows:
def add(number1: int, number2: int) -> int:
"""
This function adds two numbers together.
Parameters
----------
number1 : type
Description of number1.
number2 : type
Description of number2.
Returns
-------
int
The sum of number1 and number2.
"""
return number1 + number2
For JavaScript, html, and css the Prettier - Code Formatter
is used.
For JavaScript, the documentation style JSDoc is used. It looks as follows:
/**
* Calculates the sum of two numbers.
*
* @param {number} num1 - The first number.
* @param {number} num2 - The second number.
* @returns {number} The sum of num1 and num2.
*/
function calculateSum(num1, num2) {
return num1 + num2;
}
prettier
and black
formatter extensions in VSCode. Be sure to select the verified extensions from the trusted sources (Prettier
and Microsoft
respectively)!Settings
and at the top search bar type @lang:{language name} Default Formatter
for each language mentioned above. e.g. @lang:html Default Formatter
, @lang:JavaScript Default Formatter
, etc.black
for Python, and Prettier
for JavaScript, html, and css.