Workshop › Doodle Jump-style Climber › Step 1 of 24
Bounce from platform to platform and climb as high as you can. One-way platforms, a camera that follows you up, endless platforms generated so they are always reachable, moving platforms and traps.
We are building a Doodle Jump-style climber: a jumper bounces from platform to platform, higher and higher. First the jumper: an orange box whose place and size live in an object.
```js
const canvas = document.getElementById('game')
const ctx = canvas.getContext('2d')
let player = { x: 180, y: 460, w: 40, h: 40 }
ctx.fillStyle = '#f8fafc'
ctx.fillRect(0, 0, canvas.width, canvas.height)
ctx.fillStyle = '#f59e0b'
ctx.fillRect(player.x, player.y, player.w, player.h)
```player holds the box's left edge x, top y, width w and height h.Write the lines under the comments, then press Run.
Skills: Drawing on a canvas, Game states