Comments (9)
Good idea! If someone wants to do that, welcome.
from flappy-svg.
I want to work on this. I would be glad if someone can guide me as to where and how to start :)
from flappy-svg.
@harry-7 My thoughts: the Flappy updates the score whenever something happens.
Also, there is the score label at the top. Somehow, you can change the content of it. The functionality of the score does not belong in the Flappy class. Maybe it has its own file.
My answer is pretty vague. If you have more questions, you can ask.
from flappy-svg.
@niccokunzmann Yeah I saw the score label and how to change it. My doubt was how do I keep track of obstacles crossed?
from flappy-svg.
There is collision detection implemented.
https://github.com/fossasia/flappy-svg/blob/gh-pages/javascript/flapping.js#L50
It knows, when an obstacle is hit. Thus, it should be possible to modify
it so you know, when an obstacle is passed.
Do you know what this does
https://github.com/fossasia/flappy-svg/blob/gh-pages/javascript/flapping.js#L60
?
I think this issue can be split into two parts:
- change the score label
- find out when behind obstacle
Am 26.07.2016 um 14:49 schrieb Hemanth Kumar Veeranki:
@niccokunzmann https://github.com/niccokunzmann Yeah I saw the score
label and how to change it. My doubt was how do I keep track of
obstacles crossed?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#112 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAieIGudUn0Y4fuo3TLqZOBxg7wMhRGjks5qZgJCgaJpZM4HloaX.
from flappy-svg.
https://github.com/fossasia/flappy-svg/blob/gh-pages/javascript/flapping.js#L60
I think instead of creating new obstacles you are just shifting them forward.Am I right ?
Ok I ll look into the collision part once
Also where should I put the score updating part? In which file or shall I create a new file?
from flappy-svg.
@daminisatya @harry-7 would you close this issue? Else, what else would you wish to see implemented?
from flappy-svg.
I guess we can close the issue as the score update is being done. @daminisatya are there any more specifications ?
from flappy-svg.
Okay, closing it!
from flappy-svg.
Related Issues (20)
- Create automatic build for Windows app HOT 2
- Keyboard Control HOT 4
- Travis is failing
- Refactor the credits page with jekyll HOT 3
- Remove a character's onclick function HOT 6
- Add loading animation HOT 3
- First Android app: loading of game takes a long time HOT 1
- Add travis build badge
- Make build fail when APK did not compile HOT 2
- Merge apps
- Why does this game has pathetic graphics HOT 3
- Game Over without touching any object? HOT 4
- Help page doesn't open in chrome browser HOT 1
- How to Play Link leads to Blank Page in Chrome!
- [ci] Build failure because of broken Play Store link
- No Sound in the github pages version of the app
- Typos in the hints readme file
- Not ending game when touching object HOT 2
- Error message HOT 9
- Bugs
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.
from flappy-svg.