feat: add poc
This commit is contained in:
parent
43d27b04d9
commit
4a4fa05ce4
53 changed files with 6191 additions and 0 deletions
18
src/components/Sprite.js
Normal file
18
src/components/Sprite.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { Component } from '../core/Component.js';
|
||||
|
||||
export class Sprite extends Component {
|
||||
constructor(color = '#00ff96', width = 30, height = 30, shape = 'circle') {
|
||||
super('Sprite');
|
||||
this.color = color;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue