flappy-bird's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.