{"id":16210775,"url":"https://github.com/scriptsengineer/openknife","last_synced_at":"2025-03-19T09:30:36.083Z","repository":{"id":55839983,"uuid":"320036777","full_name":"scriptsengineer/OpenKnife","owner":"scriptsengineer","description":"Game made in unity for a jam, using the best software engineering approaches.","archived":false,"fork":false,"pushed_at":"2021-06-30T21:21:04.000Z","size":11354,"stargazers_count":8,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T17:26:02.095Z","etag":null,"topics":["game","jam","mobile","unity"],"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/scriptsengineer.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-12-09T17:54:59.000Z","updated_at":"2024-11-03T23:38:24.000Z","dependencies_parsed_at":"2022-08-15T07:40:48.663Z","dependency_job_id":null,"html_url":"https://github.com/scriptsengineer/OpenKnife","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptsengineer%2FOpenKnife","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptsengineer%2FOpenKnife/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptsengineer%2FOpenKnife/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptsengineer%2FOpenKnife/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scriptsengineer","download_url":"https://codeload.github.com/scriptsengineer/OpenKnife/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243980451,"owners_count":20378410,"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":["game","jam","mobile","unity"],"created_at":"2024-10-10T10:44:12.249Z","updated_at":"2025-03-19T09:30:33.148Z","avatar_url":"https://github.com/scriptsengineer.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to Open Knife 👋 [🇧🇷](https://github.com/ScriptsEngineer/OpenKnife/wiki/README_PT_BR)\n![Version](https://img.shields.io/badge/version-0.2.5-blue.svg?cacheSeconds=2592000\u0026style=flat-square)\n[![Documentation](https://img.shields.io/badge/Documentation-yes-brightgreen.svg?\u0026style=flat-square)](todo-doc)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?\u0026style=flat-square)](MIT)\n[![Twitter: ScriptsEngineer](https://img.shields.io/twitter/follow/ScriptsEngineer.svg?style=flat-square)](https://twitter.com/ScriptsEngineer)\n![GitHub issues](https://img.shields.io/github/issues/scriptsengineer/openknife?style=flat-square)\n![GitHub closed issues](https://img.shields.io/github/issues-closed-raw/scriptsengineer/openknife?style=flat-square)\n![GitHub language count](https://img.shields.io/github/languages/count/scriptsengineer/openknife?style=flat-square)\n\n\u003cimg align=\"right\" src=\"https://github.com/ScriptsEngineer/OpenKnife/blob/main/Docs/Images/dioJMhfV3E.gif\"\u003e\n\n## 🔨 Features\n\n✔️ Just a scene to make it easier to loading on your phone.\n\n✔️ Use of 3 game states (Menu, InGame, GameOver)\n\n✔️ _GameManager_ is a **singleton** with all managers instantiated using interface.\n```csharp\nGameStates[] internStates = GetComponents\u003cGameStates\u003e();\ngameStates.AddRange(internStates);\n\n```\n✔️ _UnityEvents_ for easy use of designers in the editor *Unity*.\n\n✔️ Design with split structure with [Assembly Definitions](https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html), helping in times of smaller compilations, obliging the use of [SOLID](https://en.wikipedia.org/wiki/SOLID_(object-oriented_design)) and split of tests.\n\n✔️ Full separation of game logic with UI, nothing depends on the user interface and its logic.\n\n✔️ Use [URP](https://github.com/Unity-Technologies/Graphics/tree/7.x.x/release/com.unity.render-pipelines.universal) with quick and easy rendering for mobile platform.\n\n✔️ Simple UI animations using triggers.\n\n✔️ Boss mode [Pull Request #7](https://github.com/ScriptsEngineer/OpenKnife/pull/7).\n\n\u003cimg align=\"right\" src=\"https://github.com/ScriptsEngineer/OpenKnife/blob/main/Docs/Images/Tests.png\"\u003e\n\n✔️ Use of [Test Framework](https://docs.unity3d.com/Packages/com.unity.test-framework@1.1/manual/index.html) for procedure testing.\n    - Runtime tests.\n    - Editor tests.\n\n\n\n\n## Managers\nCertain managers have been created to use logic and data easily and cleanly.\n\n🚨 _GameManager_: A class **singleton**. with game states, It is important to note here the use of an interface for all components that want to receive event notifications from the game states.\n\n🚨 _LevelManager_: Obviously responsible for the stages and their shipments.\n\n🚨 _UIManager_: In addition to being the parent of the entire User Interface, it stores _Canvas_ as well.\n\n\n## Actors\n\n⛹️ Player with _Shooter_,_Scorer_\n\n⛹️ Wood with _Rotator_,_CurveRotator_\n\n⛹️ Knife with _Knife_,_RigidBody2D_\n\n⛹️ Fruit with _Rigidbody2D_\n\n## Stages\n\n✔️ _ScriptableObjects_ to separate data from scenes.\n\n✔️ _AnimationCurves_ for time interpolation of wood speed.\n\n✔️ _AngleObject_ is a list that keeps object items with an angle.\n\n\n## 📈 Challenges\n\n### Physics or Triggers?\nOne of the biggest problems seen in this production was the doubt that one should use physics or not. Problems using Unity physics can be seen here:\n\n![Physic problem](https://github.com/ScriptsEngineer/OpenKnife/blob/main/Docs/Images/GxxPtxn8Cu.gif)\n\n\n### Where the stage ❓\n\nFor a designer it is very easy to just edit a file, in this way it was used the\n[_ScriptableObject_](https://docs.unity3d.com/Manual/class-ScriptableObject.html).\n\n![Stage Object](https://github.com/ScriptsEngineer/OpenKnife/blob/main/Docs/Images/Code_rDrUJHE2CC.png)\n\n### 👨‍💻 Shouldn't a designer use a code editor ?\n\nObviously a designer who wants to exchange an effect sound or choose when to instantiate a particle in the scene should create easily and quickly, so 'UnityEvent' was used extensively.\n\n![UnityEvents](https://github.com/ScriptsEngineer/OpenKnife/blob/main/Docs/Images/Unity_tZZV1mtPlL.png)\n\n## Assembly Definition Use\n\nUse of assembly packages for each namespace of the project, thus dividing the use of resources helping in the use of tests.\n\n## Production time\n⏰ 12 hours\n\n## Author\n\n👤 **Rafael Correa**\n(Script)\n* Twitter: [@ScriptsEngineer](https://twitter.com/ScriptsEngineer)\n* Github: [@scriptsengineer](https://github.com/scriptsengineer)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\n\nFeel free to check [issues page](https://github.com/ExpressoBits/EBConsole/issues).\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n## Assets used\n\n🎨 [FREE Casual Game SFX Pack](https://assetstore.unity.com/packages/audio/sound-fx/free-casual-game-sfx-pack-54116)\n\n🎨 [20 Evolving Fantasy RPG Weapons](https://assetstore.unity.com/packages/2d/textures-materials/20-evolving-fantasy-rpg-weapons-61204)\n\n🎨 [Free Pixel Font - Thaleah](https://assetstore.unity.com/packages/2d/fonts/free-pixel-font-thaleah-140059)\n\n🎨 [Free Pixel Food](https://assetstore.unity.com/packages/2d/environments/free-pixel-food-113523)\n\n\n## 📝 License\n\nThis project is [MIT](MIT) licensed.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptsengineer%2Fopenknife","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscriptsengineer%2Fopenknife","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptsengineer%2Fopenknife/lists"}