GithubHelp home page GithubHelp logo

simply-joe / flappy-tinybird Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tinybirdco/flappy-tinybird

0.0 0.0 0.0 338 KB

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

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

License: MIT License

JavaScript 76.08% CSS 2.37% HTML 19.90% Shell 1.66%

flappy-tinybird's Introduction

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.

flappy-tinybird's People

Contributors

joekarlsson avatar radchukd avatar sdairs avatar simply-joe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.