I'm just wondering whats the best wayhow to initiateinstantiate the same objects that all share the same variables, except their positions.
I've built my lamp within a variable function (I think they're called that 'var = {'var = {
), and within my actual game DrawFunctionDrawFunction
, I'm calling 'LampPost.draw();'LampPost.draw();
.
etc ... and then possibly place each initiated Lampinstantiate Lamp
within an array?
I sure would appreciate the help here, I'm kind of new to JavaScript. Thanks!