Create none hat

This commit is contained in:
Idrees Hassan
2026-01-18 19:25:17 -05:00
parent e09d4f9eea
commit 4838457054
8 changed files with 30 additions and 6 deletions

View File

@@ -237,7 +237,7 @@ function startApplication(birbPixels, featherPixels, hatsPixels) {
let petStack = [];
let currentSpecies = DEFAULT_BIRD;
let unlockedSpecies = [DEFAULT_BIRD];
let currentHat = HAT.TOP_HAT;
let currentHat = HAT.NONE;
// let visible = true;
let lastPetTimestamp = 0;
/** @type {StickyNote[]} */

View File

@@ -3,6 +3,7 @@ import { PALETTE } from "./animation/sprites.js";
import { getLayerPixels } from "./shared.js";
export const HAT = {
NONE: 'none',
TOP_HAT: 'top-hat'
};
@@ -16,6 +17,9 @@ export function createHatLayers(spriteSheet) {
down: []
};
for (const hatName in HAT) {
if (hatName === 'NONE') {
continue;
}
const hatKey = HAT[hatName];
const hatLayer = buildHatLayer(spriteSheet, hatKey, false);
const downHatLayer = buildHatLayer(spriteSheet, hatKey, false, 1);