Skip to content

ArcaneCircle/tiny-yurts

 
 

Repository files navigation

Tiny Yurts

Game icon

A web game inspired by Dinosaur Polo Club's Mini Motorways

How to play

  • Touch or left click and drag to build paths between your yurts and farms to keep the animals happy!
  • You get points for your total number of settlers (2x your number of yurts), plus a point for each animal.
  • Landscape is highly recommended for mobile.

Tech used

Tips & Tricks

(Click to show - minor spoilers)

  • You can build paths while the game is paused, if you need a little more time to think.
  • You can delete the path that comes with the starting farm!
  • Paths cannot be build over water, so to connect a fish farm you have to join a path to the end of the stepping stones.
  • Distance is the most important factor when determining how well a yurt can cope with a farms demands.
  • You don't have to connect every yurt!
  • You can send your settlers through other farms. If the farm is of a different type, it won't interfere at all, however if it's a farm of the same type, the settlers are more likely to head there than travel through it to the further away one.
  • Your settlers may get stuck at farms if they have no way home. You'll have to re-build a path for them to get back to their own yurt before they can help out again.
  • Diagonal paths use fewer path tiles to go a further distance, but because they are further, it will take settlers longer to get to their destinations for the same number of grid-cells traversed.
  • Farms have a "needyness" based on the animal type, times the number of animals minus 1, times a subtle difficulty-over-time curve. For example a farm with two adult oxen and one baby, will have 2 × [ox demand number] × [difficulty scaling].
  • Farms issue capacity is based of the total number of adults, times 3. For example a farm with two adult oxen and one baby, will have 2 (adults) × 3 = 6 capacity, which is represented by the two starting (!) and then 4 segments in the pop-up issue indicator. This means you have to deal with farms with only two adults quickly!

Contributing

Installing Dependencies

After cloning this repo, install dependencies:

pnpm i

Checking code format

pnpm check

Testing the app in the browser

To test your work in your browser (with hot reloading!) while developing:

pnpm start

Building

To package the WebXDC file:

pnpm build

To package the WebXDC with developer tools inside to debug in Delta Chat, set the NODE_ENV environment variable to "debug":

NODE_ENV=debug pnpm build

The resulting optimized .xdc file is saved in dist-xdc/ folder.

Releasing

To automatically build and create a new GitHub release with the .xdc file:

git tag -a v1.0.1
git push origin v1.0.1

About

Connect the yurts to the farms!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.9%
  • HTML 0.1%