Add gameover and overall layout
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user