Skip to content

Commit

Permalink
player1 --> player
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasRamos5 committed Aug 1, 2023
1 parent 9f53bea commit 2992e00
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions _notebooks/2023-08-01-Mario-Platform.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,12 @@
" }\n",
" }\n",
" if (\n",
" player1.position.y + player1.height <= platform.position.y &&\n",
" player1.position.y + player1.height + player1.velocity.y > platform.position.y &&\n",
" player1.position.x + player1.width >= platform.position.x &&\n",
" player1.position.x <= platform.position.x + platform.width\n",
" player.position.y + player.height <= platform.position.y &&\n",
" player.position.y + player.height + player.velocity.y > platform.position.y &&\n",
" player.position.x + player.width >= platform.position.x &&\n",
" player.position.x <= platform.position.x + platform.width\n",
" ) {\n",
" player1.velocity.y = 0;\n",
" player.velocity.y = 0;\n",
" }\n",
"\n",
" function animate() {\n",
Expand Down

0 comments on commit 2992e00

Please sign in to comment.