Skip to content

Image.new behaviour differs from Playdate's #86

@AntonPetrov83

Description

@AntonPetrov83

Playdate implementation of image.new()

  1. Allows image paths to have extension specified like in the "2020" standard example:
	local bgImg = gfx.image.new('images/background.png')
  1. Returns nil if image file not found. Mentioned above standard example "2020" tries to load non-existent images and fails quitely:
local explosionImages = {}
for i = 1, 8 do
	explosionImages[i] = gfx.image.new('images/x/'..i)
end

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