An open API service indexing awesome lists of open source software.

https://github.com/platane/yar-htzee

🎲🎲🥽 A pretty cool yahtzee game in augmented reality
https://github.com/platane/yar-htzee

8thwall augmented-reality game react-three-fiber yatzy

Last synced: 12 days ago
JSON representation

🎲🎲🥽 A pretty cool yahtzee game in augmented reality

Awesome Lists containing this project

README

        

# yAR-htzee

![type definitions](https://img.shields.io/npm/types/typescript?style=flat-square)
![code style](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)






A pretty cool yahtzee game in augmented reality.

[yAR-htzee](https://platane.github.io/yAR-htzee)

# Background

This game uses [8thwall](https://www.8thwall.com/products-web#world-tracking) SDK to achieve world tracking.

The dice are rendered with [three.js](https://github.com/mrdoob/three.js) using [react-three-fiber](https://github.com/pmndrs/react-three-fiber) and the physical world is simulated with [cannon.js](https://github.com/schteppe/cannon.js).

If the device does not support AR or 8thwall can't be loaded, the game runs without Augmented Reality.

# Install

```sh
bun install

# https://bun.sh/docs/installation
```

# Usage

```sh
bun dev
```

Be sure to have your 8thwall api key as env `VITE_XR8_API_KEY` . Or use a .env file. Or embed the app inside 8thwall sandbox.

## Tips

- [wireless debugging](https://medium.com/android-news/wireless-debugging-through-adb-in-android-using-wifi-965f7edd163a)

# Attribution

- ["Dice"](https://skfb.ly/6RtsC) by tnRaro is licensed under [CC BY 4.0](http://creativecommons.org/licenses/by/4.0/).
- ["Lebombo"](https://hdrihaven.com/hdri/?c=indoor&h=lebombo) by Greg Zaal is licensed under [CC0](https://creativecommons.org/share-your-work/public-domain/cc0/)
- Thanks [@dhaiduk](https://github.com/dhaiduk) for providing a 8thWall dev key for this demo !