Git Product home page Git Product logo

Comments (21)

niccokunzmann avatar niccokunzmann commented on July 18, 2024

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

from flappy-svg.

hkveeranki avatar hkveeranki commented on July 18, 2024

I want to work on the issue. I need some more explanation on what to do :)

from flappy-svg.

niccokunzmann avatar niccokunzmann commented on July 18, 2024

This is a code refactoring task. there are things like style.visibility=none in the code that hide and show elements. these should be replaced with the calls to the objects methods: hide() and show().

Why this is important: In the future this will allow for the hide and show methods to contain e.g. stopping an animation.

from flappy-svg.

hkveeranki avatar hkveeranki commented on July 18, 2024

ok i am in. i will do the task. I cannot see and style.visibility statements in the code . I am only seeings style.display. is this what you mean ?

from flappy-svg.

niccokunzmann avatar niccokunzmann commented on July 18, 2024

Yes, that is what I mean. I did not remember clearly.

from flappy-svg.

hkveeranki avatar hkveeranki commented on July 18, 2024

Shall i make layer as a class or just add functions in layer.js file ?

from flappy-svg.

niccokunzmann avatar niccokunzmann commented on July 18, 2024

I think, both could be ok. Go for the option which you think you would like to use and which results in understandable and usable code.

from flappy-svg.

hkveeranki avatar hkveeranki commented on July 18, 2024

I ll make two functions show and hide in layers.js so that any layer can use that method

from flappy-svg.

hkveeranki avatar hkveeranki commented on July 18, 2024

I created a pull request making necessary changes as i thought. #17

from flappy-svg.

niccokunzmann avatar niccokunzmann commented on July 18, 2024

Hi, it looks promising. I added a few comments.

from flappy-svg.

hkveeranki avatar hkveeranki commented on July 18, 2024

I made one more commit . Please have a look at it

from flappy-svg.

niccokunzmann avatar niccokunzmann commented on July 18, 2024

One mistake is still in: Please run the game and test it. The camel does not disappear if you click it at first, because the flappy variable is still null.
It looks very good so far, thank for cleaning up the code : )

from flappy-svg.

hkveeranki avatar hkveeranki commented on July 18, 2024

I am unable to see the mistake u have mentioned . can u please provide a screen cast or a screen-shots for this.
I ran it on firefox as well as chrome but didn't find any problem. Should i run them on something else ?

from flappy-svg.

niccokunzmann avatar niccokunzmann commented on July 18, 2024

You are right, I used the wrong commit - now it works perfectly. Thanks. Now, the code looks much better.

You should comment on this at Google Code-In with a link to this issue and submit it so it can be accepted.

from flappy-svg.

niccokunzmann avatar niccokunzmann commented on July 18, 2024

Also, create a new pull-request if you would like to be listed under https://github.com/fossasia/flappy-svg/blob/gh-pages/Contributors.md

from flappy-svg.

hkveeranki avatar hkveeranki commented on July 18, 2024

Thanks :D . Create a new pull-request with what and in which repo. i am above 17 so i can't participate in code-in :P :)

from flappy-svg.

niccokunzmann avatar niccokunzmann commented on July 18, 2024

So, the link to the task would be https://codein.withgoogle.com/tasks/5378521694208000/
And there is the file https://github.com/fossasia/flappy-svg/blob/gh-pages/Contributors.md
You can add your name and link to it if you like to. You contributed : )

from flappy-svg.

niccokunzmann avatar niccokunzmann commented on July 18, 2024

If you have ideas for new issues, they are welcome.

from flappy-svg.

hkveeranki avatar hkveeranki commented on July 18, 2024

I created a new pr by adding my name to contributors list. I am above 17 years so can i still participate in code-in ?
This is the pull request #18

from flappy-svg.

jigyasa-grover avatar jigyasa-grover commented on July 18, 2024

@harry-7 Unfortunately, No.

from flappy-svg.

hkveeranki avatar hkveeranki commented on July 18, 2024

Its ok . Thanks for merging my pull-request. :)

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.