{"id":13338424,"url":"https://github.com/tranchikhang/MedievalWar","last_synced_at":"2025-03-11T10:31:07.178Z","repository":{"id":46243703,"uuid":"195408829","full_name":"tranchikhang/MedievalWar","owner":"tranchikhang","description":"A simple turn-based strategy game using Phaser 3","archived":false,"fork":false,"pushed_at":"2021-09-12T08:41:10.000Z","size":1336,"stargazers_count":36,"open_issues_count":6,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-23T22:15:59.658Z","etag":null,"topics":["game","gamedev","javascript","phaser-game","phaser3","turn-based-strategy"],"latest_commit_sha":null,"homepage":"https://tranchikhang.github.io/MedievalWar/","language":"JavaScript","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/tranchikhang.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":"2019-07-05T12:51:37.000Z","updated_at":"2024-10-14T12:00:52.000Z","dependencies_parsed_at":"2022-09-13T14:13:14.581Z","dependency_job_id":null,"html_url":"https://github.com/tranchikhang/MedievalWar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tranchikhang%2FMedievalWar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tranchikhang%2FMedievalWar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tranchikhang%2FMedievalWar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tranchikhang%2FMedievalWar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tranchikhang","download_url":"https://codeload.github.com/tranchikhang/MedievalWar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243015303,"owners_count":20222066,"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","gamedev","javascript","phaser-game","phaser3","turn-based-strategy"],"created_at":"2024-07-29T19:16:21.807Z","updated_at":"2025-03-11T10:31:06.570Z","avatar_url":"https://github.com/tranchikhang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What is this game\n\nMedieval War is a turn-based strategy game I created in my free time for education purposes, inspired by Fire Emblem series. This game is built in JavaScript using the Phaser 3 Framework.\n\n![](demo.gif)\n\n## Components\nThe game can be broken down into components list as below.\n1. Core gameplay\n    1. Map\n        1. Map data and loading - still need some code refactoring, especially with *level* class\n        2. Cursor\n        3. Control\n            * Interaction (Select, Cancel etc)\n            * Movement\n        4. Context menu\n            * List action\n            * Interaction\n        5. Camera\n    2. Unit\n        1. Initialize units\n        2. Turn system\n        3. Movement\n            * Movable location - Need more testing and code refactoring\n            * Path finding - Need more testing and code refactoring\n            * Actions - In progress\n    3. Attack enemy unit - In progress\n        * Detect enemy unit\n        * Select the unit to attack by moving cursor\n        * [Show damage, hit rate etc calculation](https://github.com/tranchikhang/MedievalWar/issues/5)\n        * If user choose to attack, update unit status after attack (HP etc)\n    4. Ally Support - Not implemented\n    5. Battle system - In progress\n        1. Hit - evasion calculation\n        2. Damage calculation - In progress\n        3. Support calculation\n    6. AI\n        1. Detect player unit in range, then move next to them\n        2. [Aggressiveness level](https://github.com/tranchikhang/MedievalWar/issues/4)\n        3. Decision making (to attack or not etc)\n    7. Map objectives\n        1. Define objectives\n        2. Check if objectives are completed then end chapter\n2. Character\n    1. Classes\n    2. Character data\n    3. Character sprite - animation\n    4. [Leveling system](https://github.com/tranchikhang/MedievalWar/issues/6)\n3. [Items](https://github.com/tranchikhang/MedievalWar/issues/3)\n    1. Unit inventory\n    2. Unit equipment\n    3. Trade\n    4. Shop\n\n## Assets\n\n### Graphics\n* [https://opengameart.org/content/toens-medieval-strategy-sprite-pack-v10-16x16](https://opengameart.org/content/toens-medieval-strategy-sprite-pack-v10-16x16) by Toen (CC-BY 3.0)\n\n## License\n\nThis project is under MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftranchikhang%2FMedievalWar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftranchikhang%2FMedievalWar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftranchikhang%2FMedievalWar/lists"}