{"id":25177863,"url":"https://github.com/sayoonnn/cub3d","last_synced_at":"2026-06-08T16:31:18.034Z","repository":{"id":258079491,"uuid":"741300655","full_name":"sayoonnn/cub3d","owner":"sayoonnn","description":"3d Ray Casting을 구현해보는 프로젝트","archived":false,"fork":false,"pushed_at":"2024-10-03T11:23:10.000Z","size":213,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T03:24:03.341Z","etag":null,"topics":["c","cmake","minilib-mlx","ray-casting"],"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/sayoonnn.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":"2024-01-10T05:30:33.000Z","updated_at":"2024-10-03T11:46:59.000Z","dependencies_parsed_at":"2024-10-17T15:28:10.345Z","dependency_job_id":"9faafda9-3ad4-4e1c-8a60-59fe9688db4d","html_url":"https://github.com/sayoonnn/cub3d","commit_stats":null,"previous_names":["sayoonnn/cub3d"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sayoonnn/cub3d","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sayoonnn%2Fcub3d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sayoonnn%2Fcub3d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sayoonnn%2Fcub3d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sayoonnn%2Fcub3d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sayoonnn","download_url":"https://codeload.github.com/sayoonnn/cub3d/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sayoonnn%2Fcub3d/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34071651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["c","cmake","minilib-mlx","ray-casting"],"created_at":"2025-02-09T14:49:49.275Z","updated_at":"2026-06-08T16:31:18.015Z","avatar_url":"https://github.com/sayoonnn.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![cub3D](https://github.com/user-attachments/assets/87a78bdb-c042-4b56-b5b2-904488da84df)\n\n![](https://img.shields.io/badge/c-A8B9CC?style=for-the-badge\u0026logo=c\u0026logoColor=white)\n![](https://img.shields.io/badge/cmake-064F8C?style=for-the-badge\u0026logo=cmake\u0026logoColor=white)\n\n## 개요\n[Wolfenstein 3D](https://en.wikipedia.org/wiki/Wolfenstein_3D)의 `레이 캐스팅`을 구현해보는 프로젝트로    \n\n- 42 school의 [minilib-mlx](https://harm-smits.github.io/42docs/libs/minilibx.html) 라이브러리를 이용했습니다\n- [Lay Casting](https://en.wikipedia.org/wiki/Ray_casting)을 이용하여 벽, 바탕, 천장을 그립니다\n\n\n## 사용 방법\n\n### 실행\n- `cmake`가 필요합니다\n```\nsudo apt install cmake\n\nmake \u0026\u0026 ./cub3d {mapfile}\n```\n\n### 설정\n- 실행 시 맵파일을 지정할 수 있습니다\n  - 맵파일은 `.cub`로 끝나야 합니다\n  - 맵파일은 다음과 같은 형식으로 이루어져 있습니다\n\n```\nNO ./textures/greystone.xpm\nSO ./textures/mossy.xpm\nWE ./textures/wood.xpm\nEA ./textures/greystone.xpm\n\nF 123,123,123\nC 30,30,30\n\n111111111111111111\n100000000000000001\n101000100001000001\n100010000E01000001\n100100000001000001\n100000001111000001\n100000000000000001\n111111111111111111\n```\n  - `NO`, `SO`, `WE`, `EA`는 각각, 북, 남, 동, 서의 텍스쳐 설정입니다\n  - 텍스쳐는 `.xpm` 형식만 가능합니다\n  - `F`는 바닥, `C`는 천장의 색입니다\n  - 가장 마지막 부분은 움직일 수 있는 공간으로\n    - `1`은 벽, `0`은 빈공간을 의미합니다\n    - 플레이어는 `W`, `E`, `N`, `S`로 위치를 설정 가능하며, 각각 서, 동, 북, 남을 바라보도록 할 수 있습니다\n    - 맵은 항상 닫힌 공간이어야 하며, 뚫려있을 경우 실행할 수 없습니다\n\n\n# 조작\n- `W` `A` `S` `D`로 움직이고, `up`, `down`, `left`, `right`로 시야를 돌릴 수 있습니다\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsayoonnn%2Fcub3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsayoonnn%2Fcub3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsayoonnn%2Fcub3d/lists"}