mirror of https://github.com/kortix-ai/suna.git
36 lines
875 B
HTML
36 lines
875 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Flappy Bird Test</title>
|
|
<style>
|
|
canvas {
|
|
border: 1px solid black;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<canvas id="gameCanvas" width="320" height="480"></canvas>
|
|
<script>
|
|
const canvas = document.getElementById('gameCanvas');
|
|
const ctx = canvas.getContext('2d');
|
|
|
|
// Test bird
|
|
const bird = {
|
|
x: 50,
|
|
y: 200,
|
|
size: 20
|
|
};
|
|
|
|
// Draw test bird
|
|
function draw() {
|
|
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
ctx.fillStyle = 'red';
|
|
ctx.fillRect(bird.x, bird.y, bird.size, bird.size);
|
|
}
|
|
|
|
draw();
|
|
</script>
|
|
</body>
|
|
</html> |