jumpstorm/client/lib/components/FacingDirection.ts
2023-07-19 20:38:24 -07:00

14 lines
408 B
TypeScript

import { Component, ComponentNames, Sprite } from ".";
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;
}
}