Skip to content

Commit

Permalink
Changed variable names in for loops to "i"
Browse files Browse the repository at this point in the history
  • Loading branch information
ab2163 committed Feb 25, 2025
1 parent 3a89fe4 commit 9cda6ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/GameState.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ class GameState{
}

//draw projectiles
for(let projCnt = 0; projCnt < this.projectileList.length; projCnt++){
this.projectileList[projCnt].draw();
for(let i = 0; i < this.projectileList.length; i++){
this.projectileList[i].draw();
}

//draw collectibles
for(let collCnt = 0; collCnt < this.collectibleList.length; collCnt++){
this.collectibleList[collCnt].draw();
for(let i = 0; i < this.collectibleList.length; i++){
this.collectibleList[i].draw();
}

//draw scores of players
Expand Down

0 comments on commit 9cda6ff

Please sign in to comment.