Giter Site home page Giter Site logo

Comments (1)

paulossilva avatar paulossilva commented on May 30, 2024

Being more specific on how to add the relative sprite's attributes and suggesting an UI to handle them (apply to both composite and unified sprites):

  1. Visibility would be just a checkbox to set whether a relative sprite is visible or not. Making an anchor sprite not visible makes all relative sprites invisible too regardless their visibility attribute (which has no practical effect on the animation tool).

  2. X,Y coordinates are relative offsets (-127 to 127) from the coordinates of the anchor. UI could use a spinner input field.

  3. Pattern number could be relative to the anchor or independent from it (so is the palette offset), depending on whether specific attribute bits are set or not. Considering the sprite animation tool is aimed to help to build animations but not to generate code for it, the UI could be simplified to use input fields for entering independent values from their anchor sprite. An extra mile target would be let the user select a checkbox to determine whether these values are relative or absolute.

For Composite sprites, the following attributes are all independent from the anchor sprite:

  1. Rotation, X-mirroring and Y-mirroring are just flags and could use of a traditional checkbox.
  2. X-scaling and Y-scaling factors should be one of the values 1x, 2x, 4x and 8x.

For Unified sprites, these attributes are controlled by the anchor sprite, so they can't be changed individually on each relative sprite. Thus, the UI could just disable these fields.

from zx-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.