{"id":30170944,"url":"https://github.com/asankasovis/pixel_graphics_engine","last_synced_at":"2025-08-11T21:49:35.516Z","repository":{"id":307331849,"uuid":"1003081275","full_name":"asankaSovis/Pixel_Graphics_Engine","owner":"asankaSovis","description":"🎮 Pixel Graphics Engine is a Processing-based pixel art animation framework. It allows you to create, animate, and interact with pixel-based sprites on a customizable grid. The engine supports sprite movement, collision detection, animation, and various background effects, making it suitable for pixel art experiments and basic game development.","archived":false,"fork":false,"pushed_at":"2025-07-30T16:21:18.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-30T18:57:10.990Z","etag":null,"topics":["game-development","game-engine","gamedev","graphics","pixel-art","processing","processing-sketch","processing3","retro","retrogaming"],"latest_commit_sha":null,"homepage":"https://asankasovis.com/","language":"Processing","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asankaSovis.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,"zenodo":null}},"created_at":"2025-06-16T15:37:28.000Z","updated_at":"2025-07-30T16:19:33.000Z","dependencies_parsed_at":"2025-07-30T18:57:11.654Z","dependency_job_id":null,"html_url":"https://github.com/asankaSovis/Pixel_Graphics_Engine","commit_stats":null,"previous_names":["asankasovis/pixel_graphics_engine"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/asankaSovis/Pixel_Graphics_Engine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asankaSovis%2FPixel_Graphics_Engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asankaSovis%2FPixel_Graphics_Engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asankaSovis%2FPixel_Graphics_Engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asankaSovis%2FPixel_Graphics_Engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asankaSovis","download_url":"https://codeload.github.com/asankaSovis/Pixel_Graphics_Engine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asankaSovis%2FPixel_Graphics_Engine/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269963276,"owners_count":24504301,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["game-development","game-engine","gamedev","graphics","pixel-art","processing","processing-sketch","processing3","retro","retrogaming"],"created_at":"2025-08-11T21:49:30.983Z","updated_at":"2025-08-11T21:49:35.507Z","avatar_url":"https://github.com/asankaSovis.png","language":"Processing","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎮 Pixel Graphics Engine\n![Poster](./Poster.png)\n---\n\n**Pixel Graphics Engine** is a Processing-based pixel art animation framework. It allows you to create, animate, and interact with pixel-based sprites on a customizable grid. The engine supports sprite movement, collision detection, animation, and various background effects, making it suitable for pixel art experiments and basic game development.\n\n## 🎮 License\n\u003e Pixel Graphics Engine is licensed under the **GNU General Public License v3.0**.\n\nPermissions of this strong copyleft license are conditioned on making available complete source code of licensed works and modifications, which include larger works using a licensed work, under the same license. Copyright and license notices must be preserved. Contributors provide an express grant of patent rights.\n\n### Permissions\n✔️ Commercial use | Modification | Distribution | Patent use | Private use\n\n### Limitations\n❌ Liability | Warranty\n\n### Conditions\nℹ️ License and copyright notice | State changes | Disclose source | Same license \n\nRefer to the [License declaration](./LICENSE) for more details.\n\n## 🎮 Features\n\n- **Customizable Pixel Grid:** Set resolution, pixel size, and offset.\n- **Sprite System:** Create and animate sprites with custom patterns and colors.\n- **Sprite Behaviours:** Supports stationary, edge-stop, bounce, and wrap-around movement.\n- **Collision Detection:** Sprites can detect and respond to collisions.\n- **Background Effects:** Solid colour or patterned backgrounds.\n- **Animation Control:** Keyframes, rotation, flipping, and auto-animation.\n- **Extensible Logic:** Add custom behaviours per frame.\n\n## 🎮 File Structure\n\n```\n.gitignore\nREADME.md\nPixel_Graphics_Engine/\n  contents.pde      # Sprite creation and initialization\n  driver.pde        # Core engine: Driver, Sprite, Pattern classes\n  logic.pde         # Per-frame custom logic\n  Pixel_Graphics_Engine.pde# Main Processing sketch (entry point)\n```\n\n## 🎮 Getting Started\n\n### Requirements\n\n- [Processing](https://processing.org/) (Java mode)\n\n### Running the Project\n\n1. Open the `Pixel_Graphics_Engine` folder in Processing.\n2. Run `Pixel_Graphics_Engine.pde`.\n\n### Main Components\n\n#### Pixel Grid\n\n- **Resolution:** Set via `pixel_res` (`PVector(x, y)`)\n- **Pixel Size:** Set via `pixel_size` (`PVector(x, y)`)\n- **Offset:** Set via `pixel_offset` (`PVector(x, y)`)\n\n#### Sprites\n\n- Defined in [`contents.pde`](Pixel_Graphics_Engine/contents.pde)\n- Created using the `Sprite` class ([`driver.pde`](Pixel_Graphics_Engine/driver.pde))\n- Example: Five ball sprites with random colors and movement\n\n#### Driver\n\n- Manages pixel updates, rendering, and sprite interactions\n- See [`Driver`](Pixel_Graphics_Engine/driver.pde)\n\n#### Animation \u0026 Patterns\n\n- Sprites use `Pattern` objects for animation frames\n- Supports rotation, flipping, and keyframe control\n\n#### Custom Logic\n\n- Add per-frame behaviors in [`PerformLogic`](Pixel_Graphics_Engine/logic.pde)\n\n## 🎮 How It Works\n\n1. **Setup:** Initializes the pixel grid and driver, creates sprites.\n2. **Draw Loop:** Each frame:\n   - Executes custom logic (`PerformLogic`)\n   - Updates pixel array via the driver (`UpdatePixels`)\n   - Renders pixels to the canvas (`DrawPixels`)\n   - Controls frame rate via delay\n\n## 🎮 Sprite Behaviors\n\n- **Drive Types:**\n  - `0`: Stationary\n  - `1`: Stop at edge\n  - `2`: Bounce at edge\n  - `3`: Wrap around edge\n\n- **Collision Layers:** Sprites can be assigned to layers for selective collision detection.\n\n- **Animation:** Sprites can auto-animate or be controlled manually.\n\n## 🎮 Extending the Engine\n\n- **Add Sprites:** Modify `CreateSprites()` in [`contents.pde`](Pixel_Graphics_Engine/contents.pde)\n- **Custom Patterns:** Create new `Pattern` objects for different shapes/animations.\n- **Logic:** Add game or animation logic in [`PerformLogic`](Pixel_Graphics_Engine/logic.pde)\n\n## 🎮 Example: Creating a Ball Sprite\n\nSee [`return_ball`](Pixel_Graphics_Engine/contents.pde) for a sample sprite creation function.\n\n---\n\n\u003e For more details, see the code comments\n\n`© 2024 Asanka Sovis`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasankasovis%2Fpixel_graphics_engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasankasovis%2Fpixel_graphics_engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasankasovis%2Fpixel_graphics_engine/lists"}