{"id":20266335,"url":"https://github.com/styzex/rust_ray","last_synced_at":"2025-03-03T22:09:07.358Z","repository":{"id":261963552,"uuid":"880524187","full_name":"Styzex/rust_ray","owner":"Styzex","description":"A simple ray casting game engine written in Rust.","archived":false,"fork":false,"pushed_at":"2025-01-17T21:24:46.000Z","size":68,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T22:09:03.499Z","etag":null,"topics":["game-development","game-engine","raycasting","raycasting-engine","rust","rust-crate","rust-game-developement","rust-gamedev","rust-lang","rust-library"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Styzex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-10-29T22:02:18.000Z","updated_at":"2025-01-17T21:24:47.000Z","dependencies_parsed_at":"2024-11-09T15:38:01.576Z","dependency_job_id":"3d189b7a-03ec-4531-bcf4-762047634808","html_url":"https://github.com/Styzex/rust_ray","commit_stats":null,"previous_names":["styzex/rust_ray"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Styzex%2Frust_ray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Styzex%2Frust_ray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Styzex%2Frust_ray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Styzex%2Frust_ray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Styzex","download_url":"https://codeload.github.com/Styzex/rust_ray/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241746796,"owners_count":20013165,"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":["game-development","game-engine","raycasting","raycasting-engine","rust","rust-crate","rust-game-developement","rust-gamedev","rust-lang","rust-library"],"created_at":"2024-11-14T12:08:19.722Z","updated_at":"2025-03-03T22:09:07.352Z","avatar_url":"https://github.com/Styzex.png","language":"Rust","readme":"# Rust Ray\n\nA simple raycasting-based game engine written in Rust.\n\n## License\n\nRust Ray is released under the [Apache 2.0 License](http://www.apache.org/licenses/).\n\n## Dependencies\n\n- glu-sys\n- imgui\n- libm\n- sdl2\n\n## Prerequisites\n- Run the Visual Studio 2019 build tools installer\n- For easy setup, select the Desktop development with C++ workload in the installer.\n- For a minimal setup, follow these steps:\n    - In the installer, navigate to Individual components\n    - Select the latest MSVC for your architecture and version of Windows\n    - Select the latest Windows SDK for your version of Windows\n    - Select the C++ CMake tools for Windows component\n    - Install the components\n\n## Compiling\n\n### Windows\nTo compile the game engine just run `cargo build` everything should work out of the box.\n\n### Linux\n\n#### Debian/Ubuntu\n```bash\nsudo apt install libsdl2-dev libgl1-mesa-dev libglu1-mesa-dev\n```\n#### Fedora\n```bash\nsudo dnf install SDL2-devel mesa-libGL-devel mesa-libGLU-devel\n```\n#### Arch Linux\n```bash\nsudo pacman -S sdl2 mesa\n```\n#### NixOS\nAdd this to your configuration.nix:\n```\nenvironment.systemPackages = with pkgs; [\n  SDL2\n  libGL\n  glu\n];\n```\nOr for a temporary shell:\n```bash\nnix-shell -p SDL2 libGL glu\n```\nAfter that you should be able compile the game engine with this commmand `cargo build` the build.rs will set everything you need for it to compile on linux.\n\n### MacOS\n\nTo compile the game engine just run `cargo build` everything should work out of the box.\n\n## Planned Features\n\n- Implement a simple 3D renderer for obj models (experimental)\n- ImGui or egui debug menu\n  - Variable manipulation\n  - Position viewing\n  - Performance statistics\n- A simple level editor\n- Baked lighting (experimental)\n\n## Implemented Features\n\n- Fake 3D rendering from the raycasting\n- 2D rendering\n- Raycasting\n- Player movement\n- Map from a **_*map*_.rrm** file\n    - Currently only supports maps with the size of 8 blocks\n \n## The custom map file format\n\n- The name of the file will be shown in the map selection menu so map if its called map.rrm\n- It doesn't support comments\n- Any number that is not a 1 or 0 will break it and possibly crash your game\n\nmap.rrm\n\n```\nSIZE=8\n[1, 1, 1, 1, 1, 1, 1, 1],\n[1, 0, 0, 0, 0, 0, 0, 1],\n[1, 0, 0, 0, 0, 1, 0, 1],\n[1, 1, 1, 1, 0, 1, 1, 1],\n[1, 0, 0, 1, 0, 0, 0, 1],\n[1, 0, 0, 0, 0, 0, 0, 1],\n[1, 0, 0, 1, 0, 0, 0, 1],\n[1, 1, 1, 1, 1, 1, 1, 1],\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstyzex%2Frust_ray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstyzex%2Frust_ray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstyzex%2Frust_ray/lists"}