Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
RainPPR authored Oct 8, 2024
1 parent 89d91d5 commit b16e8ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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))
});
});

0 comments on commit b16e8ad

Please sign in to comment.