diff --git a/89-OpenCode-Projects/03-asteroids/AGENTS.md b/89-OpenCode-Projects/03-asteroids/AGENTS.md index 08aa062..f665d47 100644 --- a/89-OpenCode-Projects/03-asteroids/AGENTS.md +++ b/89-OpenCode-Projects/03-asteroids/AGENTS.md @@ -3,7 +3,7 @@ ## Project - Vanilla HTML5 Canvas clone of the arcade game Asteroids. No dependencies, no build step, no bundler, no manifest, no tests. -- `index.html` mounts a fixed 800×600 canvas and loads `game.js`, which holds all game logic in a single file. +- `index.html` mounts a fixed 1600×1200 canvas and loads `game.js`, which holds all game logic in a single file. - Run by opening `index.html` directly in a browser, or serve the directory (`npx serve .`) and visit `http://localhost:3000`. ## Code layout (`game.js`) diff --git a/89-OpenCode-Projects/03-asteroids/game.js b/89-OpenCode-Projects/03-asteroids/game.js index 459376c..d22a281 100644 --- a/89-OpenCode-Projects/03-asteroids/game.js +++ b/89-OpenCode-Projects/03-asteroids/game.js @@ -2,8 +2,8 @@ const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); -const W = 800; -const H = 600; +const W = 1600; +const H = 1200; // ── Input ───────────────────────────────────────────────────────────────────── const keys = {}; diff --git a/89-OpenCode-Projects/03-asteroids/index.html b/89-OpenCode-Projects/03-asteroids/index.html index 755f9ff..701a385 100644 --- a/89-OpenCode-Projects/03-asteroids/index.html +++ b/89-OpenCode-Projects/03-asteroids/index.html @@ -20,7 +20,7 @@ - +