Skip to content

Add the ability to animate scale and rotation #1

Description

@manaliveadam

Currently, the tool generates a sprite sheet that animates an image's rotation since it's expensive to do at runtime. It could be useful to also integrate scale and opacity animation, since those are expensive as well. I have something similar here: https://github.com/manaliveadam/glitterbomb/blob/main/source/glitterglue.lua but it could work something like:

  1. Specify initial scale and end scale (with 1 being the image's native size). For every frame of the sprite sheet that's generated, lerp between the initial and end scale
  2. Specify initial opacity and end opacity, and use Playdate's built-in dithering to lerp between the initial and end opacity (I use kDitherTypeBayer8x8 but you could also allow users to specify the dithering technique)

The end result should be a sprite sheet that can animate an image's rotation, scale, and opacity.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions