Giter Site home page Giter Site logo

remarkablegames / button-clicker Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 6.0 1.64 MB

๐Ÿ”˜ Button clicker

Home Page: https://remarkablegames.org/button-clicker

License: MIT License

HTML 10.79% CSS 3.01% TypeScript 86.20%
clicker-game idle-game incremental-game game web button clicker remarkablegames button-clicker-game javascript

button-clicker's Introduction

button-clicker

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

Play the demo.

The template is built with:

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
  • index.html
  • package.json
  • 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

Set the environment variables:

less .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:5173 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

button-clicker's People

Contributors

dependabot[bot] avatar mergify[bot] avatar remarkablemark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.