{"id":15403866,"url":"https://github.com/twe4ked/terminal_game_engine","last_synced_at":"2025-04-16T07:39:55.382Z","repository":{"id":49884908,"uuid":"63036494","full_name":"twe4ked/terminal_game_engine","owner":"twe4ked","description":"🕹 Build games in terminal using Ruby","archived":false,"fork":false,"pushed_at":"2021-06-08T23:44:22.000Z","size":24,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T05:11:39.699Z","etag":null,"topics":["framework","gamedev","ruby","terminal"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/terminal_game_engine","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/twe4ked.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.markdown","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-11T04:27:20.000Z","updated_at":"2021-06-08T23:44:25.000Z","dependencies_parsed_at":"2022-09-02T20:41:35.475Z","dependency_job_id":null,"html_url":"https://github.com/twe4ked/terminal_game_engine","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twe4ked%2Fterminal_game_engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twe4ked%2Fterminal_game_engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twe4ked%2Fterminal_game_engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twe4ked%2Fterminal_game_engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twe4ked","download_url":"https://codeload.github.com/twe4ked/terminal_game_engine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249094930,"owners_count":21211837,"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":["framework","gamedev","ruby","terminal"],"created_at":"2024-10-01T16:10:25.839Z","updated_at":"2025-04-16T07:39:55.364Z","avatar_url":"https://github.com/twe4ked.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TerminalGameEngine\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'terminal_game_engine'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install terminal_game_engine\n\n## Usage\n\n``` ruby\nrequire 'terminal_game_engine'\n\nTerminalGameEngine.run do\n  on_tick do |tick|\n    width = tick.to_s.length\n    height = 1\n    frame = TerminalGameEngine::Frame.new width, height\n\n    frame.draw 0, 0, tick.to_s\n\n    on_input do |key_code|\n      case key_code\n      when TerminalGameEngine::Input::Keys::CTRL_C\n        exit\n      end\n    end\n\n    frame.render\n  end\nend\n```\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n## Origins\n\nMost of this code was originally written as part of [hrdlr](https://github.com/twe4ked/hrdlr) at Railscamp by [@jasoncodes](https://github.com/jasoncodes), [@nathanaelkane](https://github.com/nathanaelkane), and [@twe4ked](https://github.com/twe4ked). It was then mostly copied into [snek](https://github.com/twe4ked/snek) by [@twe4ked](https://github.com/twe4ked) and then extracted into this gem.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwe4ked%2Fterminal_game_engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwe4ked%2Fterminal_game_engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwe4ked%2Fterminal_game_engine/lists"}