Spry

Spry is a delightfully small 2D game framework made for rapid prototyping and game jams. Inspired by LÖVE.

Get started View on GitHub

Features

Spry's features exist to improve the time it takes for you to to tweak, experiment, and iterate during the early stages of your project.

Code Examples

Hello, World!

function spry.start()
  font = spry.font_load 'roboto.ttf'
end

function spry.frame(dt)
  font:draw('Hello, World!', 100, 100)
end

Load an image and move it to the left over time.

function spry.start()
  img = spry.image_load 'tile.png'
  x = 0
end

function spry.frame(dt)
  x = x + dt * 4
  img:draw(x, 100)
end

Load an Aseprite file and display a sprite animation.

class 'Player'

function Player:new(x, y)
  self.x, self.y = x, y
  self.sprite = spry.sprite_load 'player.ase'
end

function Player:update(dt)
  self.sprite:update(dt)
end

function Player:draw()
  local scale = 4
  self.sprite:draw(self.x, self.y, 0, scale, scale)
end

function spry.start()
  player = Player(100, 100)
end

function spry.frame(dt)
  player:update(dt)
  player:draw()
end
Make your first Spry project