{"id":26577916,"url":"https://github.com/vinamrasaurav/crazy-robber","last_synced_at":"2025-03-23T04:18:03.374Z","repository":{"id":283902001,"uuid":"953237365","full_name":"VinamraSaurav/crazy-robber","owner":"VinamraSaurav","description":"A Python/Pygame stealth game where you navigate a thief through procedurally generated levels while avoiding watchmen. Collect coins and reach the exit without getting caught. ","archived":false,"fork":false,"pushed_at":"2025-03-22T22:22:57.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T23:24:32.525Z","etag":null,"topics":["ai","astar-pathfinding","bfs","game","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/VinamraSaurav.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":"2025-03-22T22:04:53.000Z","updated_at":"2025-03-22T22:29:03.000Z","dependencies_parsed_at":"2025-03-22T23:24:41.696Z","dependency_job_id":null,"html_url":"https://github.com/VinamraSaurav/crazy-robber","commit_stats":null,"previous_names":["vinamrasaurav/crazy-robber"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VinamraSaurav%2Fcrazy-robber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VinamraSaurav%2Fcrazy-robber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VinamraSaurav%2Fcrazy-robber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VinamraSaurav%2Fcrazy-robber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VinamraSaurav","download_url":"https://codeload.github.com/VinamraSaurav/crazy-robber/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245052815,"owners_count":20553207,"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":["ai","astar-pathfinding","bfs","game","python"],"created_at":"2025-03-23T04:18:02.526Z","updated_at":"2025-03-23T04:18:03.357Z","avatar_url":"https://github.com/VinamraSaurav.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 🚨 Crazy Robber 🚨\n\n**Crazy Robber** is an exciting 2D game where you control a clever robber navigating through a maze-like city, avoiding watchmen, collecting treasures, and escaping safely. The game features dynamic obstacles, increasing difficulty, and a score-based system.\n\n---\n\n## 🛠️ **Features**\n\n✅ Smooth and interactive player movement.  \n✅ Randomly moving watchmen as dynamic obstacles.  \n✅ Collectible treasures to increase the score.  \n✅ Collision detection with police cars and boundaries.  \n✅ Game over screen with final score and replay option.  \n✅ Clean and modular code structure.\n\n---\n\n## 🎮 **How to Play**\n\n1. **Move the Robber:** Use the arrow keys (`↑`, `↓`, `←`, `→`) to move the robber across the map.\n2. **Avoid Watchmen:** Dodge the watchmen moving randomly on the screen.\n3. **Collect Treasures:** Pick up treasures to increase your score.\n4. **Escape or Survive:** The goal is to collect as many treasures as possible while avoiding the police.\n\n---\n\n## 🖥️ **Installation and Execution**\n\n1. **Clone the repository:**\n   ```bash\n   git clone \u003crepository-link\u003e\n   cd crazy-robber\n   ```\n\n2. **Install dependencies:**\n   Make sure you have `pygame` installed. If not, install it using:\n   ```bash\n   pip install pygame\n   ```\n\n3. **Run the game:**\n   ```bash\n   python main.py\n   ```\n\n---\n\n## 📦 **Folder Structure**\n\n```\n/crazy-robber\n ├── assets/              # Contains images, sounds, and game assets\n ├── main.py              # Entry point of the game\n ├── game.py              # All components of game are assembled here\n ├── pathfinding.py       # Algorithms used like bfs and a star \n ├── robber.py            # Player character (robber) logic\n ├── watchman.py          # Police car (dynamic obstacle) logic\n ├── coin.py              # Treasure collectible logic\n ├── utils.py             # Helper functions\n ├── constants.py         # Game config\n ├── wall.py              # Static obstacles\n ├── grid.py              # Grid login\n ├── metrics.py           # Game analysis logic\n ├── README.md            # Project documentation\n └── requirements.txt     # List of dependencies\n```\n\n---\n\n## 🛠️ **Technologies Used**\n\n- Python 🐍  \n- Pygame 🎮  \n- Object-oriented programming (OOP) principles  \n\n---\n\n## 🚀 **Future Improvements**\n\n- ✅ Add more challenging levels with different city layouts.  \n- ✅ Introduce power-ups for temporary invincibility or speed boosts.  \n- ✅ Include a main menu and settings screen.  \n- ✅ Add sound effects and background music.  \n\n---\n\n## 📝 **License**\n\nThis project is licensed under the MIT License.  \nFeel free to modify and enhance it as you like! 🎉\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinamrasaurav%2Fcrazy-robber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinamrasaurav%2Fcrazy-robber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinamrasaurav%2Fcrazy-robber/lists"}