website design project
This project is for educational porpuses only. Pull request are welcome, but priority for project authors! Thank you for your cooperation!
Site published at: https://jurgitae.github.io/flappy-bird-mobile/
Based on YT tutorial: Build Side Scrolling Games with JavaScript
Improvements, changes and input implemented:
-
Bug fixes:
- stop playing sound on controls when game is paused;
- stop counting seconds when focus is lost (e.g. open other tab);
- inconsistent controls fix: mouse and touch - same as one button press, while with key press-hold worked continuously (fixed);
- mouse charge control implemented to enable full mouse controls;
-
Game intro page created with:
- header
- background
- controls description
- start game button and functionality in InputHandler class;
-
In-game buttons and functionalities:
- R (restart)
- P (pause)
- soundOff/soundon
- home screen
- full screen
-
Add game levels:
- implement endless obstacles instead of fixed number
- increase speed;
-
UI improvements:
- visible white max energy bar (white background bar to behind energy filled);
- highest score implemented (using localStorage);
- game over messages changed according to high score (best score beaten or not);
-
Code restructuring:
- InputHandler class created and all interactions moved there;
- UI class for drawing messages;
- script.js cleaned;
- working with html canvas
- vanilla js
- make fully self-sufficient game from the basic given in the tutorial
Node.js - download and install
https://nodejs.org
Git - download and install
https://git-scm.com
Would like to run this project locally? Open terminal and follow these steps:
- Clone the repo
git clone https://github.com/JurgitaE/flappy-bird-mobile.git
- Install NPM packages
or
npm i
npm install
- Run the server
npm run dev
There are no tests for this project.
Jurgita: Github
Distributed under the MIT License. See LICENSE for more information.
No other resources