fossasia / flappy-svg

Flappy Bird in SVG. Play it at http://fossasia.github.io/flappy-svg/
Other
1.61k stars 157 forks source link

No collision takes place in island background #183

Closed hemanthsavasere closed 7 years ago

hemanthsavasere commented 7 years ago

collision not happening in island background, to end the game and get the score.

Marauderer97 commented 7 years ago

@hemanthsavasere I was playing the game and noticed the same issue, but funnily enough I cannot find any file called thunder.svg in the obstacles folder, or in the layers folder. Do you have any ideas on how to fix this?

Marauderer97 commented 7 years ago

@niccokunzmann So after a lot of debugging effort :P this is what i found, while all other obstacles have multiple shapes(g tags) under the initial layer, thunder only has the layer and no other g tags defined under it. So no obstacles get pushed to the obstacle list and hence there is no obstacle box to check whether or not collision occurs. To fix this, I thing the thunder layer svg bit has to be changed, creating obstacles under the layer imageThe thunder labelled shape image Other obstacles like Gotham_obstacles(having more g tags under the layer g tag)

niccokunzmann commented 7 years ago

okay.

hemanthsavasere commented 7 years ago

I am closing it.