🦖 Chrome "No internet connection" Dinosaur game, build with Revery.
  • Reason 98.9%
  • Shell 1%
  • Dune 0.1%
Find a file
2019-06-04 19:28:41 +02:00
.ci Add collisions 2019-05-27 02:40:33 +02:00
assets Add clouds 2019-05-29 23:30:51 +02:00
docs docs: Add gif 2019-05-31 09:58:20 +02:00
esy.lock fix: Change name 2019-05-30 15:13:36 +02:00
lib fix: Improve linting warnings 2019-06-04 19:27:59 +02:00
.gitignore fix: Change name 2019-05-30 15:13:36 +02:00
App.opam Add collisions 2019-05-27 02:40:33 +02:00
Assets.re refactor: Lint files 2019-05-30 17:32:09 +02:00
azure-pipelines.yml fix: Change name 2019-05-30 15:13:36 +02:00
Constants.re refactor: Lint files 2019-05-30 17:32:09 +02:00
Dino.re fix: Improve linting warnings 2019-06-04 19:27:59 +02:00
dune Remove useless binaries 2019-05-30 00:11:44 +02:00
dune-project Add collisions 2019-05-27 02:40:33 +02:00
js.json feat: Capacity to compile it to JS 2019-06-04 19:28:41 +02:00
LICENSE Add collisions 2019-05-27 02:40:33 +02:00
package.json feat: Add linting 2019-05-31 09:25:18 +02:00
README.md docs: Add gif 2019-05-31 09:58:20 +02:00

Dinosaur game build with Revery

The main idea of this repo was to learn Revery and native ReasonML.

The code is based on the Workshop made by the Revery's team at React Europe 2019 (@brianphelps, @wokalski & @rauanmayemir).

It consisted on create a Flappy Bird clone revery-ui/revery-workshop. I turn it into the famous Chrome "No internet connection" Dino game!

Run it locally

Pre-requisities

Setup

  1. git clone http://github.com/davesnx/dinosaur
  2. cd dinosaur
  3. esy install
  4. esy build
  5. esy run <-- That will popup a window where the game runs!

Roadmap

or things that you could do to learn and improve the game

  • Refactor anything!
  • Add horizontal speed incrementation
  • Add enemies gap decrementation
  • Add unit tests with rely https://reason-native.com/docs/rely/
  • Add Dark mode
  • Add another kind of enemy: "therodactiles". Google Chrome dinosaur game have therodactiles that flies against the dinosaur when you cross 500 points.

License

MIT License

Disclamer

All the assets comes from some dribble that I downloaded ages ago. Don't know the source, I just created the animation of the Dino :D