Skip to content

Commit 77864c4

Browse files
committed
Fixing incorrect sprite values on first frame
1 parent dcdd4b4 commit 77864c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

entities/sprite.zig

+3
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ pub const SpriteComponent = struct {
8787

8888
// TODO: Clear animation when loading?
8989
self.animation = null;
90+
91+
// Tick to set our initial values!
92+
self.tick(0);
9093
}
9194

9295
pub fn tryInit(self: *SpriteComponent) !void {

0 commit comments

Comments
 (0)