Skip to content

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

@burtlo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions