{"id":20204581,"url":"https://github.com/wilsonsilva/raylib-ruby","last_synced_at":"2025-10-25T01:39:56.556Z","repository":{"id":200957917,"uuid":"695902381","full_name":"wilsonsilva/raylib-ruby","owner":"wilsonsilva","description":"Ruby bindings for raylib, a simple and easy-to-use library to enjoy videogames programming.","archived":false,"fork":false,"pushed_at":"2023-11-03T06:00:42.000Z","size":6965,"stargazers_count":22,"open_issues_count":6,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-11T10:58:27.159Z","etag":null,"topics":["game","game-development","game-engine","raylib","raylib-c","raylib-rb","raylib-ruby","ruby","ruby-game","ruby-games","ruby-gem"],"latest_commit_sha":null,"homepage":"https://raylib-ruby.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wilsonsilva.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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-09-24T15:21:14.000Z","updated_at":"2025-05-26T13:39:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"b74b2c8d-b1f2-4c64-9d09-ec8d05c70e63","html_url":"https://github.com/wilsonsilva/raylib-ruby","commit_stats":null,"previous_names":["wilsonsilva/raylib-ruby"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wilsonsilva/raylib-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonsilva%2Fraylib-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonsilva%2Fraylib-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonsilva%2Fraylib-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonsilva%2Fraylib-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wilsonsilva","download_url":"https://codeload.github.com/wilsonsilva/raylib-ruby/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonsilva%2Fraylib-ruby/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260251505,"owners_count":22981058,"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","game-development","game-engine","raylib","raylib-c","raylib-rb","raylib-ruby","ruby","ruby-game","ruby-games","ruby-gem"],"created_at":"2024-11-14T05:14:00.501Z","updated_at":"2025-10-25T01:39:51.516Z","avatar_url":"https://github.com/wilsonsilva.png","language":"Ruby","readme":"# Raylib for Ruby\n\n![raylib-ruby logo](.github/assets/raylib-ruby.png)\n\nRuby bindings for [raylib](https://www.raylib.com/), a simple and easy-to-use library to enjoy videogames programming.\n\n## Features\n\n- Feature parity with [raylib 4.5](https://github.com/raysan5/raylib/tree/4.5.0)\n- **NO external dependencies besides [raylib](https://github.com/raysan5/raylib/tree/4.5.0)**, all required libraries are [bundled into raylib](https://github.com/raysan5/raylib/tree/master/src/external)\n- Multiple platforms supported: **Windows, Linux, MacOS, RPI... and more!**\n- Hardware accelerated with OpenGL (**1.1, 2.1, 3.3, 4.3 or ES 2.0**)\n- **Unique OpenGL abstraction layer** (usable as standalone module): [rlgl](https://github.com/raysan5/raylib/blob/master/src/rlgl.h)\n- Multiple **Fonts** formats supported (TTF, Image fonts, AngelCode fonts)\n- Multiple texture formats supported, including **compressed formats** (DXT, ETC, ASTC)\n- **Full 3D support**, including 3D Shapes, Models, Billboards, Heightmaps and more!\n- Flexible Materials system, supporting classic maps and **PBR maps**\n- **Animated 3D models** supported (skeletal bones animation) (IQM)\n- Shaders support, including model and **postprocessing** shaders.\n- **Powerful math module** for Vector, Matrix and Quaternion operations: [raymath](https://github.com/wilsonsilva/raylib-ruby/blob/main/lib/raylib/raymath/)\n- Audio loading and playing with streaming support (WAV, OGG, MP3, FLAC, XM, MOD)\n- **VR stereo rendering** support with configurable HMD device parameters\n- Huge examples collection with [+65 code examples](https://github.com/wilsonsilva/raylib-ruby/tree/main/examples)!\n- **Free and open source**.\n- Linter for best practices: [rubocop-raylib](https://github.com/wilsonsilva/rubocop-raylib)\n\n## Installation\n\n1. Follow the instructions on the [native raylib wiki](https://github.com/raysan5/raylib#build-and-installation) to install the __native raylib library__ on your operating\nsystem.\n\n2. Install the gem by executing: `bundle add raylib` or `gem install raylib --pre`\n\n## Usage\n\nRaylib can be used in two ways: __namespaced__ or __global__.\n\n### Namespaced\n\nThe namespaced usage is recommended as it avoids global namespace pollution:\n\n```ruby\nrequire 'raylib'\n\nRaylib.init_window(800, 450, 'My window')\n\nuntil Raylib.window_should_close\n  Raylib.begin_drawing\n  Raylib.clear_background(Raylib::WHITE)\n  Raylib.draw_text('Congrats! You created your first window!', 190, 200, 20, Raylib::BLACK)\n  Raylib.end_drawing\nend\n\nRaylib.close_window\n```\n\n### Global\n\nIf you prefer to use Raylib globally, you can require the `raylib/dsl`:\n\n```ruby\nrequire 'raylib/dsl'\n\ninit_window(800, 450, 'My window')\n\nuntil window_should_close\n  begin_drawing\n  clear_background(WHITE)\n  draw_text('Congrats! You created your first window!', 190, 200, 20, BLACK)\n  end_drawing\nend\n\nclose_window\n```\n\nIn the code above, `require 'raylib/dsl` is a shorthand for `require 'raylib'` + `include Raylib`.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can\nalso run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the\nversion number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the\nversion, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/wilsonsilva/raylib-ruby. This project is intended\nto be a safe, welcoming space for collaboration, and contributors are expected to adhere to the\n[code of conduct](https://github.com/wilsonsilva/raylib-ruby/blob/main/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [zlib/libpng License](https://opensource.org/licenses/zlib).\n\n## Code of Conduct\n\nEveryone interacting in the Raylib project's codebases, issue trackers, chat rooms and mailing lists is expected to\nfollow the [code of conduct](https://github.com/wilsonsilva/raylib-ruby/blob/main/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilsonsilva%2Fraylib-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilsonsilva%2Fraylib-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilsonsilva%2Fraylib-ruby/lists"}