jojo
This commit is contained in:
parent
e02555234f
commit
4c33b827c3
1 changed files with 6 additions and 1 deletions
|
|
@ -43,11 +43,16 @@ function preload() {
|
|||
floorImage = loadImage(FLOOR_IMAGE_PATH);
|
||||
}
|
||||
function setup() {
|
||||
createCanvas(1085, 600);
|
||||
createCanvas(2000, 1000);
|
||||
floorHeight = height / 5;
|
||||
setupObstacleConsts();
|
||||
setupFont();
|
||||
setupGame();
|
||||
var originalSetItem = localStorage.setItem;
|
||||
localStorage.setItem = function () {
|
||||
document.createEvent('Event').initEvent('itemInserted', true, true);
|
||||
originalSetItem.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
function setupObstacleConsts() {
|
||||
obstacleOffset = width / OBSTACLE_COUNT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue