{"id":25608148,"url":"https://github.com/robertpaulp/tank-wars","last_synced_at":"2026-02-03T20:42:39.530Z","repository":{"id":277394691,"uuid":"932255516","full_name":"robertpaulp/Tank-Wars","owner":"robertpaulp","description":"OpenGL 2-Player Tank Wars 2D","archived":false,"fork":false,"pushed_at":"2025-02-14T17:39:14.000Z","size":38011,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T20:18:52.460Z","etag":null,"topics":["2d-game","cpp","opengl","tank-game"],"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/robertpaulp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2025-02-13T16:12:43.000Z","updated_at":"2025-02-14T17:39:18.000Z","dependencies_parsed_at":"2025-07-17T07:22:07.970Z","dependency_job_id":null,"html_url":"https://github.com/robertpaulp/Tank-Wars","commit_stats":null,"previous_names":["robertpaulp/tank-wars"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/robertpaulp/Tank-Wars","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertpaulp%2FTank-Wars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertpaulp%2FTank-Wars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertpaulp%2FTank-Wars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertpaulp%2FTank-Wars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertpaulp","download_url":"https://codeload.github.com/robertpaulp/Tank-Wars/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertpaulp%2FTank-Wars/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29056732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T20:13:53.544Z","status":"ssl_error","status_checked_at":"2026-02-03T20:13:40.507Z","response_time":96,"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":["2d-game","cpp","opengl","tank-game"],"created_at":"2025-02-21T20:18:57.216Z","updated_at":"2026-02-03T20:42:39.516Z","avatar_url":"https://github.com/robertpaulp.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"./README_imgs/banner.png\" alt=\"banner\" width=\"100%\" height=\"auto\"\u003e\n\n# **Tank Wars 2D - OpenGL Game**\n\n## **Overview**\n\n**Tank Wars** is a **2D tank battle game** built using **OpenGL and C++**. The game features real-time tank combat and collision detection. This project was developed as part of the **Computer Graphics Course (EGC)** at Politehnica University of Bucharest.\n\n## **Features**\n\n- **Player-controlled tanks** with movement and shooting mechanics.\n\n- **Collision detection** between tanks, edge, and projectiles.\n\n- **Basic physics simulation** for projectile motion and tank movement.\n\n- **OpenGL rendering** for real-time graphics.\n\n## **Game Mechanics**\n\n### **Tank Movement**\n\n- Tanks can move **forward, backward, and rotate** the barrel using keyboard controls.\n\n### **Shooting System**\n\n- Tanks can fire **projectiles** that follow a ballistic trajectory.\n- Projectiles **collide with tanks**, dealing damage or being destroyed.\n\n## **Installation \u0026 Running**\n\n### **Build \u0026 Run**\n\n1. **Clone the repository:**\n   ```sh\n   git clone https://github.com/robertpaulp/Tank-Wars.git   cd Tank-Wars\n   ```\n2. **Build and Run on Windows:**\n    - Install Visual Studio (with \"Desktop development with C++\" module)\n    - Install CMake\n    - Open CMake GUI:\n      - Set source code path to project root\n      - Set build path to `build` directory\n      - Click Configure and Generate\n      - Click \"Open Project\" to launch Visual Studio\n    - In Visual Studio:\n      - Build and Run the solution\n\n    Note: Source code for the Tank Wars game is located in `src/lab_m1/Tank_Wars/`\n\n## **Controls**\n\n- **Player 1** \n\n| Action              | Key   |\n| ------------------- | ----- |\n| Move Forward        | W     |\n| Move Backward       | S     |\n| Rotate Barrel Left  | A     |\n| Rotate Barrel Right | D     |\n| Fire Projectile     | Space |\n\n- **Player 2**\n\n| Action              | Key         |\n| ------------------- | ----------- |\n| Move Forward        | Up Arrow    |\n| Move Backward       | Down Arrow  |\n| Rotate Barrel Left  | Left Arrow  |\n| Rotate Barrel Right | Right Arrow |\n| Fire Projectile     | Enter       |\n\n## **Game Screenshots**\n\n\u003cimg src=\"README_imgs/image1.png\" width=\"600\"/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertpaulp%2Ftank-wars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertpaulp%2Ftank-wars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertpaulp%2Ftank-wars/lists"}