Skip to content

Commit

Permalink
15
Browse files Browse the repository at this point in the history
  • Loading branch information
heybobjones committed Jun 25, 2024
1 parent 9e072df commit fd330a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</div>
<canvas id="gameCanvas" width="1600" height="800"></canvas>
<div id="controls">
<div><h1>Upload your facebook profile pic and save yourself!</h1></div>
<div><h1>Upload your Facebook profile pic and save yourself from the spammers!</h1></div>
<center><input type="file" id="profilePicUpload" accept="image/*">
<button id="startGame">Start Game</button></div></center>
</div>
Expand Down
3 changes: 2 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ function drawPlayer() {
ctx.clip();

if (player.image) {
ctx.drawImage(player.image, player.x - player.radius, player.y - player.radius, player.radius * 2, player.radius * 2);
const scaleFactor = 1.5; // Increase this factor to make the image larger
ctx.drawImage(player.image, player.x - player.radius * scaleFactor, player.y - player.radius * scaleFactor, player.radius * 2 * scaleFactor, player.radius * 2 * scaleFactor);
} else {
ctx.fillStyle = '#0F0';
ctx.fill();
Expand Down

0 comments on commit fd330a8

Please sign in to comment.