Flappy Bird Clone (school assignment)
- Build in Javascript with ES6 Class syntax
- Build with P5.js
- Bundled and compiled with Webpack & Babel
run npm install
then run webpack
- Classes and instances
- Everything is written in classes and uses instances of these classes
- Encapsulation
- Private properties and methods are prefixed with
_
underscore and are doc blocked.
- Private properties and methods are prefixed with
- Composition
- Composition is favoured over inheritance and due to the complex nature of using P5 with Webpack and NPM, classes are more tied to their own methods and properties rather than depending on others.
- Inheritance
- The screen classes make use of inheritance