Double tickrate
This commit is contained in:
parent
c2c500e6b8
commit
e06705918c
1 changed files with 12 additions and 12 deletions
|
@ -31,7 +31,7 @@ var _COLOR_GRASS = '#388E3C',
|
||||||
|
|
||||||
|
|
||||||
var _MAX_BRACKET = 100,
|
var _MAX_BRACKET = 100,
|
||||||
_BALL_SPEED = 50,
|
_BALL_SPEED = 100,
|
||||||
_BALL_SPEED_THRESHOLD = 10
|
_BALL_SPEED_THRESHOLD = 10
|
||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
|
@ -44,7 +44,7 @@ var _COLOR_GRASS = '#388E3C',
|
||||||
drawBorder(23+5, 500+10-5, 500-10, 5)
|
drawBorder(23+5, 500+10-5, 500-10, 5)
|
||||||
drawBorder(500+23-5, 10+5, 5, 500-10)
|
drawBorder(500+23-5, 10+5, 5, 500-10)
|
||||||
drawHole(432, 366)
|
drawHole(432, 366)
|
||||||
setInterval(animLoop, 10)
|
setInterval(animLoop, 5)
|
||||||
|
|
||||||
$(document).mousemove(function(e){
|
$(document).mousemove(function(e){
|
||||||
pX = e.pageX - $('canvas').offset().left
|
pX = e.pageX - $('canvas').offset().left
|
||||||
|
|
Reference in a new issue