jumpstorm/engine/components/FacingDirection.ts

14 lines
408 B
TypeScript
Raw Normal View History

2023-08-25 18:48:17 -04:00
import { Component, ComponentNames, Sprite } from '.';
2023-07-19 23:38:24 -04:00
export class FacingDirection extends Component {
public readonly facingLeftSprite: Sprite;
public readonly facingRightSprite: Sprite;
constructor(facingLeftSprite: Sprite, facingRightSprite: Sprite) {
super(ComponentNames.FacingDirection);
this.facingLeftSprite = facingLeftSprite;
this.facingRightSprite = facingRightSprite;
}
}