{"id":21331794,"url":"https://github.com/ycarowr/turnbasedgametemplate","last_synced_at":"2025-07-12T10:31:00.388Z","repository":{"id":159107818,"uuid":"213194584","full_name":"ycarowr/TurnBasedGameTemplate","owner":"ycarowr","description":"A Unity3d MVC implementation of a turn based game.","archived":false,"fork":false,"pushed_at":"2019-10-20T16:12:59.000Z","size":2332,"stargazers_count":41,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-23T22:17:14.465Z","etag":null,"topics":["boilerplate","component","csharp","csharp-components","framework","game-development","games","gaming","mvc","mvc-architecture","mvc-pattern","template","turn","turn-based","turns","unity","unity-component","unity-framework","unity2d","unity3d"],"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/ycarowr.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":"2019-10-06T15:36:44.000Z","updated_at":"2024-09-17T13:13:26.000Z","dependencies_parsed_at":"2023-05-06T20:33:20.815Z","dependency_job_id":null,"html_url":"https://github.com/ycarowr/TurnBasedGameTemplate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycarowr%2FTurnBasedGameTemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycarowr%2FTurnBasedGameTemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycarowr%2FTurnBasedGameTemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycarowr%2FTurnBasedGameTemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ycarowr","download_url":"https://codeload.github.com/ycarowr/TurnBasedGameTemplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225814905,"owners_count":17528295,"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":["boilerplate","component","csharp","csharp-components","framework","game-development","games","gaming","mvc","mvc-architecture","mvc-pattern","template","turn","turn-based","turns","unity","unity-component","unity-framework","unity2d","unity3d"],"created_at":"2024-11-21T22:44:05.510Z","updated_at":"2024-11-21T22:44:06.305Z","avatar_url":"https://github.com/ycarowr.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TurnBasedGameTemplate\n \nThe idea here is to have the core implementation and the basic funcionalities of a turn-based game working in a clean repository, so every time a new project/prototype comes along I may use this implementation and skip rebuilding the basic mechanics.\n\n[Download Unitypackage](https://github.com/ycarowr/TurnBasedGameTemplate/tree/master/ReleasePackages)\n\n## Structures and funcionalities:\n\n1. Two players, Top and Bottom; (can be extended to more players)\n2. Events such as Start and End match integrated with an UI;\n3. Events like Player Started and Finished Turn also integrated with a simple UI;\n4. Restart point.\n\nI am not going to go further with details about the implementation because you can check the repo. But the idea is to have a MVC with a separation between Model and UI. \n\nAll the comunication UI and Model is done using the Singleton Pattern and the Observer Pattern.\n\n1. [State Machine that controls the game flow](https://github.com/ycarowr/TurnBasedGameTemplate/tree/master/Assets/Scripts/TurnBasedGameTemplate/Model/TurnBasedFSM)\n2. [Game Model](https://github.com/ycarowr/TurnBasedGameTemplate/tree/master/Assets/Scripts/TurnBasedGameTemplate/Model)\n3. [Game Controller](https://github.com/ycarowr/TurnBasedGameTemplate/tree/master/Assets/Scripts/TurnBasedGameTemplate/GameController)\n4. [Mechanics](https://github.com/ycarowr/TurnBasedGameTemplate/tree/master/Assets/Scripts/TurnBasedGameTemplate/Model/Game)\n5. [Game Events](https://github.com/ycarowr/TurnBasedGameTemplate/blob/master/Assets/Scripts/TurnBasedGameTemplate/GameEvents/GameEvents.cs)\n6. [UI](https://github.com/ycarowr/TurnBasedGameTemplate/tree/master/Assets/Scripts/TurnBasedGameTemplate/UI)\n7. [Patterns and Tools](https://github.com/ycarowr/TurnBasedGameTemplate/tree/master/Assets/Scripts/TurnBasedGameTemplate/Tools)\n\nGif for a better visualization of the game flow:\n![alt](https://github.com/ycarowr/TurnBasedGameTemplate/blob/master/Assets/Textures/TurnBasedTemplate.gif)\n\nDefault Configurations:\n\n![alt](https://github.com/ycarowr/TurnBasedGameTemplate/blob/master/Assets/Textures/TurnBasedGameTemplate/parameters.GIF)\n\nI made as example the project in this [link](https://github.com/ycarowr/SimpleTurnBasedGame) using this idea. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fycarowr%2Fturnbasedgametemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fycarowr%2Fturnbasedgametemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fycarowr%2Fturnbasedgametemplate/lists"}