loading_image.lua 191 B

12345678910111213
  1. -- Load an image and display it
  2. local image
  3. function love.load()
  4. image = love.graphics.newImage("assets/chest.png")
  5. end
  6. function love.draw()
  7. love.graphics.draw(image, 20, 20)
  8. end