Skip to content

Commit

Permalink
lets attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasRamos5 committed Jul 10, 2023
1 parent 40c2eea commit d93f427
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions _notebooks/2023-06-13-Mario.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -770,21 +770,21 @@
" }\n",
" }\n",
" class Tube {\n",
" constructor( { x, y, image} ) {\n",
" constructor(image) {\n",
" this.position = {\n",
" x, \n",
" y \n",
" x: 10,\n",
" y: 10\n",
" }\n",
" this.image = image\n",
" this.width = 175\n",
" this.height = 200\n",
" this.velocity = {\n",
" x: 0 \n",
" }\n",
" # this.velocity = {\n",
" # x: 0 \n",
" # }\n",
" }\n",
"\n",
" draw() {\n",
" c.drawImage(this.image, this.position.x, this.position.y, this.width, this.height)\n",
" c.drawImage(this.image, this.position.x, this.position.y)\n",
" }\n",
" \n",
" # update() {\n",
Expand All @@ -797,7 +797,7 @@
" image.onload = function() {\n",
" const player1 = new Player1();\n",
" const platform = new Platform(image);\n",
" const tube = new Tube( {x: 10, y: 10, image: image} )\n",
" const tube = new Tube(image)\n",
" const keys1 = {\n",
" right: {\n",
" pressed: false\n",
Expand Down

0 comments on commit d93f427

Please sign in to comment.