|
| 1 | +--- |
| 2 | +layout: page |
| 3 | +title: Robanization |
| 4 | +description: A challenging 2D platformer game with procedural level generation and dynamic obstacles. |
| 5 | +img: assets/img/robanization.svg |
| 6 | +importance: 1 |
| 7 | +category: fun |
| 8 | +--- |
| 9 | + |
| 10 | +## `Robanization` |
| 11 | + |
| 12 | +> A sophisticated 2D platformer that combines procedural level generation with challenging gameplay mechanics, creating a unique experience every time you play. |
| 13 | +
|
| 14 | +### `Feature Highlights` |
| 15 | + |
| 16 | +Built with `Python` and `Pygame`, this platformer showcases advanced game development concepts. The game features procedurally generated levels, dynamic obstacles, and a responsive camera system that follows the player's movement. |
| 17 | + |
| 18 | +### `Interface Views` |
| 19 | + |
| 20 | +#### Game Menu Interface |
| 21 | + |
| 22 | +<details> |
| 23 | + <summary>View the Game Menu Interface</summary> |
| 24 | + <div class="row justify-content-center"> |
| 25 | + <div class="col-md-8"> |
| 26 | + {% include figure.liquid path="assets/img/game_menu_interface.jpg" title="Game Interface" class="img-fluid rounded z-depth-1" %} |
| 27 | + </div> |
| 28 | + </div> |
| 29 | +</details> |
| 30 | + |
| 31 | +#### Game Interface |
| 32 | + |
| 33 | +<details> |
| 34 | + <summary>View the Game Interface</summary> |
| 35 | + <div class="row justify-content-center"> |
| 36 | + <div class="col-md-8"> |
| 37 | + {% include figure.liquid path="assets/img/game_interface.jpg" title="Game Interface" class="img-fluid rounded z-depth-1" %} |
| 38 | + </div> |
| 39 | + </div> |
| 40 | +</details> |
| 41 | + |
| 42 | +### `Technical Deep Dive` |
| 43 | + |
| 44 | +#### Core Game Systems |
| 45 | +- Custom physics engine with gravity simulation |
| 46 | +- Procedural level generation from text templates |
| 47 | +- Dynamic camera system |
| 48 | +- Pixel-perfect collision detection |
| 49 | +- State management (Menu, Game, Game Over) |
| 50 | +- Score tracking system |
| 51 | + |
| 52 | +#### Game Mechanics |
| 53 | +- Smooth player movement and controls |
| 54 | +- Environmental hazards (water, tornados) |
| 55 | +- Teleportation system for level progression |
| 56 | +- Multiple character animation states |
| 57 | +- Monetary reward system |
| 58 | + |
| 59 | +### `Key Classes` |
| 60 | + |
| 61 | +```python |
| 62 | +class LEVEL: |
| 63 | + # Main game level management |
| 64 | + # Handles world generation, collision detection, and camera movement |
| 65 | + |
| 66 | +class Player: |
| 67 | + # Player character controls |
| 68 | + # Manages movement, physics, and animations |
| 69 | + |
| 70 | +class Tornado/Water: |
| 71 | + # Dynamic obstacles |
| 72 | + # Features randomized movement patterns and collision detection |
| 73 | + |
| 74 | +class Teleport: |
| 75 | + # Level progression system |
| 76 | + # Handles level transitions and score updates |
| 77 | +``` |
| 78 | + |
| 79 | +### `Implementation Details` |
| 80 | + |
| 81 | +#### Level Generation |
| 82 | +The game uses a unique level generation system that combines pre-designed segments: |
| 83 | +```python |
| 84 | +def level_loading(): |
| 85 | + # Loads random level segments |
| 86 | + # Combines them to create unique layouts |
| 87 | + # Ensures playability and proper player spawning |
| 88 | +``` |
| 89 | + |
| 90 | +#### Physics System |
| 91 | +```python |
| 92 | +def apply_gravity(self): |
| 93 | + # Simulates realistic gravity |
| 94 | + # Handles vertical movement |
| 95 | + # Manages jump mechanics |
| 96 | +``` |
| 97 | + |
| 98 | +#### Camera System |
| 99 | +```python |
| 100 | +def camera(self): |
| 101 | + # Tracks player movement |
| 102 | + # Provides smooth scrolling |
| 103 | + # Manages level boundaries |
| 104 | +``` |
| 105 | + |
| 106 | +- **[Game GitHub Repository](https://github.com/andebugulin/my_game)** |
| 107 | + |
| 108 | + |
| 109 | +### `Contributors` |
| 110 | + |
| 111 | +<div id="contributors-list" style="display: flex; flex-wrap: wrap; justify-content: space-around; padding: 20px;">Loading contributors...</div> |
| 112 | + |
| 113 | +<script> |
| 114 | + async function fetchContributors() { |
| 115 | + const url = 'https://api.github.com/repos/andebugulin/my_game/contributors'; |
| 116 | + const response = await fetch(url); |
| 117 | + const contributors = await response.json(); |
| 118 | + |
| 119 | + const contributorsHtml = contributors.map(contributor => |
| 120 | + `<div class="contributor" style="margin: 10px; text-align: center;"> |
| 121 | + <img src="${contributor.avatar_url}" alt="${contributor.login}" style="width: 100px; height: 100px; border-radius: 50%; display: block; margin: auto;"> |
| 122 | + <p><a href="${contributor.html_url}" target="_blank">${contributor.login}</a></p> |
| 123 | + </div>` |
| 124 | + ).join(''); |
| 125 | + |
| 126 | + document.getElementById('contributors-list').innerHTML = contributorsHtml; |
| 127 | + } |
| 128 | + |
| 129 | + fetchContributors(); |
| 130 | +</script> |
0 commit comments