From ba97c5af930ce90a802be90c32ba860dad39e0c4 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Mon, 23 Nov 2026 09:45:21 +0000 Subject: [PATCH] =?UTF-8?q?Double=20canvas=20size=20to=201600=C3=971200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: DanielGeek --- 89-OpenCode-Projects/03-asteroids/AGENTS.md | 2 +- 89-OpenCode-Projects/03-asteroids/game.js | 4 ++-- 89-OpenCode-Projects/03-asteroids/index.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/89-OpenCode-Projects/03-asteroids/AGENTS.md b/89-OpenCode-Projects/03-asteroids/AGENTS.md index 08aa062e..f665d47c 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 459376c5..d22a281f 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 755f9ffe..701a3854 100644 --- a/89-OpenCode-Projects/03-asteroids/index.html +++ b/89-OpenCode-Projects/03-asteroids/index.html @@ -20,7 +20,7 @@ - +