{"id":19682116,"url":"https://github.com/ssloy/sdl2-demo","last_synced_at":"2025-04-29T05:30:24.746Z","repository":{"id":46860980,"uuid":"405731972","full_name":"ssloy/sdl2-demo","owner":"ssloy","description":"sdl2 platformer game blank repository","archived":false,"fork":false,"pushed_at":"2021-09-22T12:40:28.000Z","size":1871,"stargazers_count":49,"open_issues_count":1,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-05T13:23:14.663Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/ssloy.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}},"created_at":"2021-09-12T19:15:40.000Z","updated_at":"2025-03-05T20:24:26.000Z","dependencies_parsed_at":"2022-08-12T13:01:24.234Z","dependency_job_id":null,"html_url":"https://github.com/ssloy/sdl2-demo","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/ssloy%2Fsdl2-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssloy%2Fsdl2-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssloy%2Fsdl2-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssloy%2Fsdl2-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssloy","download_url":"https://codeload.github.com/ssloy/sdl2-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251444037,"owners_count":21590402,"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-11-11T18:09:43.385Z","updated_at":"2025-04-29T05:30:24.398Z","avatar_url":"https://github.com/ssloy.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A blank for a SDL2-based platformer game\nAttention, this repository does not contain (and never will) a playable game. The goal is to show basic principles to my students, so it is only a demo repo. Here is an example of what is inside:\n\n![](https://raw.githubusercontent.com/ssloy/sdl2-demo/main/doc/capture.gif)\n\n**[Check the wiki](https://github.com/ssloy/sdl2-demo/wiki) for the detailed description of how the project is built.**\n\nAt the moment of this writing the repository contains less than 300 lines of code:\n```sh\nssloy@khronos:~/sdl2-demo/src$ cat *.cpp *.h | wc -l\n296\n```\n\n\n# Compilation (tested on linux and windows, macos is yet to try)\n```sh\ngit clone --recurse-submodules https://github.com/ssloy/sdl2-demo.git \u0026\u0026\ncd sdl2-demo \u0026\u0026\nmkdir build \u0026\u0026\ncd build \u0026\u0026\ncmake .. \u0026\u0026\ncmake --build . -j \u0026\u0026\n./sdl2-demo\n```\n\nYou can open the project in Gitpod, a free online dev environment for GitHub:\n\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/ssloy/sdl2-demo)\n\n\nOn open, the editor will compile \u0026 run the program as well as open the resulting image in the editor's preview.\nJust change the code in the editor and rerun the script (use the terminal's history) to see updated images.\nNote how awesome Gitpod is, it allows to run SDL2 games directly in the browser!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssloy%2Fsdl2-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssloy%2Fsdl2-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssloy%2Fsdl2-demo/lists"}