jesselawson / pinia-clicker-game

A demo that shows one way you can use Pinia to manage game state for incremental games.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pinia Clicker Demo

(Article link coming soon).

This is a demo that shows one way you can use Pinia to manage game state for incremental games.

I've found that Pinia is a great way to manage state in experiences crafted with Vue, and by leveraging types from Typescript, you can create a fairly robust relationship between your game's state and how you present it.

Running the demo

Play it online

Link coming soon.

Run it in a local dev environment

  1. Clone the repo.
  2. npm install
  3. npm run dev

Architecture

Vue, Vite, Pinia for state management, and TypeScript.

About

A demo that shows one way you can use Pinia to manage game state for incremental games.


Languages

Language:Vue 45.8%Language:TypeScript 34.8%Language:CSS 14.9%Language:HTML 4.5%