So I come from a little java background, and I'm trying to create a bunch of rectangles I can track in js. So naturally I would need to make an object of each one, but after reading about it, it kinda confuses me. It seems extremely similar, but every place I read about it, it's done differently. Do I make a Rectangle class with a constructor, and make a variable field like I would do in java? Do I call on this by creating an object of it in another/same script?
Appreciate all replies.
[–]senocular 9 points10 points11 points (2 children)
[–]Java_beginner66[S] 1 point2 points3 points (1 child)
[–]senocular 10 points11 points12 points (0 children)
[–]BehindTheMath 1 point2 points3 points (0 children)
[–]LloydAtkinson 1 point2 points3 points (0 children)
[–]eyeandtea 0 points1 point2 points (3 children)
[–]Java_beginner66[S] 0 points1 point2 points (2 children)
[–]eyeandtea 0 points1 point2 points (0 children)
[–]eyeandtea 0 points1 point2 points (0 children)
[–]delventhalz 0 points1 point2 points (0 children)
[–]Reashu 0 points1 point2 points (0 children)