Skip to content
forked from hawkthorne/glove

A LOVE 0.8.0 and 0.9.x compatibility library

License

Notifications You must be signed in to change notification settings

Svetomech/glove

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glove

Build Status

Glove is a LOVE 0.8.0 and 0.9.x compatibility library. It provides utility functions for smoothing over the differences between LOVE versions with the goal of writing Lua and LOVE code that is compatible on both versions.

Migrating to Glove

Glove is a single Lua file, so it's easy to integrate. Once you've downloaded the file, migrating involves only a few changes. First, load the module.

local glove = require 'glove'

Next, replace calls to backward-incompatible methods by changing love to glove. For example, love.filesystem.mkdir no longer works in LOVE 0.9.x.

Change this code:

love.filesystem.mkdir('foo')

to

glove.filesystem.mkdir('foo')

The second code snippet will now work across both LOVE versions.

Documentation

See the documentation for supported methods.

Developing

Glove is tested against both LOVE 0.8.0 and 0.9.x. To run these tests locally:

make test

About

A LOVE 0.8.0 and 0.9.x compatibility library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 96.1%
  • Makefile 3.8%
  • Shell 0.1%