File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 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 ,
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 ,
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 ) ;
You can’t perform that action at this time.
0 commit comments