Moved version
This commit is contained in:
parent
b050a985ba
commit
4a734ffac4
6
init.lua
6
init.lua
|
@ -1,5 +1 @@
|
|||
local _VERSION = '0.1.3'
|
||||
|
||||
local lib = require ((...) .. '.spritesheet')
|
||||
lib._VERSION = _VERSION
|
||||
return lib
|
||||
return require ((...) .. '.spritesheet')
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
--[[-- # Spritesheet
|
||||
-- # Spritesheet
|
||||
--
|
||||
-- Library for managing sprite sheets of textures and animations.
|
||||
--
|
||||
-- Has support for both individual images in spritesheets and animations. This
|
||||
-- can be specified from a lua file placed beside the spritesheet image file.
|
||||
--
|
||||
-- ## Notes
|
||||
--
|
||||
-- - When drawing an image or animation when a shader is defined the library may
|
||||
-- send certain useful constants along, notably `spritesheet_inverse_width` and
|
||||
-- `spritesheet_inverse_height`.
|
||||
|
||||
Library for managing sprite sheets of textures and animations.
|
||||
|
||||
Has support for both individual images in spritesheets and animations. This
|
||||
can be specified from a lua file placed beside the spritesheet image file.
|
||||
|
||||
## Notes
|
||||
|
||||
- When drawing an image or animation when a shader is defined the library may
|
||||
send certain useful constants along, notably `spritesheet_inverse_width` and
|
||||
`spritesheet_inverse_height`.
|
||||
--]]
|
||||
local _VERSION = '0.1.3'
|
||||
|
||||
local error_original = error
|
||||
local error, error_internal do
|
||||
|
@ -349,6 +350,7 @@ end
|
|||
local SpriteSheet = {}
|
||||
SpriteSheet.__index = SpriteSheet
|
||||
SpriteSheet.is_spritesheet = true
|
||||
SpriteSheet._VERSION = _VERSION
|
||||
|
||||
function SpriteSheet.new (filename)
|
||||
local quad_data = load_quad_data(filename)
|
||||
|
|
Loading…
Reference in New Issue
Block a user