We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd9832c commit 36ed171Copy full SHA for 36ed171
Sources/GateEngine/ECS/2D Specific/Sprite/SpriteComponent.swift
@@ -116,7 +116,7 @@ public final class SpriteComponent: Component {
116
let startFrame = (animation.spriteSheetStart.y * columns) + animation.spriteSheetStart.x
117
let endFrame = {
118
if let frameCount = animation.frameCount {
119
- return startFrame + (frameCount - 1)
+ return startFrame + frameCount
120
}
121
let framesInAnimation = (columns * rows) - startFrame
122
return framesInAnimation
0 commit comments