Git Product home page Git Product logo

Comments (10)

niccokunzmann avatar niccokunzmann commented on July 1, 2024

Leave a comment of you want to work on this issue.

from flappy-svg.

antoniomdk avatar antoniomdk commented on July 1, 2024

I think I can do this issue. But, Is there any game loop?

from flappy-svg.

niccokunzmann avatar niccokunzmann commented on July 1, 2024

There are several game loops, using the threading.js file. This issue focuses on a good algorithm that works for any kind of obstacles and any number. No behavior is specified.
I thought of a Flappy.collidedWith(obstacle) function. Have a look if that fits. You can do it.

from flappy-svg.

antoniomdk avatar antoniomdk commented on July 1, 2024

Yes, I think I will use flappy:fly loop to detect the next obstacle.

from flappy-svg.

antoniomdk avatar antoniomdk commented on July 1, 2024

I think I can get all obstacles inside "cactus" layer(for example) and I can check if there any obstacle inside the screen and it starts to checking collision.

from flappy-svg.

niccokunzmann avatar niccokunzmann commented on July 1, 2024

#47 is your pull request 44 but without the android files. You can review the changes.

from flappy-svg.

antoniomdk avatar antoniomdk commented on July 1, 2024

Exactly!

from flappy-svg.

niccokunzmann avatar niccokunzmann commented on July 1, 2024

TODO:

  • When colliding something useful should happen
  • check if collision detection runs fast enough

from flappy-svg.

niccokunzmann avatar niccokunzmann commented on July 1, 2024

@antoniomdk I added two new issues that should cover what should be done furthermore. If I missed something, tell me. Closing this now, as it is hopefully covered in #71 and #69.

from flappy-svg.

antoniomdk avatar antoniomdk commented on July 1, 2024

It is fine. You could merge game over screen with collision to create an issue.

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.