Skip to content
This repository has been archived by the owner on Dec 16, 2018. It is now read-only.

hawkthorne/glove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 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 and 0.9 compatibility library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published