Posts by Wanderson Silva • 11 points
3 posts
-
0
votes4
answers97
viewsA: Event.clientX; and Event.clientY do not work in firefox
you can assign the values to the variable this way var xMouse = event.clientX || event.pageX; var yMouse = event.clientY || event.pageY; summarizing, if the first does not rotate, goes with the…
javascriptanswered Wanderson Silva 11 -
0
votes2
answers57
viewsA: When I try to make a canvas not error but also does nothing
When I work with Canvas, I don’t like to write the tag directly in the HTML file, I create a function to be responsible for it, even help in case I will use the same JS file in another document, I…
canvasanswered Wanderson Silva 11 -
1
votes0
answers35
viewsQ: Search Array with certain features
Hello, I am developing a very basic game with Javascript, but I came across a little thing that I could not solve so far, the question would be, I have an Array, in which I include randomly 28…