monodyle / flappy-bird-p5js

🎮 A flappy-bird game write with p5js

Home Page:https://monodyle.github.io/flappy-bird-p5js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Play](https://monodyle.github.io/flappy-bird-p5js/)

🎮 A flappy-bird game write with p5js

Run locally

For the developer mode:

  • Install Node and Gulp
  • Install the dependencies
$ npm install
$ npm install gulp-cli -g # Server + BrowserSync

Then just type on your bash:

$ gulp

Open your browser at http://localhost:8000/

Game can't run if you do not have http(s) server because p5.js fetch asset by fetch API, so if you open index.html by browser, you will got blank bird game... URL scheme must be "http" or "https" for CORS request.

Also can try http-server instead of grunt if you just need http-server to play a game.

$ npm install [-g] http-server
$ http-server

Screenshot

Just a simple game, may contain tons of bugs 🤣🤣

About

🎮 A flappy-bird game write with p5js

https://monodyle.github.io/flappy-bird-p5js/

License:MIT License


Languages

Language:JavaScript 89.8%Language:HTML 10.2%