mirror of
https://github.com/tiennm99/try-claudekit.git
synced 2026-04-17 13:21:43 +00:00
Browser-based physics puzzle game where players drop fruits that merge into larger fruits on collision, using Matter.js for 2D physics and Canvas2D for rendering. Includes 11-fruit progression chain, scoring, game-over detection, mouse/touch input, and Vitest test suite.
10 lines
252 B
JavaScript
10 lines
252 B
JavaScript
import { createCanvas } from './renderer.js';
|
|
import { setupInput } from './input.js';
|
|
import { Game } from './game.js';
|
|
import './style.css';
|
|
|
|
const { ctx, canvas } = createCanvas();
|
|
const game = new Game(ctx);
|
|
setupInput(canvas, game);
|
|
game.start();
|