diff --git a/app.js b/app.js index e829015..1e57538 100644 --- a/app.js +++ b/app.js @@ -44,9 +44,9 @@ engineInit( if (keyIsDown(81)) new Enemy(mousePosWorld); - if (keyWasPressed(84)) + if (keyIsDown(84)) { - //for(let i=30;i--;) + for(let i=30;i--;) new Prop(mousePosWorld); } @@ -221,4 +221,4 @@ engineInit( // fade in level transition const fade = levelEndTimer.isSet() ? percent(levelEndTimer.get(), 3, 1) : percent(levelTimer.get(), .5, 2); drawRect(cameraPos, vec2(1e3), new Color(0,0,0,fade)) -}); \ No newline at end of file +});