{"id":21955023,"url":"https://github.com/f0rkr/cub3d","last_synced_at":"2025-07-02T08:32:58.104Z","repository":{"id":159752619,"uuid":"363684286","full_name":"f0rkr/Cub3D","owner":"f0rkr","description":"Ray-casting game for wasting productive time.","archived":false,"fork":false,"pushed_at":"2021-05-23T13:50:56.000Z","size":521,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T12:28:17.860Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/f0rkr.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":"2021-05-02T15:30:36.000Z","updated_at":"2024-02-07T17:47:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"331e9a0b-cf5d-4283-ac7a-05166d3f3af7","html_url":"https://github.com/f0rkr/Cub3D","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/f0rkr/Cub3D","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f0rkr%2FCub3D","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f0rkr%2FCub3D/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f0rkr%2FCub3D/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f0rkr%2FCub3D/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f0rkr","download_url":"https://codeload.github.com/f0rkr/Cub3D/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f0rkr%2FCub3D/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263102527,"owners_count":23414119,"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-29T07:27:29.137Z","updated_at":"2025-07-02T08:32:58.069Z","avatar_url":"https://github.com/f0rkr.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cub3D\nThe goal of ``Cub3D`` is to make *something* using raycasting from scratch with low level C ✨ (like [Wolfenstein 3D](https://fr.wikipedia.org/wiki/Wolfenstein_3D)).\n\n\u003cimg align=\"center\" width=700px height=700px src=\"cub.png\" alt=\"Screenshot of the game\" /\u003e\n\nMaking this game gave me a basic idea on how games are made, it's was a fun experience.\nAlthoug It was pain in the arse, managing all memory leaks and function that's *C* makes you do on your own.\nEnjoy it 🎴\n\n# Usage\n\n``f0rkr@shell» make`` \u003c/br\u003e\n``f0rkr@shell» ./cub3D map.cub``\n\nYou can edit map.cub to change textures and player position, sprites textures, colors and map form.\n\n\u003cimg src=\"map.png\" width=400px height=400px alt=\"Screenshot of the map config file\" /\u003e\n\nIt also has the feature to screenshot the game and save in a bmp format simply by adding --save to your command.\nuse: \n\n``f0rkr@shell» ./cub3D map.cub --save``\n\n# Resources I used:\n\n* [Playable Wolfenstein 3D](http://users.atw.hu/wolf3d/)\n* [Raycasting in JS](http://www.playfuljs.com/a-first-person-engine-in-265-lines/)\n* [Some X11 event numbers](https://github.com/qst0/ft_libgfx)\n* [Full tutorial in English](https://lodev.org/cgtutor/raycasting.html)\n* [Full tutorial in French (translation of the English tutorial)](http://forums.mediabox.fr/wiki/tutoriaux/flashplatform/affichage/3d/raycasting)\n* [Images in minilibx](https://github.com/keuhdall/images_example)\n* [BMP format on StackOverflow](https://stackoverflow.com/questions/2654480/writing-bmp-image-in-pure-c-c-without-other-libraries)\n* [BMP format explanation](https://web.archive.org/web/20080912171714/http://www.fortunecity.com/skyscraper/windows/364/bmpffrmt.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff0rkr%2Fcub3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff0rkr%2Fcub3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff0rkr%2Fcub3d/lists"}