Skip to content

Commit 0100aba

Browse files
Update index.html
1 parent 38f95db commit 0100aba

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

index.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
// Player and goal objects
2727
var player = {
2828
x: canvas.width / 2,
29-
y: 50,
29+
y: 140,
3030
radius: 20,
3131
vx: 0,
3232
vy: 0,
@@ -35,7 +35,7 @@
3535
};
3636
var goal = {
3737
x: canvas.width / 2,
38-
y: canvas.height / 2,
38+
y: canvas.height / 2 + 90,
3939
radius: 42,
4040
angle1: 0,
4141
angle2: 0,
@@ -224,6 +224,17 @@
224224
}, 1000);
225225
}
226226

227+
// Draw the welcome text
228+
ctx.fillStyle = "#AA6C39"; // or any color you prefer
229+
ctx.font = "36px Arial"; // size and font face
230+
ctx.textAlign = "center"; // alignment
231+
ctx.fillText("Welcome to Gödel's Gauntlet", canvas.width/2, 50); // text and position
232+
233+
// Draw the instruction text
234+
ctx.font = "24px Arial"; // size and font face
235+
ctx.textAlign = "center"; // alignment
236+
ctx.fillStyle = "#7E909A"; // or any color you prefer
237+
ctx.fillText("Click to move the circle towards the keyhole", canvas.width/2, 90); // text and position
227238

228239
// Request next animation frame
229240
requestAnimationFrame(gameLoop);

0 commit comments

Comments
 (0)