{"id":19377912,"url":"https://github.com/hamolicious/chunky","last_synced_at":"2026-06-11T22:31:17.965Z","repository":{"id":57436647,"uuid":"438883022","full_name":"hamolicious/Chunky","owner":"hamolicious","description":"A chunking system for game developement","archived":false,"fork":false,"pushed_at":"2022-01-21T06:21:42.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T02:10:26.001Z","etag":null,"topics":["chunking","chunks","library","pypi","pypi-package","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/hamolicious-chunky/1.0.0/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hamolicious.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-16T06:25:45.000Z","updated_at":"2022-04-18T06:30:47.000Z","dependencies_parsed_at":"2022-09-26T17:31:02.262Z","dependency_job_id":null,"html_url":"https://github.com/hamolicious/Chunky","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/hamolicious%2FChunky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamolicious%2FChunky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamolicious%2FChunky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamolicious%2FChunky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hamolicious","download_url":"https://codeload.github.com/hamolicious/Chunky/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240511295,"owners_count":19813237,"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":["chunking","chunks","library","pypi","pypi-package","python"],"created_at":"2024-11-10T09:04:14.443Z","updated_at":"2026-06-11T22:31:17.919Z","avatar_url":"https://github.com/hamolicious.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![is_maintained](https://camo.githubusercontent.com/6e4da91cb02711349e6b9d0aba6a767362818c1d17891a02f06fded4415f6172/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d61696e7461696e65642533462d7965732d677265656e2e737667)\n![pypi_version](https://img.shields.io/badge/pypi-v1.1.1-%233775A9)\n\n# Chunky\nA chunking system for game development\n\n\n## Using the library\n\n### Installation\nrun `pip install hamolicious-chunky`\n\n### Implementing\n```python\n\n# import necessary modules from library\nfrom chunky import World as BaseWorld, Chunk, Vec2d\n\n# setup library\nBaseWorld.render_dist.set(3, 3) # how many chunks to load\nChunk.size = Vec2d(300, 300) # size of chunks in pixels\n\n# override the `generate_chunk()` method\nclass World(BaseWorld):\n\tdef generate_chunk(self, pos:Vec2d) -\u003e Chunk:\n\t\tchunk = Chunk(pos)\n\t\tchunk.objects.append() # add objects the chunk should hold\n\t\treturn chunk # should always return chunk\n\n# create player\nplayer_pos = Vec2d(500, 500)\n\n# instantiate class\nworld = World(player_pos)\n\nwhile True: # main loop\n\tworld.update(player_pos) # update to generate new chunks and update the loaded chunks\n\n\tchunks = world.get_loaded_chunks() # gets the chunks inside the render distance\n\tchunks = world.get_active_chunk() # gets the current chunk the player is in\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamolicious%2Fchunky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamolicious%2Fchunky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamolicious%2Fchunky/lists"}