This repository contains a clone of the popular game "Flappy Bird". It was built using the Phaser 3 game framework and JavaScript.
The objective of the game is to guide the bird through a series of pipes without hitting them. The bird automatically moves forward, and the player can make it flap its wings to move upward by pressing the space bar or clicking on the screen. The game ends when the bird collides with a pipe or the ground. How to Run
To run the game, you'll need to have Node.js and npm installed on your computer. Then, follow these steps:
- Setup your Tinybird account
Click this button to deploy the data project to Tinybird 👇
Follow the guided process, and your Tinybird workspace is now ready to start receiving events.
- Setup this repository locally
git clone https://github.com/tinybirdco/flappy-tinybird.git
cd flappy-tinybird
- Install dependencies
npm install
- Install and configure the Tinybird CLI
To start working with data projects as if they were software projects, First, install the Tinybird CLI in a virtual environment. You'll need python3 installed.
Check the Tinybird CLI documentation for other installation options and troubleshooting tips.
python3 -mvenv .e
. .e/bin/activate
pip install tinybird-cli
tb auth --interactive
Choose your region: 1 for us-east
, 2 for eu
. A new .tinyb
file will be created.
Go to https://ui.tinybird.co/tokens and copy the token with admin rights into the .env
file.
- Start the game!
In the terminal, run the following command:
npm start
Then open your web browser and go to http://localhost:3000
.
This game was built by Joe Karlsson and Alasdair Brown based on the original game by Dong Nguyen.
This project is licensed under the MIT License.