Meta Description" name="description" />
<html>
<body style="margin:0;background:black;">
<canvas id="game" width="400" height="700"></canvas>
<script>
const c = document.getElementById('game');
const ctx = c.getContext('2d');
let pesawat = {x:175, y:600};
function gambar(){
ctx.fillStyle='black';
ctx.fillRect(0,0,400,700);
ctx.fillStyle='white';
ctx.fillRect(pesawat.x, pesawat.y, 50, 50);
}
gambar();
</script>
</body>
</html>
1
1
1KB
1KB
84.0ms
100.0ms
85.0ms