{"id":23318495,"url":"https://github.com/mcb2003/simple-game-engine-rs","last_synced_at":"2025-08-22T17:31:20.080Z","repository":{"id":57667405,"uuid":"307413800","full_name":"mcb2003/simple-game-engine-rs","owner":"mcb2003","description":"A game engine designed for audio games in rust!","archived":false,"fork":false,"pushed_at":"2021-07-08T14:17:43.000Z","size":125,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T09:51:41.640Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/mcb2003.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}},"created_at":"2020-10-26T15:14:35.000Z","updated_at":"2024-02-28T21:03:04.000Z","dependencies_parsed_at":"2022-09-02T14:22:40.985Z","dependency_job_id":null,"html_url":"https://github.com/mcb2003/simple-game-engine-rs","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/mcb2003/simple-game-engine-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcb2003%2Fsimple-game-engine-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcb2003%2Fsimple-game-engine-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcb2003%2Fsimple-game-engine-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcb2003%2Fsimple-game-engine-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcb2003","download_url":"https://codeload.github.com/mcb2003/simple-game-engine-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcb2003%2Fsimple-game-engine-rs/sbom","scorecard":{"id":631737,"data":{"date":"2025-08-11","repo":{"name":"github.com/mcb2003/simple-game-engine-rs","commit":"0851c5dfa8228ef847592e54cbda6be4e9aaa718"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T08:07:32.120Z","repository_id":57667405,"created_at":"2025-08-21T08:07:32.120Z","updated_at":"2025-08-21T08:07:32.120Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271673564,"owners_count":24800717,"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-22T02:00:08.480Z","response_time":65,"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":[],"created_at":"2024-12-20T17:17:12.384Z","updated_at":"2025-08-22T17:31:19.073Z","avatar_url":"https://github.com/mcb2003.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Game Engine\n\n[![](https://badgen.net/crates/v/simple-game-engine)](https://crates.io/crates/simple-game-engine)\n[![](https://docs.rs/simple-game-engine/badge.svg)](https://docs.rs/simple-game-engine)\n\nThis project aims to create a minimal, yet usable, game engine. It is heavily inspired by [the Pixel Game Engine][pge],\nwith the goal of creating something that abstracts away the complexities of creating graphical, interactive apps and\ngames. Right now, it's a thin wrapper around [SDL2][sdl2] (using the [sdl2\ncrate][sdl2-crate]) for visuals.\n\n[pge]: \u003chttps://github.com/OneLoneCoder/olcPixelGameEngine\u003e\n[sdl2]: \u003chttps://www.libsdl.org\u003e\n[sdl2-crate]: \u003chttps://crates.io/crates/sdl2\u003e\n\nThis is highly experimental so far, so if you have any ideas or would like to contribute, please [sub mit an\nissue](https;//github.com/mcb2003/audio-game-engine-rs/issues).\n\n## Features\n\n* **Very simple to use:** Just implement the [`Application trait][sge::Application] on a type of your choice, then pass an instance of this type to [Engine::new()][Engine::new].\n* **Powerful:** Anything you can do with sdl2 from Rust, you can do with this library, and we provide thin abstractions over some of the more convoluted sdl2 interfaces.\n* **Built-in text rendering:** No need to find a TTF font and distribute it with your application, just call the [Canvas::draw_text()][Canvas::draw_text] method. ([see below](#caveats-with-text-rendering))\n\n[sge::Application]: \u003chttps://docs.rs/simple-game-engine/0.6.1/simple_game_engine/trait.Application.html\u003e\n[Engine::new]: \u003chttps://docs.rs/simple-game-engine/latest/simple_game_engine/struct.Engine.html#method.new\u003e\n[Canvas::draw_text]: \u003chttps://docs.rs/simple_game_engine/latest/canvas/struct.Canvas.html#method.draw_text\u003e\n\n## Caveats With Text Rendering\n\nThis crate uses the [GNU Unifont][unifont] for built-in text rendering. As such, if you wish to use this feature, you\nmust distribute your project under the [GPL][gpl]. As this is not desirable for many projects, this feature is only\nenabled if this crate is built with the \"unifont\" cargo feature.\n\n```toml\n[dependencies.simple-game-engine]\nversion = \"0.8.2\"\nfeatures = [\"unifont\"]\n```\n\nIf you'd like to render text without using this font, consider checking out the [SDL2 TTF module][sdl2-ttf]\n\n[unifont]: \u003chttp://unifoundry.com/unifont/index.html\u003e\n[gpl]: \u003chttps://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html\u003e\n[sdl2-ttf]: \u003chttps://docs.rs/sdl2/latest/sdl2/ttf/index.html\u003e\n\n## Install\n\nAdd the following to your `Cargo.toml`:\n\n```toml\n[dependencies]\nsimple-game-engine = \"0.8.2\"\n```\n\nThis crate depends on [sdl2][sdl2], which can be built and linked in several ways:\n\n* By default, the system version of sdl is used if it exists.\n* With the \"bundled_sdl\" feature, the latest version of sdl2 will be downloaded, compiled and dynamically linked to your program. This requires you install [cmake][cmake].\n* With the \"static_sdl\" feature, sdl2 will be linked statically.\n\nPlease see the [sdl2 crate README][sdl2-readme] for installation instructions for each platform.\n\n[cmake]: \u003chttps://cmake.org\u003e\n[sdl2-readme]: \u003chttps://github.com/Rust-SDL2/rust-sdl2#readme\u003e\n\n## Example\n\nThe simplest SGE program looks like this:\n\n```rust\nuse simple_game_engine::{self as sge, prelude::*};\nuse std::error::Error;\n\nstruct App {}\n\nimpl sge::Application for App {\n    fn on_create(\n        \u0026mut self,\n        canvas: \u0026mut WindowCanvas,\n        input: \u0026InputState,\n    ) -\u003e sge::ApplicationResult {\n        // Do one-time initialisation here\n        Ok(true) // `true` indicates to continue running the application\n    }\n\n    fn on_update(\n        \u0026mut self,\n        canvas: \u0026mut WindowCanvas,\n        input: \u0026InputState,\n        elapsed_time: f64,\n    ) -\u003e sge::ApplicationResult {\n        // Handle user input, update the canvas, and perform any other tasks to be ran on each frame\n        Ok(true) // `true` indicates to continue running the application\n    }\n}\n\nfn main() -\u003e Result\u003c(), Box\u003cdyn Error\u003e\u003e {\n    let mut app = App {};\n    let mut engine = sge::Engine::new(\n        \u0026mut app,   // Application instance\n        \"Test App\", // Window title\n        640,        // Window width\n        480,        // Window height\n    )?;\n    engine.start(true) // `true` starts the app with vsync enabled\n}\n```\n\n`on_create` and `on_update` are optional, but their default implementation does nothing, so\nyou'll probably want to define some logic for at least `on_update`, which is called for every\nframe.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcb2003%2Fsimple-game-engine-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcb2003%2Fsimple-game-engine-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcb2003%2Fsimple-game-engine-rs/lists"}