game: add: vector colision (Not work)
This commit is contained in:
@ -17,7 +17,9 @@ class Time
|
||||
|
||||
deltaTime()
|
||||
{
|
||||
return (this._current_frame - this._last_frame) !== NaN ? this._current_frame - this._last_frame : 0;
|
||||
if (this._last_frame === undefined)
|
||||
return 0;
|
||||
return (this._current_frame - this._last_frame);
|
||||
}
|
||||
|
||||
deltaTimeSecond()
|
||||
|
Reference in New Issue
Block a user