percobaan game 1
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Snake Xenzia</title> <style> body { text-align: center; font-family: Arial, sans-serif; } canvas { background-color: #000; display: block; margin: 20px auto; } </style> </head> <body> <h1>Snake Xenzia</h1> <canvas id="gameCanvas" width="400" height="400"></canvas> <script> const canvas = document.getElementById('gameCanvas'); const ctx = canvas.getContext('2d'); ...