{"id":17012216,"url":"https://github.com/timothymtorres/simple-image-textures","last_synced_at":"2025-03-22T13:44:31.104Z","repository":{"id":70533234,"uuid":"175626123","full_name":"timothymtorres/Simple-Image-Textures","owner":"timothymtorres","description":"A library to easily load TexturePacker images into CoronaSDK ","archived":false,"fork":false,"pushed_at":"2019-03-14T13:52:48.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T13:55:45.609Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timothymtorres.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-14T13:19:26.000Z","updated_at":"2019-03-14T13:52:49.000Z","dependencies_parsed_at":"2023-04-04T06:34:22.864Z","dependency_job_id":null,"html_url":"https://github.com/timothymtorres/Simple-Image-Textures","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timothymtorres%2FSimple-Image-Textures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timothymtorres%2FSimple-Image-Textures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timothymtorres%2FSimple-Image-Textures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timothymtorres%2FSimple-Image-Textures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timothymtorres","download_url":"https://codeload.github.com/timothymtorres/Simple-Image-Textures/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244966461,"owners_count":20539794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T06:09:52.809Z","updated_at":"2025-03-22T13:44:31.083Z","avatar_url":"https://github.com/timothymtorres.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub last commit](https://img.shields.io/github/last-commit/timothymtorres/simple-image-textures.svg)](https://github.com/timothymtorres/Simple-Image-Textures/commits/master)\n[![GitHub](https://img.shields.io/github/license/timothymtorres/simple-image-textures.svg)](https://github.com/timothymtorres/Simple-Image-Textures/blob/master/LICENSE.txt)\n[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/timothymtorres/simple-image-textures.svg)](http://isitmaintained.com/project/timothymtorres/simple-image-textures \"Average time to resolve an issue\")\n\n\n![Texturepacker Image](https://www.codeandweb.com/o/img/texturepacker512-512.png)\n\n# Simple Image Textures\n\n*Simple Image Textures* (SIT) is a library used to quickly load image sheets into CoronaSDK with [TexturePacker](https://www.codeandweb.com/texturepacker)(™).  Instead of having to manually load each individual image sheet into a project, this library loads them all into a table for easy access.  Just point SIT to the directory(s) where the resources are located and it does all the heavy lifting.\n\nI created SIT initially as a added feature for another library called [Berry](https://github.com/ldurniat/Berry).  After the feature was added, I decided to also make it into a stand alone tool that other developers (hopefully) might find useful.\n\n### Quick Start Guide\n\n```lua\nlocal SIT = require('simple_image_textures')\nSIT.new(directory)  -- ie. \"graphics/images/stuff\"\n\nimage = display.newImageRect( SIT.getTexture(texture_name) )\nimage.x, image.y = 100, 100\n```\n\n### SIT.new(directory)\n\nSIT will scan through the given directory and all sub-directories for Texturepacker files and load them.  **Both the matching Texturepacker images and lua files provided must have the same name and be in the same directory**.\n\n### SIT.getTexture(name)\n\nThis returns an image sheet, frame, width, and height for a texturepack image.  Simply pass the name of the image to the method like so: `display.newImageRect( SIT.getTexture('crowbar'))` (assuming image is named crowbar.png) and you will have a quick image to load.  No need to deal with multiple image sheets, sizes, or frames.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimothymtorres%2Fsimple-image-textures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimothymtorres%2Fsimple-image-textures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimothymtorres%2Fsimple-image-textures/lists"}