Giter Site home page Giter Site logo

m4-4-react--effects's Introduction

Workshop: Cookie Clicker

This workshop challenges you to build an idle game.

An idle game is a game that involves very little active gameplay, and mostly a lot of waiting around for resources to grow. The most famous example of an idle game is cookie clicker, so we'll create a simple clone of that game.

The game features a cookie that can be clicked; every click yields 1 cookie. You can use cookies to buy resources that purchase cookies automatically for you.

Here's a finished working demo:

working demo


Exercise 1: Finishing the UI

Open this exercise file: exercise-1.md

Exercise 2: Adding State

Open this exercise file: exercise-2.md

Exercise 3: Passive cookie generation

Open this exercise file: exercise-3.md

Exercise 4: Updating the Tab Title

Open this exercise file: exercise-4.md

Exercise 5: Using the "space" Key

Open this exercise file: exercise-5.md


๐ŸŸก - Minimally complete workshop (75%) - ๐ŸŸก

Exercise 6: Focusing the first store item on mount

Open this exercise file: exercise-6.md

Exercise 7: Custom hooks

Open this exercise file: exercise-7.md


๐ŸŸข - Complete workshop (100%) - ๐ŸŸข

Exercise 8: Increasing cookies per click

Open this exercise file: exercise-8.md

Exercise 9: Increased pricing

Open this exercise file: exercise-9.md

Exercise 10: Add whimsy

Open this exercise file: exercise-10.md

m4-4-react--effects's People

Contributors

joshwcomeau avatar scottanthonymorin avatar splashley 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.