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!
Pre-requisities
- npm (6.5 or higher)
- esy (version 0.5.7):
npm install -g esy@0.5.7
- Follow additional platform-specific instructors:
- VSCode +
reason-vscode
extension (Recommended)
Setup
git clone http://github.com/davesnx/dinosaur
cd dinosaur
esy install
esy build
esy run
<-- That will popup a window where the game runs!
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.
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