GithubHelp home page GithubHelp logo

sean-perkins / nativescript-flappy-bird Goto Github PK

View Code? Open in Web Editor NEW
31.0 5.0 10.0 1.91 MB

NativeScript implementation of Flappy Bird (basic). Demonstrates how to build games in NativeScript.

HTML 6.67% TypeScript 85.66% CSS 7.67%
nativescript game nativescript-angular angular game-development flappy-bird

nativescript-flappy-bird's Introduction

NativeScript Flappy Bird App

This repository demonstrates how to create games such as Flappy Bird inside NativeScript Angular.

Technologies

  • NativeScript Angular
  • Model-Driven Objects
  • Custom Animation Implemenations

Feature List

  • Animated background scenes
  • Animated player (bird) object using sprite sheet (iOS only)
  • Animated player gravity sequence (climb & fall)
  • Clipped canvas
  • Audio segments for tap and death animations
  • Replay screen

Getting Started

  1. Download or clone this repository.
  2. Install dependencies npm i or npm install.
  3. Install and run your desired runtime tns run ios or tns run android.

Known Issues

  • Android background-position support is incomparable to iOS. Temporarily have disabled the bird animation on Android as it cannot handle the sprite animation.
  • Android player sensitivity is off - most likely need to account for DPI for calculations.

App Images

iOS Android
screen shot 2017-08-26 at 3 37 08 pm

Credits / References

  • FloppyBird for all of the initial calculations and game assets.
  • NativeScript Audio for allowing me to play audio segments for the animations.

Contributors

Sean perkins
Sean Perkins

nativescript-flappy-bird's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  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.