Skip to content

Commit

Permalink
Update to use new version of korge-asset-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
jobe-m committed Mar 31, 2024
1 parent 3c403d5 commit c966f3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ val onDrawableFamilyAdded: FamilyHook = { entity ->
val view: View = when {
entity has SpriteComponent -> {
val sprite = entity[SpriteComponent]
val view = ImageDataViewEx(AssetStore.getImage(sprite.assetName), sprite.animationName, smoothing = false)
val view = ImageDataViewEx(AssetStore.getImageData(sprite.assetName), sprite.animationName, smoothing = false)

// when animation finished playing trigger destruction of entity
if (sprite.destroyOnPlayingFinished) view.onPlayFinished = {
Expand Down

0 comments on commit c966f3b

Please sign in to comment.