{"id":19205946,"url":"https://github.com/cheyao/tilemap","last_synced_at":"2026-04-14T04:31:01.794Z","repository":{"id":241357632,"uuid":"803288892","full_name":"cheyao/TileMap","owner":"cheyao","description":"Demo SDL3 cross-platform project","archived":false,"fork":false,"pushed_at":"2024-06-01T16:01:21.000Z","size":250,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T06:29:38.585Z","etag":null,"topics":["android","cross-platform","emscripten","linux","macos","sdl","sdl3","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cheyao.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":"2024-05-20T12:46:45.000Z","updated_at":"2025-02-20T22:07:47.000Z","dependencies_parsed_at":"2024-05-30T05:52:44.315Z","dependency_job_id":"d6727140-e0a3-4316-9812-909adf2d5f40","html_url":"https://github.com/cheyao/TileMap","commit_stats":null,"previous_names":["cheyao/physics","cheyao/tilemap"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/cheyao/TileMap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheyao%2FTileMap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheyao%2FTileMap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheyao%2FTileMap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheyao%2FTileMap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cheyao","download_url":"https://codeload.github.com/cheyao/TileMap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheyao%2FTileMap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31782736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["android","cross-platform","emscripten","linux","macos","sdl","sdl3","windows"],"created_at":"2024-11-09T13:14:19.495Z","updated_at":"2026-04-14T04:31:01.777Z","avatar_url":"https://github.com/cheyao.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tile Map\n\nA template SDL3 cross-platform project\n\nYou can find compiled binaries and a play-on-web version here: https://cheyao.itch.io/test-sdl3 \n\n## Dependencies:\nSDL3\nSDL3_image\n\n## Building on mac and linux:\n\n```\ngit clone https://github.com/cheyao/TileMap\ncd TileMap\nmkdir build \u0026\u0026 cd build\ncmake -DCMAKE_BUILD_TYPE=Release ..\ncmake --build .\n```\nTo make release on mac:\n```\n./mac-patch-dylib.sh\n```\nThis will patch the binary to include SDL in the bundle\n\n## Web \n\nCompile and install `SDL` and `SDL_image` as you would but with emscripten. (You need static libs `-DBUILD_SHARED_LIBS=OFF`)\n\n```\nmkdir build \u0026\u0026 cd build\nemcmake cmake -DCMAKE_BUILD_TYPE=Release ..\nemmake make \n```\nWhen building there should be errors saying for example that you need png library, so go to the `external` folder of `SDL_image`, run `./download.sh` and go to the directories of the missing libraryies and build with cmake \u0026 emscripten.\n\n## Linux 32 bit\n```\nexport CFLAGS=\"-m32\"\nexport CXXFLAGS=\"-m32\"\nexport LDFLAGS=\"-m32\"\nmkdir build \u0026\u0026 cd build\ncmake -DCMAKE_BUILD_TYPE=Release ..\ncmake --build .\n```\n\n## Linux for distribution\nTo distribute on linux you can use \n```\n./cmake/distribute-linux.sh\n```\nThe output will be in `output`\n\n## For windows on linux\n```\nmkdir build \u0026\u0026 cd build\nx86_64-w64-mingw32-cmake -DCMAKE_BUILD_TYPE=Release ..\ncmake --build .\n```\n\nSee https://cheyao.github.io/cross-compile-windows.html\n\n## Emscriptien \n```\nmkdir build \u0026\u0026 cd build\nsource ~/emsdk/emsdk_env.sh\nemcmake -DCMAKE_BUILD_TYPE=Release ..\nemmake\n```\n\nSee https://cheyao.github.io/cross-compile-web.html\n\n## Android \n```\ngit submodule update --init --recursive\ncd android\n./gradlew build\n```\n\nYou will find an unsigned apk in `app/build/outputs/apk/release/`\n\nYou can sign the app with `cmake/sign-apk.sh`, just edit it with your env variables\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheyao%2Ftilemap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheyao%2Ftilemap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheyao%2Ftilemap/lists"}