Code Monkey home page Code Monkey logo

flappy-bird's People

Contributors

ample-samples avatar

Watchers

 avatar

flappy-bird's Issues

Game Feedback

Hi Todd,

Nice game and good use of the canvas library, well done on implementing it and using it effectively.
The game works well, has some nice features and has therefore received a good mark across multiple areas such as output (it works!), code knowledge and implementation of logic, readability and responsiveness. There are also some points below to consider for improving the code written.

  • Global scope code that runs on file start. My understanding is that lines 11-16 run at the start of the application. I would much prefer to see this logic wrapped up inside a function. This gives you control over when it's used (even if its only once when the game starts), and also makes the code more readable, assuming the function is sensibly named.
  • Nested "if" statements. These are sometimes necessary when multiple this could happen if a condition is met. However in these scenarios (e.g. lines 103-112) there is not an "else" and so instead of making a nested statement you should be able to clean this up and keep it inside a single conditional.
  • Variable names. Utils.ts is a good example of shortening variable names for no reason. In this scenario I would want to keep these variables (located in a bus file) very readable and hence no abbreviations.

Great game, great work :)
Sam

Peer Feedback

Positive

  • Game works as intended, great use of sprites and collision detection . A lot of extra research must have gone into this!
  • Good use of modularisation of functions. Very clean code!

Negative

  • Screen size doesn't dynamically change when you alter the screen size after the page has been rendered.
  • Could use images stored in public folder rather than 64 bit strings.

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.