Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.4 KB

README.md

File metadata and controls

47 lines (36 loc) · 1.4 KB

Simple HTML5 (Typescript + PixiJS) Farm Game

Minimal functionality:

  • farm field 8x8
  • farm-cell can be one of: corn, chicken, cow or empty

Item properties:

  • corn grows for 1 each 10 seconds
  • with corn you can feed chicken or cow
  • 1 corn feed chiken for 30 seconds
  • 1 corn feed cow for 20 seconds
  • if feeded chicken generates 1 egg each 10 seconds
  • if feeded cow generates 1 milk each 20 seconds
  • you can sell milk and egg

Game properties:

  • render each item
  • ability to place items on the field
  • feed and generation bars (progress)

Install node modules (Recommended NodeJS version v16)

npm i

Run webpack dev server

npm run serve

Open browser at http://localhost:8866

Assets

src-texture folder refers to Free Texture Packer