feat: Implement pixel-art rendering with new level loading, tile maps, palettes, and pixel fonts, alongside a game over screen.
This commit is contained in:
parent
5b15e63ac3
commit
cf04677511
41 changed files with 793 additions and 331 deletions
27
src/core/Palette.js
Normal file
27
src/core/Palette.js
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/**
|
||||
* Limited 7-color palette for the game
|
||||
*/
|
||||
export const Palette = {
|
||||
WHITE: '#ffffff', // Highlights, UI Text
|
||||
CYAN: '#0ce6f2', // Energy, Slime core
|
||||
SKY_BLUE: '#0098db', // Water, Friendly elements
|
||||
ROYAL_BLUE: '#1e579c', // Shadows, Depth
|
||||
DARK_BLUE: '#203562', // Walls, Obstacles
|
||||
DARKER_BLUE: '#252446', // Background details
|
||||
VOID: '#201533', // Void, Deep Background
|
||||
|
||||
/**
|
||||
* Get all colors as an array
|
||||
*/
|
||||
getAll() {
|
||||
return [
|
||||
this.WHITE,
|
||||
this.CYAN,
|
||||
this.SKY_BLUE,
|
||||
this.ROYAL_BLUE,
|
||||
this.DARK_BLUE,
|
||||
this.DARKER_BLUE,
|
||||
this.VOID
|
||||
];
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue