Posts by Mendes • 76 points
3 posts
-
0
votes2
answers58
viewsA: Help Require Node
This is a matter of build system, what you want to do is "compile" your JS code before running it in the browser, in your case the Browserify should be enough since it requires almost 0…
-
3
votes1
answer544
viewsA: Would it be possible to identify if a DIV is over another DIV using some type of script?
You could use getBoundingClientRect() to get a collision box and use a little math to test whether the 2 ClientRects are colliding. Demonstration: in the codepen…
-
2
votes1
answer112
viewsQ: Is there a means of "mirroring" properties of one object into another?
Say I want to do a function debugText(obj), this function takes an object as a parameter and shows a property of it on the screen, such as debug game screens. Something like: function…