Skip to content

Commit

Permalink
gosh run it
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasRamos5 committed Aug 3, 2023
1 parent 08c2f89 commit fc3ed50
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions _notebooks/2023-08-02-Mario-Tube.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 20,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -154,15 +154,14 @@
" player.position.y += 0.1\n",
" player.velocity.y = 0.0001\n",
" gravity = 0.2\n",
"\n",
" if (player.position.y + player.height == tube.position.y + tube.height ||\n",
" }\n",
" if (player.position.y + player.height == tube.position.y + tube.height ||\n",
" player.position.y + player.height <= tube.position.y ||\n",
" player.position.x + player.width <= tube.position.x ||\n",
" player.position.x >= tube.position.x + tube.width) {\n",
" gravity = 1.5\n",
" }\n",
" \n",
" }\n",
" \n",
" if (\n",
" player.position.x + player.width<= tube.position.x &&\n",
Expand Down

0 comments on commit fc3ed50

Please sign in to comment.