Skip to content

Add 2.5D canvas-based interactive world demo - #2

Open
PGuuu wants to merge 1 commit into
mainfrom
codex/build-2.5d-interactive-game-world
Open

Add 2.5D canvas-based interactive world demo#2
PGuuu wants to merge 1 commit into
mainfrom
codex/build-2.5d-interactive-game-world

Conversation

@PGuuu

@PGuuu PGuuu commented Feb 9, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Provide a small, self-contained 2.5D interactive world demo inspired by early adventure games to explore movement, simple interactions, and sprite ordering.

Description

  • Add index.html which hosts the canvas and HUD for messages and loads the game script.
  • Add style.css with layout, canvas styling, and HUD/message visuals.
  • Add game.js which implements the tile map, obstacles/interactables, NPC, player state, smooth grid-based movement (tryMove), interaction logic (interact), and a render loop that sorts sprites by y to simulate depth.
  • The map includes water/cliff/path/grass tiles, trees, a house, a sign, and sample interactable messages to demonstrate gameplay flow.

Testing

  • Started a local server with python -m http.server 8000 and successfully ran a Playwright script that loaded http://127.0.0.1:8000/index.html and produced a screenshot at artifacts/particlesystem.png.
  • No unit tests were added for this demo; manual/visual verification was performed via the automated browser script which completed successfully.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant