{"id":23383360,"url":"https://github.com/blagojeblagojevic/tile-based-plaftormer-engine","last_synced_at":"2025-04-08T09:44:57.470Z","repository":{"id":246679078,"uuid":"821833997","full_name":"BlagojeBlagojevic/Tile-Based-Plaftormer-Engine","owner":"BlagojeBlagojevic","description":"Tile-Based-Plaftormer/Engine","archived":false,"fork":false,"pushed_at":"2024-07-09T11:32:45.000Z","size":3359,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T06:36:42.372Z","etag":null,"topics":["platformer","platformer2d"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BlagojeBlagojevic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-06-29T15:08:20.000Z","updated_at":"2024-12-17T08:35:53.000Z","dependencies_parsed_at":"2024-06-29T16:27:38.324Z","dependency_job_id":"d6f42422-451d-4683-a570-614bfb50ee13","html_url":"https://github.com/BlagojeBlagojevic/Tile-Based-Plaftormer-Engine","commit_stats":null,"previous_names":["blagojeblagojevic/tile-based-plaftormer-engine"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlagojeBlagojevic%2FTile-Based-Plaftormer-Engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlagojeBlagojevic%2FTile-Based-Plaftormer-Engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlagojeBlagojevic%2FTile-Based-Plaftormer-Engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlagojeBlagojevic%2FTile-Based-Plaftormer-Engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlagojeBlagojevic","download_url":"https://codeload.github.com/BlagojeBlagojevic/Tile-Based-Plaftormer-Engine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247816748,"owners_count":21001043,"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":["platformer","platformer2d"],"created_at":"2024-12-21T22:20:13.282Z","updated_at":"2025-04-08T09:44:57.429Z","avatar_url":"https://github.com/BlagojeBlagojevic.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# SDL Game Project\n\nThis is a simple SDL-based game written in C. The project includes basic functionality for rendering sprites, handling player input, and implementing game logic for a map and enemies.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Project Structure](#project-structure)\n- [Features](#features)\n- [Dependencies](#dependencies)\n- [License](#license)\n\n## Installation\n\n1. **Clone the repository:**\n\n   ```sh\n   git clone https://github.com/BlagojeBlagojevic/Tile-Based-Plaftormer-Engine.git\n   cd sdl-game\n   ```\n\n2. **Install dependencies:**\n\n   Make sure you have the SDL2 and SDL2_image libraries installed on your system. For example, on Ubuntu, you can install them with:\n\n   ```sh\n   sudo apt-get install libsdl2-dev libsdl2-image-dev\n   ```\n\n3. **Build the project:**\n\n   ```sh\n   gcc -o game main.c -lSDL2 -lSDL2_image\n   ```\n\n## Usage\n\nRun the game using the following command:\n\n```sh\n./game\n```\n\n## Project Structure\n\n- `utils.h`: Contains utility functions, macros, and type definitions.\n- `sprite.h`: Defines the `Sprite` structure and functions for initializing and rendering sprites.\n- `player.h`: Contains the player initialization, rendering, and event handling logic.\n- `map.h`: Manages the game map and handles map-related events.\n- `enemy.h`: Defines enemy behavior, including initialization, rendering, and event handling.\n- `game.h`: The main game loop and initialization functions.\n\n## Features\n\n- **Sprite Rendering:** Load and render sprites with animations.\n- **Player Control:** Handle player input and movement.\n- **Map Management:** Load and render a game map with collision detection.\n- **Enemy AI:** Basic enemy movement and collision detection.\n- **Game Loop:** Main game loop with event handling and rendering.\n\n## Dependencies\n\n- SDL2\n- SDL2_image\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblagojeblagojevic%2Ftile-based-plaftormer-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblagojeblagojevic%2Ftile-based-plaftormer-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblagojeblagojevic%2Ftile-based-plaftormer-engine/lists"}