JoeKarlsson / flappy-tinybird

Flappy Bird's clone built using Tinybird and the phaser.js engine.

Home Page:https://flappy-tinybird-tinybird.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slack Status

Flappy Tinybird

This repository contains a clone of the popular game "Flappy Bird". It was built using the Phaser 3 game framework and JavaScript.

How to Play

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

Setup

To run the game, you'll need to have Node.js and npm installed on your computer. Then, follow these steps:

  1. Setup your Tinybird account

Click this button to deploy the data project to Tinybird 👇

Deploy to Tinybird

Follow the guided process, and your Tinybird workspace is now ready to start receiving events.

  1. Setup this repository locally
git clone https://github.com/tinybirdco/flappy-tinybird.git
cd flappy-tinybird
  1. Install dependencies
npm install
  1. 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.

⚠️Warning! The Admin token, the one you copied following this guide, is your admin token. Don't share it or publish it in your application. You can manage your tokens via API or using the Auth Tokens section in the UI. More detailed info at Auth Tokens management

  1. Start the game!

In the terminal, run the following command:

npm start

Then open your web browser and go to http://localhost:3000.

Credits

This game was built by Joe Karlsson and Alasdair Brown based on the original game by Dong Nguyen.

License

This project is licensed under the MIT License.

About

Flappy Bird's clone built using Tinybird and the phaser.js engine.

https://flappy-tinybird-tinybird.vercel.app/

License:MIT License


Languages

Language:JavaScript 74.0%Language:HTML 21.6%Language:CSS 4.4%