Compare commits
3 Commits
2a29240aea
...
b050a985ba
Author | SHA1 | Date | |
---|---|---|---|
b050a985ba | |||
36dcb7b4af | |||
109a51a147 |
3
LICENSE
Normal file
3
LICENSE
Normal file
|
@ -0,0 +1,3 @@
|
|||
Copyright (c) 2018-2024 Jon Michael Aanes
|
||||
|
||||
All rights reserved.
|
21
README.md
21
README.md
|
@ -1,9 +1,24 @@
|
|||
<!--- WARNING --->
|
||||
<!--- THIS IS AN AUTO-GENERATED FILE --->
|
||||
<!--- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN --->
|
||||
|
||||
# Spritesheet
|
||||
|
||||
Tiny library for working with textures and animated textures.
|
||||
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`.
|
||||
send certain useful constants along, notably `spritesheet_inverse_width` and
|
||||
`spritesheet_inverse_height`.
|
||||
|
||||
# License
|
||||
|
||||
```
|
||||
Copyright (c) 2018-2024 Jon Michael Aanes
|
||||
|
||||
All rights reserved.
|
||||
```
|
||||
|
|
2
init.lua
2
init.lua
|
@ -1,4 +1,4 @@
|
|||
local _VERSION = '0.1.2'
|
||||
local _VERSION = '0.1.3'
|
||||
|
||||
local lib = require ((...) .. '.spritesheet')
|
||||
lib._VERSION = _VERSION
|
||||
|
|
|
@ -1,7 +1,16 @@
|
|||
--- Library for managing spritesheets.
|
||||
---
|
||||
--- Has support for both individual images in spritesheets and animations. This
|
||||
--- can be specified from a lua file placed beside the spritesheet image file.
|
||||
--[[-- # 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`.
|
||||
--]]
|
||||
|
||||
local error_original = error
|
||||
local error, error_internal do
|
||||
|
|
Loading…
Reference in New Issue
Block a user