{"id":13337129,"url":"https://github.com/tw-tooling/tw-simple-mapgen","last_synced_at":"2025-03-11T04:31:37.218Z","repository":{"id":166818148,"uuid":"345466997","full_name":"tw-tooling/tw-simple-mapgen","owner":"tw-tooling","description":"Simple Map-generator for Teewords","archived":false,"fork":false,"pushed_at":"2023-12-02T02:28:59.000Z","size":86,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-30T20:51:18.673Z","etag":null,"topics":["teeworlds"],"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/tw-tooling.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}},"created_at":"2021-03-07T22:23:16.000Z","updated_at":"2023-11-30T14:14:28.000Z","dependencies_parsed_at":"2023-11-30T15:26:14.879Z","dependency_job_id":null,"html_url":"https://github.com/tw-tooling/tw-simple-mapgen","commit_stats":null,"previous_names":["jonasloos/tw-utils","tw-tooling/tw-simple-mapgen"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tw-tooling%2Ftw-simple-mapgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tw-tooling%2Ftw-simple-mapgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tw-tooling%2Ftw-simple-mapgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tw-tooling%2Ftw-simple-mapgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tw-tooling","download_url":"https://codeload.github.com/tw-tooling/tw-simple-mapgen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221205751,"owners_count":16776266,"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":["teeworlds"],"created_at":"2024-07-29T19:11:13.434Z","updated_at":"2024-10-23T15:31:36.324Z","avatar_url":"https://github.com/tw-tooling.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Map-generator for Teeworlds\n\nThis Repository contains python scripts including a gores map generator for teeworlds.\n\nYou can download the map generator application for windows [here](https://github.com/tw-tooling/tw-simple-mapgen/releases/download/v0.1/tw-mapgen-windows.exe) (no installation required).\n\nlayered | spiral\n--- | ---\n![Map 1](https://user-images.githubusercontent.com/33965649/113918790-22136980-97e3-11eb-92ba-0c47300ed3e8.png) | ![Map 2](https://user-images.githubusercontent.com/33965649/113918826-2a6ba480-97e3-11eb-8a58-32b703fe92c6.png)\n\nAll results are saved to the current working directory if no other path is specified.\n\n## Requirements\n\nThe scripts require Python 3 and `numpy`. You can install `numpy` with `pip install numpy`.\n\n## start gui (from source)\n\n```sh\npython src/tw-mapgen.py\n```\n\n## create map\n\nGenerate a teeworlds map (the filename argument is optional):\n\n```sh\npython src/create_random_blocks.py [FILENAME]\npython src/create_spiral.py [FILENAME]\npython src/create_layered.py [FILENAME]\n\n# if you want to set custom directions and config, change `create_something.py` and run\npython src/create_something.py\n```\n\nThose scripts utilize `create_map.py` to build and save the map file. The map is saved as `FILENAME`, with the default FILENAME being `newmap.map`.\n\n\n## save images\n\nExtract all images saved in a teeworlds map to the working directory (doesn't include referenced external images):\n\n```sh\npython src/save_images.py PATH_TO_MAP\n```\n\n## generate gui application with pyinstaller\n\n```sh\npyinstaller tw-mapgen.py --onefile\n```\n\n## helpful teeworlds map-/datafile documentation:\n\n* german map explanation: https://teeworlds-friends.de/thread/7563-roh-aufbau-einer-teeworlds-map/\n* ddnet map documentation: https://ddnet.tw/libtw2-doc/map/\n* teeworlds mapitem source: https://github.com/teeworlds/teeworlds/blob/master/src/game/mapitems.h\n* twl datafile items source: https://github.com/Malekblubb/twl/blob/master/include/twl/files/map/map_datafile_items.hpp\n* libtw2 datafile documentation: https://github.com/heinrich5991/libtw2/blob/master/doc/datafile.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftw-tooling%2Ftw-simple-mapgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftw-tooling%2Ftw-simple-mapgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftw-tooling%2Ftw-simple-mapgen/lists"}