• Stars
    star
    115
  • Rank 305,916 (Top 7 %)
  • Language
    CSS
  • Created about 5 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Virtual pet game

Tamagotchi

An html game inspired by Tamagotchi the handheld digital pet

Development

Setup

Install dev dependencies

~ npm i

Figma

The figma designs are consolidated into a single page called "Rig"

Within the page, groups follow a naming convention to encapsulate what svg shapes will be animated with css e.g.

with the group name rigHands:armatures:rotate all the child shapes of this group can be targeted for animating with the css selector .armature-right-hand.armature-rotate

The page is exported from Figma to assets/rigFull.svg and then converted to docs/svg.js by running

~ node ./scripts/pack.js

Game

The game script is in docs/script.js and can played by opening docs/index.html in a browser

To see live stats append ?debug to the url