Workshop › Lunar Lander › Step 24 of 31
A landing is worth 100 × level, plus the fuel left: a careful pilot who burns only what is needed scores more.
```js
score += 100 * level + lander.fuel
ctx.fillStyle = 'white'
ctx.textAlign = 'right'
ctx.fillText('Level ' + level + ' Score ' + score, canvas.width - 10, 20)
```touchdown.canvas.width - 10, so it always ends 10 pixels from the right edge.touchdown, under lander.y = pad.y - 10, write the score line.draw, under the readouts' closing }), write the three white lines.Skills: Game states
← Levels Next level or new game →