Skip to content

Commit cc96964

Browse files
committed
fix: membetulkan snakehead untuk final
1 parent 4efcab8 commit cc96964

8 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎snake-game/assets/body.png‎

247 Bytes
Loading

‎snake-game/assets/dummy.txt‎

Whitespace-only changes.

‎snake-game/assets/head.png‎

296 Bytes
Loading
-26.7 KB
Binary file not shown.
-25.6 KB
Binary file not shown.

‎snake-game/assets/ularbody .png‎

-10.6 KB
Binary file not shown.

‎snake-game/index.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<script type="text/javascript" src="index.js"></script>
44
<body onload="draw();">
55
<h1>Snake</h1>
6-
<img id="snakeHead" style="display: none" width="20" height="20" src="assets/kepalaularijo.png" alt="kepalaularijo" />
7-
<img id="snakeBody" style="display: none" width="20" height="20" src="assets/kepalaularungu.png" alt="kepalaularungu" />
8-
<canvas id="snakeBoard" width="400" height="400" style="border: 1px solid #000000"></canvas>
6+
<img id="snakeHead" style="display: none" width="20" height="20" src="assets/head.png" alt="kepalaularijo" />
7+
<img id="snakeBody" style="display: none" width="20" height="20" src="assets/body.png" alt="kepalaularungu" />
8+
<canvas id="snakeBoard" width="600" height="600" style="border: 1px solid #000000"></canvas>
99
<canvas id="score1Board" width="100" height="100" style="border: 1px solid #000000"></canvas>
1010
<canvas id="score2Board" width="100" height="100" style="border: 1px solid #000000"></canvas>
1111
</body>

‎snake-game/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const CELL_SIZE = 20;
2-
const CANVAS_SIZE = 400;
2+
const CANVAS_SIZE = 600;
33
const REDRAW_INTERVAL = 50;
44
const WIDTH = CANVAS_SIZE / CELL_SIZE;
55
const HEIGHT = CANVAS_SIZE / CELL_SIZE;

0 commit comments

Comments
 (0)