0.1.5 • Published 10 months ago

flappybird-ts v0.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

Flappy Bird in TypeScript

This is a basic TypeScript/javasript implementation of the controversial Flappy Bird game. Try it here.

Installation

npm install flappybird-ts

Then:

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>
    <body>
        <canvas id="game"></canvas>
    </body>
</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

0.1.5

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago