{"id":15956849,"url":"https://github.com/lioncat2002/pylcanim","last_synced_at":"2025-04-04T09:28:57.730Z","repository":{"id":122940725,"uuid":"320815435","full_name":"Lioncat2002/pylcanim","owner":"Lioncat2002","description":"A simple library for playing animations made with sprite factory","archived":false,"fork":false,"pushed_at":"2020-12-24T07:16:09.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T09:39:11.167Z","etag":null,"topics":["animation","library","pygame","python","python-3","python3","sprite-animation"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Lioncat2002.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-12-12T11:33:34.000Z","updated_at":"2021-07-09T04:34:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"af12d0bf-15f5-4dcb-a710-a324e6498c7b","html_url":"https://github.com/Lioncat2002/pylcanim","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":0.4,"last_synced_commit":"6d4cad1253c78f7fdf5071b3bc512872c0025647"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lioncat2002%2Fpylcanim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lioncat2002%2Fpylcanim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lioncat2002%2Fpylcanim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lioncat2002%2Fpylcanim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lioncat2002","download_url":"https://codeload.github.com/Lioncat2002/pylcanim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247152214,"owners_count":20892457,"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":["animation","library","pygame","python","python-3","python3","sprite-animation"],"created_at":"2024-10-07T13:36:16.925Z","updated_at":"2025-04-04T09:28:57.696Z","avatar_url":"https://github.com/Lioncat2002.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pylcanim\n\n\u003cbr\u003epylcanim is a simple library for playing animations made with sprite factory\u003c/br\u003e\n\u003cbr\u003e(https://github.com/craftworkgames/SpriteFactory)\u003c/br\u003e\n\n## Installation of pylcanim library\n\u003cbr\u003eTo install from pypi with pip\u003c/br\u003e\n```\npip install pylcanim\n```\n## Downloading SpriteFactory\n\n\u003cbr\u003eYou can directly download the executable(note: At this point this is windows only).\u003c/br\u003e\n\u003cbr\u003eFrom: https://craftworkgames.itch.io/sprite-factory\u003c/br\u003e\n\u003cbr\u003eOr build it yourself\u003c/br\u003e\n\u003cbr\u003eFrom: https://github.com/craftworkgames/SpriteFactory\u003c/br\u003e\n\n## Using SpriteFactory\n\n\u003cbr\u003eYou can see this video https://youtu.be/mSakKpmBjrg (time stamp in description).\u003c/br\u003e\n\n\n## Using the library\n\nimport the pylcanim into your project with\n\n```py\nfrom pylcanim import pylcanim\n```\nThen initialize the library with\n```py\npylcanim.init('Path/To/Your/SpriteFactoryFile.sf')\n\n```\n\nIn your main loop write\n```py\nimage=pylcanim.lcAnim(fpscount,row)\n```\nWhere \n```\nfpscount is an integer which determines how fast your animation should run(0 is fastest and becomes slower increasingly)\n```\nand\n```\nrow is the row number in which your sprite is situated(default=0 for single line spritesheets)\n```\n## An entire Example\n\n```py\nimport pygame\nfrom pylcanim import pylcanim as p\n\n(width,height)=(300,200)\nclock=pygame.time.Clock()\nscreen=pygame.display.set_mode((width,height))\npygame.display.flip()\nrunning=True\np.init('run.sf')\nwhile running:\n    image =p.lcAnim(3,0)\n    for event in pygame.event.get():\n        if event.type==pygame.QUIT:\n\n            running=False\n    screen.fill((255, 255, 255))\n    screen.blit(image, (0, 50))\n    pygame.display.update()\n\n    clock.tick(60)\npygame.quit()\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flioncat2002%2Fpylcanim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flioncat2002%2Fpylcanim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flioncat2002%2Fpylcanim/lists"}