Archived
4
1
Fork 0

Double tickrate

This commit is contained in:
Simon Giesel 2017-06-20 13:28:29 +02:00
parent c2c500e6b8
commit e06705918c

View file

@ -31,7 +31,7 @@ var _COLOR_GRASS = '#388E3C',
var _MAX_BRACKET = 100,
_BALL_SPEED = 50,
_BALL_SPEED = 100,
_BALL_SPEED_THRESHOLD = 10
$(function(){
@ -44,7 +44,7 @@ var _COLOR_GRASS = '#388E3C',
drawBorder(23+5, 500+10-5, 500-10, 5)
drawBorder(500+23-5, 10+5, 5, 500-10)
drawHole(432, 366)
setInterval(animLoop, 10)
setInterval(animLoop, 5)
$(document).mousemove(function(e){
pX = e.pageX - $('canvas').offset().left