Skip to content

Game crashes when animation image file is specified but missing #7

Description

@burtlo

The following Model had the misspelled image (it was suppose to be villain) and it failed to find the file and thus crashed.

class Villian < Metro::UI::Sprite

  property :pulsing, type: :animation, path: "villin.png",
    dimensions: Dimensions.of(64,64), time_per_image: 16

  def image
    pulsing.image
  end

end

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions