one character can make a big differences
This commit is contained in:
parent
7ab6ed5262
commit
a99fca358f
1 changed files with 2 additions and 2 deletions
|
@ -218,7 +218,7 @@ class Car
|
||||||
|
|
||||||
Update()
|
Update()
|
||||||
{
|
{
|
||||||
if(this.tick==0 && date.getSeconds()%20==this.spawn) {
|
if(this.tick==0 && Date.getSeconds()%20==this.spawn) {
|
||||||
this.tick=1;
|
this.tick=1;
|
||||||
}
|
}
|
||||||
this.ChangeDirection();
|
this.ChangeDirection();
|
||||||
|
@ -246,7 +246,7 @@ class Car
|
||||||
}
|
}
|
||||||
|
|
||||||
pseudoaleatoire() {
|
pseudoaleatoire() {
|
||||||
return Math.floor(date.now()/1000)%10
|
return Math.floor(Date.now()/1000)%10
|
||||||
}
|
}
|
||||||
|
|
||||||
ChangeDirection()
|
ChangeDirection()
|
||||||
|
|
Loading…
Reference in a new issue