{"id":30008725,"url":"https://github.com/dinau/ruby-platformer","last_synced_at":"2025-08-05T09:55:15.235Z","repository":{"id":297733695,"uuid":"929240826","full_name":"dinau/ruby-platformer","owner":"dinau","description":"Platformer tutorial project with SDL3 in Ruby language","archived":false,"fork":false,"pushed_at":"2025-06-07T04:55:58.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T05:27:51.003Z","etag":null,"topics":["examples","game","platformer","ruby","sdl","sdl3","tutorial"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dinau.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,"zenodo":null}},"created_at":"2025-02-08T04:47:05.000Z","updated_at":"2025-06-07T04:56:03.000Z","dependencies_parsed_at":"2025-06-07T05:38:33.832Z","dependency_job_id":null,"html_url":"https://github.com/dinau/ruby-platformer","commit_stats":null,"previous_names":["dinau/ruby-platformer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dinau/ruby-platformer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fruby-platformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fruby-platformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fruby-platformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fruby-platformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dinau","download_url":"https://codeload.github.com/dinau/ruby-platformer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fruby-platformer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268874113,"owners_count":24321671,"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","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"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":["examples","game","platformer","ruby","sdl","sdl3","tutorial"],"created_at":"2025-08-05T09:55:11.074Z","updated_at":"2025-08-05T09:55:15.191Z","avatar_url":"https://github.com/dinau.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [Ruby-Platformer](#ruby-platformer)\n  - [Prerequisites](#prerequisites)\n  - [Install SDL3 gem](#install-sdl3-gem)\n  - [Run tutorials](#run-tutorials)\n  - [My tools version](#my-tools-version)\n  - [Key operation](#key-operation)\n  - [Tutorial sources](#tutorial-sources)\n  - [SDL librarys](#sdl-librarys)\n  - [Other SDL game tutorial platfromer project](#other-sdl-game-tutorial-platfromer-project)\n  - [Other project](#other-project)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n### Ruby-Platformer\n\nTutorial: Writing a 2D Platform Game in Ruby language with SDL3 / SDL_ttf.  \nThis repository has been inherited from\n[Nim-Platformer](https://github.com/def-/nim-platformer)\n, [LuaJIT-Platformer](https://github.com/dinau/luajit-platformer)\n, [Nelua-Platformer](https://github.com/dinau/nelua-platformer)\n and [Zig-Platformer](https://github.com/dinau/zig-platformer)  project.\n   - Document  \n   English:  https://hookrace.net/blog/writing-a-2d-platform-game-in-nim-with-sdl2/  \n   Japanese: https://postd.cc/writing-a-2d-platform-game-in-nim-with-sdl2/  \n\nSkin database [https://ddnet.org/skins](https://ddnet.org/skins)\n\nNow work in progress.\n\n#### Prerequisites\n\n---\n\n1. Windows OS\n1. Ruby3.x\n\n#### Install SDL3 gem\n\n---\n\n```sh\ngem install sdl3-bindings\n```\n\n#### Run tutorials \n\n---\n\n```sh\ngit clone https://github.com/dinau/ruby-platformer\ncd ruby-platformer/tutorial\n\nruby part8.rb   # It can specify from part1.rb to part8.rb\n```\n\nor double click `part8.rbw` with file explorer.\n\n\n#### My tools version\n\n---\n\n- Windows11\n- Ruby 3.4.4\n\n#### Key operation\n\n---\n\n| Key            | Function  |\n| :---:          | :---      |\n| Up,Space, J, K | Jump      |\n| Left, A, H     | Left      |\n| Right, D, L    | Right     |\n| R              | Restart   |\n| Q              | Quit, Esc |\n\n#### Tutorial sources  \n\n---\n\n[p1]:https://github.com/dinau/ruby-platformer/blob/main/tutorial/part1.rb\n[p2]:https://github.com/dinau/ruby-platformer/blob/main/tutorial/part2.rb\n[p3]:https://github.com/dinau/ruby-platformer/blob/main/tutorial/part3.rb\n[p4]:https://github.com/dinau/ruby-platformer/blob/main/tutorial/part4.rb\n[p5]:https://github.com/dinau/ruby-platformer/blob/main/tutorial/part5.rb\n[p6]:https://github.com/dinau/ruby-platformer/blob/main/tutorial/part6.rb\n[p7]:https://github.com/dinau/ruby-platformer/blob/main/tutorial/part7.rb\n[p8]:https://github.com/dinau/ruby-platformer/blob/main/tutorial/part8.rb\n[p9]:https://github.com/dinau/ruby-platformer/blob/main/tutorial/part9.rb\n\n| Part1       | Part2 | Part3\u003cbr\u003e (Showing item) | Part4 | Part5 \u003cbr\u003e(Moving item) | Part6 | Part7 | Part8\u003cbr\u003e(Almost completed) | Part9 |\n|-------------|-------|--------------------------|-------|-------------------------|-------|-------|-----------------------------|-------|\n| [part1][p1] |       |                          |       |                         |       |       |                             | -     |\n\n#### SDL librarys\n\n---\n\nhttps://github.com/libsdl-org/SDL/releases\n\n#### Other SDL game tutorial platfromer project\n\n---\n\n![ald](https://github.com/dinau/luajit-platformer/raw/main/img/platformer-luajit-sdl2.gif)\n\n| Language             |          | Project                                                                                                   |\n| -------------------: | :---:    | :----------------------------------------------------------------:                                        |\n| **Nim**              | Compiler | [Nim-Platformer](https://github.com/dinau/nim-platformer) / [sdl3_nim](https://github.com/dinau/sdl3_nim) |\n| **LuaJIT**           | Script   | [LuaJIT-Platformer](https://github.com/dinau/luajit-platformer)                                           |\n| **Nelua**            | Compiler | [NeLua-Platformer](https://github.com/dinau/nelua-platformer)                                             |\n| **Zig**              | Compiler | [Zig-Platformer](https://github.com/dinau/zig-platformer)                                                 |\n| **C3**               | Compiler | [C3-Platformer](https://github.com/dinau/c3-platformer) WIP                                               |\n| **Ruby**             | Script   | [Ruby-Platformer](https://github.com/dinau/ruby-platformer) WIP                                               |\n\n#### Other project\n\n---\n\n| Language             |          | Project                                                                                                                                         |\n| -------------------: | :---:    | :----------------------------------------------------------------:                                                                              |\n| **Nim**              | Compiler | [ImGuin](https://github.com/dinau/imguin), [Nimgl_test](https://github.com/dinau/nimgl_test), [Nim_implot](https://github.com/dinau/nim_implot) |\n| **Lua**              | Script   | [LuaJITImGui](https://github.com/dinau/luajitImGui)                                                                                             |\n| **Zig**, C lang.     | Compiler | [Dear_Bindings_Build](https://github.com/dinau/dear_bindings_build)                                                                             |\n| **Zig**              | Compiler | [ImGuinZ](https://github.com/dinau/imguinz)                                                                                                     |\n| **NeLua**            | Compiler | [NeLuaImGui](https://github.com/dinau/neluaImGui)                                                                                               |\n| **Python**           | Script   | [DearPyGui for 32bit WindowsOS Binary](https://github.com/dinau/DearPyGui32/tree/win32)                                                         |\n| **Ruby**             | Script   | [IgRuby-Examples](https://github.com/dinau/igruby_examples)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinau%2Fruby-platformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinau%2Fruby-platformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinau%2Fruby-platformer/lists"}