kahel didn't like the auto reload 🤣
This commit is contained in:
parent
b6d5c3e927
commit
940682e059
1 changed files with 0 additions and 12 deletions
12
index.js
12
index.js
|
@ -26,14 +26,10 @@ let render = Render.create({
|
|||
});
|
||||
|
||||
generateWorld();
|
||||
let actions = 0;
|
||||
|
||||
function clearTheWorld() {
|
||||
Composite.clear(engine.world);
|
||||
Composite.add(engine.world, ground);
|
||||
if (actions > 10) {
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
|
||||
function kaboom() {
|
||||
|
@ -53,10 +49,6 @@ function kaboom() {
|
|||
|
||||
// run the engine
|
||||
Runner.run(runner, engine);
|
||||
actions++;
|
||||
if (actions > 10) {
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
|
||||
function addShape() {
|
||||
|
@ -72,10 +64,6 @@ function addShape() {
|
|||
|
||||
// run the engine
|
||||
Runner.run(runner, engine);
|
||||
actions++;
|
||||
if (actions > 10) {
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
|
||||
function generateWorld() {
|
||||
|
|
Loading…
Reference in a new issue