Git Product home page Git Product logo

Comments (9)

niccokunzmann avatar niccokunzmann commented on July 18, 2024

Good idea! If someone wants to do that, welcome.

from flappy-svg.

hkveeranki avatar hkveeranki commented on July 18, 2024

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.

niccokunzmann avatar niccokunzmann commented on July 18, 2024

@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.

hkveeranki avatar hkveeranki commented on July 18, 2024

@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.

niccokunzmann avatar niccokunzmann commented on July 18, 2024

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.

hkveeranki avatar hkveeranki commented on July 18, 2024

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.

niccokunzmann avatar niccokunzmann commented on July 18, 2024

@daminisatya @harry-7 would you close this issue? Else, what else would you wish to see implemented?

from flappy-svg.

hkveeranki avatar hkveeranki commented on July 18, 2024

I guess we can close the issue as the score update is being done. @daminisatya are there any more specifications ?

from flappy-svg.

niccokunzmann avatar niccokunzmann commented on July 18, 2024

Okay, closing it!

from flappy-svg.

Related Issues (20)

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.