src/scenes/GameScene.tsimport { Container, Graphics } from 'pixi.js';import { ASSETS, COIN_COUNT, COLORS } from '../constants';import { Scene } from '../core/Scene';import { Player } from '../objects/Player';import { Coin } from '../objects/Coin';import { HUD } from '../ui/HUD';import { GameOverScene } from './GameOverScene';import { randInt } from '../utils/math';/*** Placeholder game: top-down "collect the coins" demo. Exercises every* subsystem (Pixi rendering, Rapier physics, Howler audio, tween bobbing,* input, scene transitions) so the developer has a working reference for* each.** REPLACE the gameplay specifics — coins, scoring, win condition — with* your own game logic. The frame loop and resize wiring are the parts to* keep.*/export class GameScene extends Scene {
Showing the first 20 lines.
Get full code