View Single Post
Old 11-10-2012, 04:06 PM   PM User | #3
Logic Ali
Regular Coder

 
Logic Ali's Avatar
 
Join Date: Sep 2010
Location: London
Posts: 961
Thanks: 0
Thanked 198 Times in 193 Posts
Logic Ali will become famous soon enoughLogic Ali will become famous soon enough
This code makes little sense. Ball is a constructor, so why call it without new in the onload handler?

FPS is declared in the onload handler but never referenced.

Quote:
Code:
1000/FPS);
Nothing appears to alter FPS, so why use it solely as a divisor for a constant?
Logic Ali is offline   Reply With Quote