{"id":16214630,"url":"https://github.com/lfeq/ar-game","last_synced_at":"2026-05-15T13:35:06.799Z","repository":{"id":191440354,"uuid":"684654512","full_name":"lfeq/AR-Game","owner":"lfeq","description":"Traffic Manager AR Game and Asset Bundle Server","archived":false,"fork":false,"pushed_at":"2023-09-19T02:39:26.000Z","size":21177,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T23:45:02.097Z","etag":null,"topics":["backend","game-development","nodejs","unity","unity3d"],"latest_commit_sha":null,"homepage":"","language":"ShaderLab","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/lfeq.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":"2023-08-29T15:26:06.000Z","updated_at":"2023-09-23T13:34:48.000Z","dependencies_parsed_at":"2025-02-13T23:43:42.296Z","dependency_job_id":"9e17d3a7-008d-4a1d-9c6a-e74e6fdb30a4","html_url":"https://github.com/lfeq/AR-Game","commit_stats":null,"previous_names":["lfeq/ar-game"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfeq%2FAR-Game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfeq%2FAR-Game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfeq%2FAR-Game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfeq%2FAR-Game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lfeq","download_url":"https://codeload.github.com/lfeq/AR-Game/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247740134,"owners_count":20988156,"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":["backend","game-development","nodejs","unity","unity3d"],"created_at":"2024-10-10T11:11:48.356Z","updated_at":"2026-05-15T13:35:01.779Z","avatar_url":"https://github.com/lfeq.png","language":"ShaderLab","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Traffic Manager AR Game and Asset Bundle Server\n\nThis project combines a Unity-based traffic management AR game with a Node.js server for hosting car models via Asset Bundles. In the game, players manage traffic at an intersection, avoiding collisions and preventing long queues that frustrate drivers.\n\n## Prerequisites\n\nBefore running this project, make sure you have the following software installed:\n\n- Unity 2022.3 or a later version\n- Node.js 16 or a later version\n- MySQL 8 or a later version\n\n## Setup\n\nTo set up the project, follow these steps:\n\n1. Clone this repository to your local machine.\n2. Open the Unity project.\n3. Set up a MySQL database with two fields: `demon_name` and `file_path`.\n4. Configure the database connection in the `config.js` file.\n5. Start the MySQL server.\n6. Run `npm install` to install the required dependencies.\n7. Identify your local IP address and update line 73 in `index.js` accordingly.\n8. Launch the Node.js server by running `node index.js`.\n9. In Unity, navigate to Assets \u003e BuildAssetBundles.\n10. Open the `UploadAssetBundle.cs` file and update the IP address to your local IP obtained in step 7.\n11. Save the file and run the `UploadAssetBundle.unity` scene.\n12. Open the `LevelManager.cs` file and update the IP address to your local IP obtained in step 7.\n13. Build and run the Unity game on your phone without stopping the server.\n\n## How to Play\n\nTo enjoy the game, follow these steps:\n\n1. Print the provided image on a piece of paper.\n![Printed Image](PRINTIMAGE.webp)\n2. Use the game build on your phone to scan the printed image with your camera.\n3. If the image is recognized correctly, a small menu like this will appear.\n![Start Screen](StartScreen.jpg)\n4. Press \"Play.\"\n5. Click on the red spheres to make the cars move forward and prevent collisions.\n6. Have fun!\n\n## Code Explanation\n\nThe project's code is divided into two main parts: the Unity game code and the Node.js server code.\n\n### Unity Game Code\n\nThe Unity game code manages the game's visuals and player input. Key scripts include:\n\n- `CarController.cs`: Controls car movement.\n- `LaneManager.cs`: Manages the traffic lanes within the game.\n- `TrafficLightManager.cs`: Controls the in-game traffic lights.\n- `MenuManager.cs`: Manages the game's menus.\n\n### Node.js Server Code\n\nThe Node.js server hosts the asset bundle. Key files include:\n\n- `index.js`: Initiates the server and handles game requests.\n- `config.js`: Contains server configuration settings.\n\nFeel free to explore and modify the code to suit your needs and enhance the game experience.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfeq%2Far-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flfeq%2Far-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfeq%2Far-game/lists"}