{"id":23569582,"url":"https://github.com/xpol/example","last_synced_at":"2025-05-16T08:34:27.362Z","repository":{"id":145343299,"uuid":"39358616","full_name":"xpol/example","owner":"xpol","description":"A small love2d application to showcase the lovetoys","archived":false,"fork":false,"pushed_at":"2015-03-19T15:34:38.000Z","size":224,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T07:15:44.780Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":false,"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/xpol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-20T02:30:20.000Z","updated_at":"2018-09-28T16:05:11.000Z","dependencies_parsed_at":"2023-03-27T14:36:33.151Z","dependency_job_id":null,"html_url":"https://github.com/xpol/example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpol%2Fexample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpol%2Fexample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpol%2Fexample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpol%2Fexample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xpol","download_url":"https://codeload.github.com/xpol/example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254496312,"owners_count":22080691,"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":[],"created_at":"2024-12-26T19:15:38.966Z","updated_at":"2025-05-16T08:34:27.340Z","avatar_url":"https://github.com/xpol.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lovetoys-example\n\nThis is a small example game that shows how to use the lovetoys in practice.\n\n## Component:\n[position.lua](https://github.com/lovetoys/Lovetoys-examples/blob/master/components/physic/position.lua): Basic Structure of a component.\n\n## Entity:\n[main.lua](https://github.com/lovetoys/Lovetoys-examples/blob/master/main.lua) Line 102-108: How to create an entity, add Components to it and finally add the entity to the engine.  \n[mainKeySystem.lua](https://github.com/lovetoys/Lovetoys-examples/blob/master/systems/event/mainKeySystem.lua) Line 44: How to remove an Entity from the engine.  \n\n## System:\n[circleDrawSystem.lua](https://github.com/lovetoys/Lovetoys-examples/blob/master/systems/graphic/circleDrawSystem.lua): Basic Structure of a system.  \n[main.lua](https://github.com/lovetoys/Lovetoys-examples/blob/master/main.lua) Line 94: How to add a system to the engine.  \n[mainKeySystem.lua](https://github.com/lovetoys/Lovetoys-examples/blob/master/systems/event/mainKeySystem.lua) Line 47: How to remove a System.  \n[multipleRequirementsSystem](https://github.com/lovetoys/Lovetoys-examples/blob/master/systems/test/multipleRequirementsSystem.lua) Line 5-19: How to write a System with multiple component requirements and how to access the different target lists.\n\n## Engine:\n[main.lua](https://github.com/lovetoys/Lovetoys-examples/blob/master/main.lua) Line 54: How to create an engine.  \nLine 116: Engine update function.  \nLine 126: Engine draw function.  \n\n\n## Eventmanagement:\n[keyPressed.lua](https://github.com/lovetoys/Lovetoys-examples/blob/master/events/keyPressed.lua) Basic structure of an event.  \n[mainKeySystem.lua](https://github.com/lovetoys/Lovetoys-examples/blob/master/systems/event/mainKeySystem.lua) This is a typical event system.  \n[main.lua](https://github.com/lovetoys/Lovetoys-examples/blob/master/main.lua) Line 78: How to add a system to an existing eventmanager.  \nLine 129: How to fire an event to the eventmanager.  \n\n## Collisionmanagment:\n\n[main.lua](https://github.com/lovetoys/Lovetoys-examples/blob/master/main.lua) Line 77: How to add the collisionmanager to the related event manager.  \n[beginContact.lua](https://github.com/lovetoys/Lovetoys/blob/master/src/events/beginContact.lua): The beginContact event that's fired by the event manager.  \n[main.lua](https://github.com/lovetoys/Lovetoys-examples/blob/master/main.lua) Line 83: How to add a new collision to the collision manager.  \nLine 140: Firing the BeginContact event.  \n[polygonCircleCollision.lua](https://github.com/lovetoys/Lovetoys-examples/blob/master/collisions/polygonCircleCollision.lua): Basic structure of a collision. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxpol%2Fexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxpol%2Fexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxpol%2Fexample/lists"}