{"id":49528845,"url":"https://github.com/pixelomer/libshijima","last_synced_at":"2026-05-02T05:13:38.776Z","repository":{"id":281456377,"uuid":"794644224","full_name":"pixelomer/libshijima","owner":"pixelomer","description":"A shimeji simulation library written in C++","archived":false,"fork":false,"pushed_at":"2025-10-22T08:12:00.000Z","size":1414,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T09:12:59.976Z","etag":null,"topics":["cpp","cross-platform","desktop-pet","library"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pixelomer.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"pixelomer","buy_me_a_coffee":"pixelomer"}},"created_at":"2024-05-01T16:47:02.000Z","updated_at":"2025-10-22T08:12:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5b004ee-e2be-4d67-ac5b-2c187a01fe6c","html_url":"https://github.com/pixelomer/libshijima","commit_stats":null,"previous_names":["pixelomer/libshijima"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pixelomer/libshijima","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelomer%2Flibshijima","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelomer%2Flibshijima/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelomer%2Flibshijima/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelomer%2Flibshijima/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pixelomer","download_url":"https://codeload.github.com/pixelomer/libshijima/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelomer%2Flibshijima/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32523633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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":["cpp","cross-platform","desktop-pet","library"],"created_at":"2026-05-02T05:13:38.006Z","updated_at":"2026-05-02T05:13:38.768Z","avatar_url":"https://github.com/pixelomer.png","language":"C++","funding_links":["https://github.com/sponsors/pixelomer","https://buymeacoffee.com/pixelomer"],"categories":[],"sub_categories":[],"readme":"# libshijima\n\nC++ library for shimeji desktop mascots.\n\n(**Disclaimer:** libshijima is currently not accepting contributions. Any pull requests will be closed without review.)\n\n## Usage\n\nlibshijima itself does not implement a GUI. Rather, it provides an easy API for parsing configurations files and interacting with shimeji. For an example usage of libshijima, see [main.cc](main.cc) which implements an SDL application for interacting with shimeji.\n\nThe main entry point for libshijima is `shijima::mascot::factory`. An app using libshijima may look something like the following:\n\n```cpp\nusing namespace shijima;\n\n//pseudocode\nstd::string ReadFile(std::string const\u0026 path);\nvoid SleepForMilliseconds(int ms);\n\n/* ... */\n\n// Create a mascot factory\nmascot::factory factory;\nfactory.script_ctx = std::make_shared\u003cscripting::context\u003e();\nfactory.env = std::make_shared\u003cmascot::environment\u003e();\n\n// Register mascot templates\nmascot::factory::tmpl tmpl;\ntmpl.name = \"my_mascot\";\ntmpl.actions_xml = ReadFile(\"/path/to/shimeji/actions.xml\");\ntmpl.behaviors_xml = ReadFile(\"/path/to/shimeji/behaviors.xml\");\ntmpl.path = \"/path/to/shimeji\";\nfactory.register_template(tmpl);\n\n// Spawn shimeji\nmascot::manager::initializer init;\ninit.anchor.x = 100;\ninit.anchor.y = 100;\nmascot::factory::product product = factory.spawn(\"my_mascot\", init);\nmascot::manager \u0026shimeji = *product.manager;\n\n// Run loop\nwhile (true) {\n    // Populate shimeji environment\n    mascot::environment \u0026env = *factory.env;\n    const int w=500, h=500;\n    env.work_area = env.screen = { 0, w, h, 0 };\n    env.floor = { h-50, 0, w };\n    env.ceiling = { 0, 0, w };\n\n    // Tick\n    shimeji.tick();\n\n    // Render shimeji\n    /*... platform dependent ...*/\n\n    // Shimeji are designed to run at 25 FPS\n    SleepForMilliseconds(1000 / 25);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelomer%2Flibshijima","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixelomer%2Flibshijima","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelomer%2Flibshijima/lists"}