{"id":20846747,"url":"https://github.com/kimgoetzke/game-muffin","last_synced_at":"2026-04-25T10:33:14.348Z","repository":{"id":184770355,"uuid":"672449556","full_name":"kimgoetzke/game-muffin","owner":"kimgoetzke","description":"The concept for a top-down, 3D pixel art, action RPG using 2D sprites, developed in Unity with C#.","archived":false,"fork":false,"pushed_at":"2025-03-14T06:48:45.000Z","size":195,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T21:53:07.971Z","etag":null,"topics":["csharp","game","pixel-art","unity3d","urp"],"latest_commit_sha":null,"homepage":"","language":"C#","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/kimgoetzke.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}},"created_at":"2023-07-30T05:56:40.000Z","updated_at":"2025-11-26T14:48:57.000Z","dependencies_parsed_at":"2024-01-14T06:00:24.001Z","dependency_job_id":"617da958-1333-4c7b-bc71-29a7300735a9","html_url":"https://github.com/kimgoetzke/game-muffin","commit_stats":null,"previous_names":["kimgoetzke/game-muffin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kimgoetzke/game-muffin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimgoetzke%2Fgame-muffin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimgoetzke%2Fgame-muffin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimgoetzke%2Fgame-muffin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimgoetzke%2Fgame-muffin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kimgoetzke","download_url":"https://codeload.github.com/kimgoetzke/game-muffin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimgoetzke%2Fgame-muffin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32259472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["csharp","game","pixel-art","unity3d","urp"],"created_at":"2024-11-18T02:17:48.296Z","updated_at":"2026-04-25T10:33:14.311Z","avatar_url":"https://github.com/kimgoetzke.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Muffin\n\nMuffin is a top-down, 3D pixel art, action RPG using 2D sprites, developed in C#/Unity. I worked on it in 2022/23 with the goal of learning about game/physics engines, and improving my skills in C#, 3D, shaders, render pipelines, traditional AI design, and many other topics. \n\nThe game is in a pre-alpha stage. It is fully playable but is not feature complete and only has about 5 minutes worth of content. However, it is considered complete as this was a learning project and I have no intention of turning it into a releasable game.\n\n_This repo only contains the C# scripts and no other files or assets related to the game. Plastic SCM was used for full version control for this project as it natively integrates with Unity._\n\n![Muffin banner bar 02](https://github.com/kimgoetzke/game-muffin/assets/120580433/7bbfa92a-a095-4344-a9e7-681d2af619ce)\n\n## Some technical features\n+ Unified, hierarchical state machine AI model that powers friends and foes alike and allows them to interact with one another\n+ Faction management that allows changing NPC behaviours real-time (towards player and other NPCs)\n+ (I also experimented with a behavioural tree model for AI which is in this repo but not used as it was not required)\n+ Equipment is swappable in real-time using scriptable objects (any range type weapon is is supported, extendable to melee)\n+ 4 directional player sprite movement while maintaining full 360 degrees, free mouse-controlled aim\n+ Object pools to pre-spawn a number of frequently spawned objects\n+ Universal Render Pipeline post-processing features, incl. bloom, depth of field, color grading and more\n+ Pixelise render feature/pass for a consistent pixelated look of all in-game elements, except UI elements\n+ 2D dynamic lightning (e.g. zone based), cloud shadows, etc.\n+ Extensive use of shaders to simulate water, fog, sprite lightning, and more\n+ Basic 3D modelling of rocks, crates and other objects\n+ Cinemachine with camera zones and target groups to enable look-ahead\n+ Scalable quest and dialogue system (allowing for 4 quest types) incl. UI (using Inky for dialogue scripts and variables)\n+ Unity Terrain and GPU instancing for grass/flower sprites\n+ Timeline-powered intro and on-scene-change cutscenes which are skippable\n+ A small but rich game worked with grass/trees swaying in the wind, dynamic lighting/shadow effects, fireflies, birds, and marine life such as schools of fish and nautili\n\n![Muffin banner bar 01](https://github.com/kimgoetzke/game-muffin/assets/120580433/c2af44ef-45d1-47a7-b823-d19f05c470c4)\n\n## Demo\n\n[![YouTube - Muffin Gameplay](https://img.youtube.com/vi/MV7zcRffliU/0.jpg)](https://www.youtube.com/watch?v=MV7zcRffliU)\n\n## Game system examples\n\n### NPC state machine\n\n+ `NPC` state machine is at the core\n+ `NpcBehaviour` sets default behavior: anxious, neutral, indifferent, observant, defensive, or aggressive\n+ `NpcMovement` sets default movement type: wander, patrol or idle\n+ Combination of `AnimationController` and `AudioController` allow customising the visual appear and audio (humanoid and two-legged dinsaur implemented)\n+ Separate, optional Game Objects with sphere colliders determine:\n    1. Awareness: trigger intermediate action such as observing\n    2. Action: switch from default movement to default behaviour\n    3. Collaboration: support others of same faction or flee together\n    4. Interaction: allow player to interact e.g. trigger dialogue\n+ `FactionIdentity` component determines which other factions the NPC is hostile, friendly or neutral towards\n+ Factions can change at runtime\n+ `HealthManager` determines health and triggers disabling of NPC class\n+ `AttackController` determines damage, range, etc.\n\n![Flying_through_space](https://github.com/kimgoetzke/game-muffin/assets/120580433/c12b7970-0fe9-4973-9108-f7d7fb3b4167)\n\n### Quest system\n\n+ A `Quest` is a collection of tasks which can be linked to a story \n+ Stories are text assets which are arranged into a flow using the third party tool Ink \n+ C# classes share data with Ink through `DialogueVariables`, allowing dialogue to influence game behaviours and vice versa\n+ The system supports any task types such as \"reach location x\", \"defeat x number of type y enemies\", or \"do x\" \n+ The active quest, its task and their states are shown on the in-game UI to the player\n+ Quest states and dialogue variables (which include story progression) are, by default, saved on scene change\n\n![Quest_system](https://github.com/kimgoetzke/game-muffin/assets/120580433/4d6e4b67-16f3-4e58-84d7-1e1de98b4b09)\n\n![Muffin banner bar 03](https://github.com/kimgoetzke/game-muffin/assets/120580433/292e2993-91dc-4c19-9da4-ae6db1cc56ec)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimgoetzke%2Fgame-muffin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkimgoetzke%2Fgame-muffin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimgoetzke%2Fgame-muffin/lists"}