Finish testing
This commit is contained in:
@@ -5,7 +5,7 @@ import {
|
||||
type SpritePlayback,
|
||||
} from "#/engine/Sprite.ts";
|
||||
|
||||
export function animateSprites(delta: number) {
|
||||
export function animateSprites(delta: number): void {
|
||||
for (const [id, playback] of $<SpritePlayback>("playback").entries()) {
|
||||
const sprite = $<Sprite>("sprite").get(id)!;
|
||||
animateSprite(sprite.value, playback.value, delta);
|
||||
|
||||
@@ -23,7 +23,7 @@ sceneChangeSet.add((sceneData) => {
|
||||
});
|
||||
});
|
||||
|
||||
export function drawSprites(ctx: CanvasRenderingContext2D) {
|
||||
export function drawSprites(ctx: CanvasRenderingContext2D): void {
|
||||
for (const drawable of drawables.sort(
|
||||
(a, b) => a.position.value.y - b.position.value.y,
|
||||
)) {
|
||||
|
||||
Reference in New Issue
Block a user