{"id":26198036,"url":"https://github.com/educ8s/raylib-buttons-tutorial","last_synced_at":"2025-04-15T04:26:33.318Z","repository":{"id":265001003,"uuid":"822459367","full_name":"educ8s/raylib-Buttons-Tutorial","owner":"educ8s","description":"raylib Buttons Tutorial","archived":false,"fork":false,"pushed_at":"2024-07-01T07:54:47.000Z","size":902,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T18:54:26.930Z","etag":null,"topics":["raylib","raylib-cpp"],"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/educ8s.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-07-01T07:39:48.000Z","updated_at":"2024-12-28T12:45:53.000Z","dependencies_parsed_at":"2024-11-27T06:48:22.690Z","dependency_job_id":null,"html_url":"https://github.com/educ8s/raylib-Buttons-Tutorial","commit_stats":null,"previous_names":["educ8s/raylib-buttons-tutorial"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/educ8s%2Fraylib-Buttons-Tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/educ8s%2Fraylib-Buttons-Tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/educ8s%2Fraylib-Buttons-Tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/educ8s%2Fraylib-Buttons-Tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/educ8s","download_url":"https://codeload.github.com/educ8s/raylib-Buttons-Tutorial/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249005501,"owners_count":21197075,"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":["raylib","raylib-cpp"],"created_at":"2025-03-12T02:49:46.134Z","updated_at":"2025-04-15T04:26:33.299Z","avatar_url":"https://github.com/educ8s.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Raylib Buttons Tutorial\n\nThis repository contains the code for a video tutorial on creating and using buttons in a Raylib project in C++.\n\n## Video Tutorial\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"preview.jpg\" alt=\"Preview\" width=\"940\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n🎥 \u003ca href=\"https://youtu.be/0Ct9ZWEUm7M\"\u003eVideo Tutorial on YouTube\u003c/a\u003e\n\u003c/p\u003e\n\n## Overview\n\nIn this tutorial, we build a basic Raylib application that demonstrates how to create and use buttons. The tutorial covers setting up the Raylib window, creating button objects, detecting button presses, and handling button events.\n\n## Features\n\n- **Raylib Window Setup:** Initialize a Raylib window with a specified width and height.\n- **Buttons:** Create and display interactive buttons that respond to user inputs.\n- **Event Handling:** Detect button presses and perform actions based on those events.\n- **Visual Feedback:** Visual representation of buttons and their states.\n\n## Code Structure\n\n- **main.cpp:** The main script that initializes the Raylib window, handles events, checks for button presses, and renders the game objects.\n- **button.hpp:** Header file containing the `Button` class definition.\n- **button.cpp:** Source file containing the implementation of the `Button` class methods.\n\n## How to Run\n\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/educ8s/raylib-buttons-tutorial.git\n   cd raylib-buttons-tutorial\n   ```\n\n2. Ensure you have C++ and Raylib installed. You can follow the installation instructions on the [Raylib official website](https://www.raylib.com/).\n\n3. Place your button images and background image in the `Graphics` directory.\n\n4. Compile the code:\n   ```bash\n   g++ main.cpp button.cpp -o main -lraylib\n   ```\n\n5. Run the compiled program:\n   ```bash\n   ./main\n   ```\n\n## Usage\n\n- Run the program and a window titled \"Raylib Buttons Tutorial\" will appear.\n- The start button and exit button will be displayed.\n- Clicking the start button will print \"Start Button pressed\" to the console.\n- Clicking the exit button will close the Raylib window and exit the program.\n\n## Dependencies\n\n- C++\n- Raylib\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request if you have any suggestions or improvements.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduc8s%2Fraylib-buttons-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feduc8s%2Fraylib-buttons-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduc8s%2Fraylib-buttons-tutorial/lists"}