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
|
|
@ -9,10 +9,13 @@ export class Sprite extends Component {
|
|||
this.shape = shape; // 'circle', 'rect', 'slime'
|
||||
this.alpha = 1.0;
|
||||
this.scale = 1.0;
|
||||
|
||||
|
||||
// Animation properties
|
||||
this.animationTime = 0;
|
||||
this.morphAmount = 0; // For slime morphing
|
||||
this.animationState = 'idle'; // 'idle', 'walk'
|
||||
this.animationSpeed = 4; // frames per second
|
||||
this.morphAmount = 0; // Legacy slime morphing
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue