https://github.com/ernestmarcinko/flappybird
https://github.com/ernestmarcinko/flappybird
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ernestmarcinko/flappybird
- Owner: ernestmarcinko
- Created: 2023-07-02T15:11:16.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-11T17:54:48.000Z (almost 2 years ago)
- Last Synced: 2025-02-16T15:06:30.599Z (3 months ago)
- Language: TypeScript
- Size: 142 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Flappy Bird in TypeScript
This is a basic TypeScript/javasript implementation of the controversial **Flappy Bird** game. Try it [here](https://ernestmarcinko.com/flappybird/).## Installation
```
npm install flappybird-ts
```Then:
```js
import FlappyBird from "flappybird-ts";document.addEventListener('DOMContentLoaded', ()=>{
new FlappyBird('game');
});
```In your HTML file make sure to have a canvas element with the ID you pass to the FlappyBird constructor.
```html
```
## How to run locally
```
npm run build
```..then open `index.html` to try.
## Development
```
npm run build:dev
```..then webpack will automatically recompile the `FlappyBird.js`