{"id":15142263,"url":"https://github.com/lchsk/knight-general","last_synced_at":"2025-10-23T19:31:26.825Z","repository":{"id":70291113,"uuid":"144338777","full_name":"lchsk/knight-general","owner":"lchsk","description":"Turn-based strategy game in 72 hours for Ludum Dare 42","archived":false,"fork":false,"pushed_at":"2018-08-20T20:19:02.000Z","size":5659,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T20:40:20.720Z","etag":null,"topics":["cpp","game","game-dev","game-jam","ludum-dare","ludum-dare-42","turn-based","turn-based-strategy"],"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/lchsk.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":"2018-08-10T22:50:15.000Z","updated_at":"2024-05-28T16:35:02.000Z","dependencies_parsed_at":"2023-02-24T07:30:19.996Z","dependency_job_id":null,"html_url":"https://github.com/lchsk/knight-general","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/lchsk%2Fknight-general","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lchsk%2Fknight-general/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lchsk%2Fknight-general/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lchsk%2Fknight-general/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lchsk","download_url":"https://codeload.github.com/lchsk/knight-general/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237882170,"owners_count":19381176,"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":["cpp","game","game-dev","game-jam","ludum-dare","ludum-dare-42","turn-based","turn-based-strategy"],"created_at":"2024-09-26T09:25:03.923Z","updated_at":"2025-10-23T19:31:26.124Z","avatar_url":"https://github.com/lchsk.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Knight General\n## Turn-based strategy for Ludum Dare 42. Theme: Running out of space\n\nGameplay video: https://www.youtube.com/watch?v=wPX_rOMkLKs\n\nBlog post: https://lchsk.com/making-a-turn-based-strategy-game-in-cpp-in-72-hours.html\n\nLudum Dare 42 entry: https://ldjam.com/events/ludum-dare/42/knight-general\n\n![](knight_general.png \"Knight General\")\n\n## Description\n\nKnight General is inspired by classic turn-based strategy games. The aim of the game is to control the whole map (so that the enemy 'runs out of space'). To do so, a player can move their units into enemy territory, thus increasing their possessions. Each player can buy more units, all of which can fight the enemies and collect resources. Units are bought with coins, which each player collects by:\n- gathering resources\n- receiving a payout at the beginning of each turn, which depends on the size of owned land\n\n### Features\n\n- two powerful sides: knights and skeletons\n- each side has three different units\n- difficult AI opponent\n- several types of resources (gold, stone, timber, trees) which can be collected and sold to receive coins\n\n## Installation\n\n1. Make sure you have SFML library installed: on Ubuntu `sudo apt install libsfml-dev`\n\n2. Download DEB or ZIP package.\n\n3. Install DEB package: `sudo apt install ./knight-general-0.1.0-Linux.deb`\n\n4. Go to directory with `knight-general` executable (possibly `/usr/games`), and run `./knight-general`\n\n5. If you're using the ZIP archive, unzip it, then find `knight-general` executable and run it.\n\n## Requirements\n\nTested on Ubuntu 17.10 but it should be easy to build on other free systems and probably on Mac/Windows as well.\n\n### Dependencies\n\n- SFML (tested with v2.4.2)\n- modern C++ compiler, supporting at least C++14\n\n## Building from source\n\nInstall dependencies on Ubuntu:\n\n`sudo apt install libsfml-dev`\n\n```\n1. Clone the repo\n2. mkdir build \u0026\u0026 cp -r knight_general_assets/ build/ \u0026\u0026 cd build\n3. cmake ..\n4. make -j\n5. ./knight-general\n```\n\n## Assets\n\n### Graphics\n\n- https://opengameart.org/content/medieval-rts-120 by Kenney (public domain)\n\n- https://opengameart.org/content/lpc-medieval-fantasy-character-sprites by wulax (CC-BY-SA 3.0 GPL 3.0)\n\n- https://opengameart.org/content/ui-pack-rpg-extension by Kenney (public domain)\n\n- https://opengameart.org/content/crosshair-pack-200%C3%97 by Kenney (public domain)\n\n### Music\n\n- https://opengameart.org/content/adventure-begins by bart (GPL 3.0)\n\n### Fonts\n\n- https://www.dafont.com/caviar-dreams.font by Lauren Thompson (100% free)\n\n## Version info\n\n`./knight-general --version`\n\n## Screenshots\n\n13/08/2018 20:42 BST - almost final version\n![](almost_final_version.png \"Almost final version\")\n\n12/08/2018 20:27 BST - basic gui\n![](basic_gui.png \"Basic GUI\")\n\n12/08/2018 11:50 BST - two units\n![](two_units.png \"Two units\")\n\n11/08/2018 18:05 BST - unit on a map\n![](unit_on_a_map.png \"Unit on a map\")\n\n11/08/2018 14:56 BST - basic map\n![](basic_map.png \"Basic map\")\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flchsk%2Fknight-general","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flchsk%2Fknight-general","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flchsk%2Fknight-general/lists"}