{"id":23257103,"url":"https://github.com/0jc1/sdl2-raycaster","last_synced_at":"2025-04-06T04:41:59.394Z","repository":{"id":189216045,"uuid":"679788528","full_name":"0jc1/sdl2-raycaster","owner":"0jc1","description":"A basic SDL2 C++ Raycaster","archived":false,"fork":false,"pushed_at":"2024-11-19T07:13:10.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T10:53:08.566Z","etag":null,"topics":["cpp","cpp-sdl2","raycaster","sdl2"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0jc1.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-17T16:09:05.000Z","updated_at":"2024-11-19T07:13:13.000Z","dependencies_parsed_at":"2024-12-19T12:30:40.507Z","dependency_job_id":"b4ebae6b-d327-4406-95d9-35ecae33ed94","html_url":"https://github.com/0jc1/sdl2-raycaster","commit_stats":null,"previous_names":["jcook0/sdl2-raycaster","0jc1/sdl2-raycaster"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0jc1%2Fsdl2-raycaster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0jc1%2Fsdl2-raycaster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0jc1%2Fsdl2-raycaster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0jc1%2Fsdl2-raycaster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0jc1","download_url":"https://codeload.github.com/0jc1/sdl2-raycaster/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247436142,"owners_count":20938532,"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":["cpp","cpp-sdl2","raycaster","sdl2"],"created_at":"2024-12-19T12:26:55.997Z","updated_at":"2025-04-06T04:41:59.368Z","avatar_url":"https://github.com/0jc1.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SDL2 Raycaster\nA basic SDL2 raycasting engine written in C++. Raycasting is a rendering technique to create a puedo 3D game from a 2D map. This was done by casting rays for each horizontal screen pixel and calculating the length of the rays using DDA algorithm.\n\n## Screenshot\n![eyJhbGciOiJIUzI1NiJ9 eyJpbWciOiJfMWFhNjhiZDAyZDdjYTMwZjI4ZTdmZDcyYmIyMjYzNjIifQ hIVZ5ViT5pkWYZiyExs9b1qyG2560jVeXvxE3MPVkuc-png](https://github.com/jcook0/sdl2-raycaster/assets/52017130/95ad71e5-ce50-4607-823e-858a04a17847)\n\n## Setup \n\n### Linux: \nFirst, make sure you have a C++ compiler installed. Then, install SDL2 and CMake:\n```\nsudo apt-get install libsdl2-dev cmake make g++\n```\n\nBuild and compile:\n```\ncmake \nmake\n```\n\n### Windows: \nDownload and install VS with C++ or MinGW-w64. You also will need to download SDL2 for Windows. Then, change the path in CMakeLists.txt to your /SDL2/ folder. \nMake sure `SDL2.dll` is in the right directory.\n\nBuild and compile:\n```\ncmake .. -G \"Visual Studio 16 2019\" -A x64\ncmake --build . --config Release\n```\nReplace \"Visual Studio 16 2019\" with your version of Visual Studio. \n\n## References\nhttps://lodev.org/cgtutor/raycasting.html\n\nhttps://lazyfoo.net/tutorials/SDL/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0jc1%2Fsdl2-raycaster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0jc1%2Fsdl2-raycaster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0jc1%2Fsdl2-raycaster/lists"}