Skip to content

BlueFinance/gamkin

 
 

Repository files navigation

button-clicker

button-clicker is a template for creating incremental games. It's built with HTML, CSS, and JavaScript.

The template was built with Parcel. The demo is hosted on remarkablegames.

Click the button.

Games

Games that use this template:

Prerequisites

Install

Clone the repository:

git clone https://github.com/remarkablegames/button-clicker.git
cd button-clicker

Rename the project:

git grep -l button-clicker | xargs sed -i '' -e 's/button-clicker/my-clicker/g'
git grep -l 'Button Clicker' | xargs sed -i '' -e 's/Button Clicker/My Clicker/g'

Update the files:

  • README.md
  • package.json
  • public/index.html
  • public/manifest.json

Install the dependencies:

npm install

Initialize a new repository:

rm -rf .git
git init

Make your first commit:

git add .
git commit -m 'feat: initialize game from button-clicker'

Commit messages follow the Conventional Commits format, which is used during release.

Once you're ready, push the local repository to GitHub (or another remote repository):

git remote add origin <remote-repository-url>
git push origin -u origin master

Environment Variables

Copy the environment variables:

cp .env.example .env

Update the Secrets in the repository Settings.

Available Scripts

In the project directory, you can run:

npm start

Runs the game in the development mode.

Open http://localhost:1234 to view it in the browser.

The page will reload if you make edits.

You will also see any errors in the console.

npm run build

Builds the game for production to the dist folder.

It correctly bundles in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

Your game is ready to be deployed!

Sources

Articles and diagrams that clarify idle game mechanics:

License

MIT

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.8%
  • HTML 12.1%
  • CSS 3.3%
  • Shell 0.8%