diff --git a/_notebooks/2023-08-02-Mario-Tube.ipynb b/_notebooks/2023-08-02-Mario-Tube.ipynb index c0a12cb..a7eaf55 100644 --- a/_notebooks/2023-08-02-Mario-Tube.ipynb +++ b/_notebooks/2023-08-02-Mario-Tube.ipynb @@ -22,7 +22,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 20, "metadata": {}, "outputs": [ { @@ -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",