Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.
This repository was archived by the owner on Nov 14, 2023. It is now read-only.

Definision of setChangeFPS() is wrong/confusing #106

Closed

Description

@arnuschky

The definition of setChangeFPS() in SpriteImage.js is wrong or at least confusing:

        /**
         * Set the elapsed time needed to change the image index.
         * @param fps an integer indicating the time in milliseconds to change.
         * @return this
         */
        setChangeFPS:function (fps) {
            this.changeFPS = fps;
            return this;
        }

Here, the integer indicates the time between frames. That is, high integer, fewer frames-per-second (FPS). Low integer, higher FPS.

That is, the parameter does exactly the opposite of one would expect.

Activity

  1. hyperandroid commented on Jan 13, 2013

    @hyperandroid
    Owner

    Maybe.
    Do you have a suggestion for a new method ?

    Thanks.

    • ibon
  2. arnuschky commented on Jan 13, 2013

    @arnuschky
    Author

    Well, either you change the behavior of the method such that it actually sets the frames per second, or you rename it for something like setAnimationSpeed(timeDelta).

  3. hyperandroid commented on Jan 15, 2013

    @hyperandroid
    Owner

    Didn't i told previously i love pull requests ?
    Feel free to submit your own.
    And don't remove the original method :)

    thanks.

    • ibon
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions