Thread
:
Uncaught ReferenceError: FPS is not defined how i can correct this error
View Single Post
11-10-2012, 04:06 PM
PM User
|
#
3
Logic Ali
Regular Coder
Join Date: Sep 2010
Location: London
Posts: 961
Thanks: 0
Thanked 198 Times in 193 Posts
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
View Public Profile
Find More Posts by Logic Ali