Originally published on my blog MullinStack
Today’s a special day for those who just are starting out in the JavaScript world. The only way to mas...
For further actions, you may consider blocking this person and/or reporting abuse
Fun! This is a good example of what seems complex, is relatively straightforward when the concept/requirements are broken down into individual functions.
I think you have a bug in your game. The duck will sometimes spawn under the image. Your counter is also positioned incorrectly and overlaps partially with the background.
Fun. My only suggestion would be to store the score as a variable in the code rather than in the DOM. Once an application grows, storing values in the DOM is a surefire way to generate hard to trace bugs.
Yes you're right. The idea is playing with the DOM at first. Thanks for sharing!
The cover image is such a click bait lol
Sorry, I had any intention.😀 thanks for reading! 😀
Here's my mine
I'm fidgeting with the lines: duck.style.top/left by adding a multiplier to keep the duck in bounds
Love it. Thanks for sharing
Hi.
Cool post but any more further explanation on why not using data attributes when working with data instead of id?
Thanks.
Gracias
It would be better if the duck is "moving" inside the background only :)
I think you just set yourself a challenge :P