diff --git a/examples/rocci-bird.roc b/examples/rocci-bird.roc index 16f24c7..c0f493e 100644 --- a/examples/rocci-bird.roc +++ b/examples/rocci-bird.roc @@ -633,7 +633,7 @@ Animation : { updateAnimation : U64, Animation -> Animation updateAnimation = \frameCount, anim -> framesPerUpdate = - when List.get anim.cells (Num.toNat anim.index) is + when List.get anim.cells (Num.toU64 anim.index) is Ok { frames } -> frames @@ -659,7 +659,7 @@ updateAnimation = \frameCount, anim -> drawAnimation : Animation, { x : I32, y : I32, flags ? List [FlipX, FlipY, Rotate] } -> Task {} [] drawAnimation = \anim, { x, y, flags ? [] } -> - when List.get anim.cells (Num.toNat anim.index) is + when List.get anim.cells (Num.toU64 anim.index) is Ok { sprite } -> {} <- setSpriteColors |> Task.await Sprite.blit sprite { x, y, flags } diff --git a/examples/sound.roc b/examples/sound.roc index 15884a4..ad9c686 100644 --- a/examples/sound.roc +++ b/examples/sound.roc @@ -16,7 +16,7 @@ Program : { Model : { arrowSprite : Sprite, - arrowIdx : Nat, + arrowIdx : U64, lastGamepadState : Gamepad, values : List (Str, U32, U32), }