Skip to content

Commit

Permalink
re run
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasRamos5 committed Aug 1, 2023
1 parent 2992e00 commit fb1946a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions _notebooks/2023-08-01-Mario-Platform.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -94,12 +94,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 fb1946a

Please sign in to comment.