Add gameover and overall layout

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-28 23:54:52 +09:00
parent 9939aab976
commit acead592b7
4 changed files with 126 additions and 38 deletions

View File

@@ -1,5 +1,24 @@
import { PLAT_TYPE } from './constants.js';
export function createPlayer() {
const player = new Sprite();
player.x = width / 2;
player.y = 700;
player.scale = 0.20;
player.img = "assets/nubzuki.png";
player.rotationLock = true;
player.w = 20;
player.h = 20;
player.offset.y = 25;
player.bounciness = 0;
player.elevation = 0;
return player;
}
function handleJump(player, platform) {