{"id":22706539,"url":"https://github.com/3mam/polysnake","last_synced_at":"2025-08-03T17:37:51.797Z","repository":{"id":148271462,"uuid":"444149649","full_name":"3mam/PolySnake","owner":"3mam","description":"2d game write from scratch in .net 6","archived":false,"fork":false,"pushed_at":"2024-01-08T10:05:23.000Z","size":1515,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-13T12:12:57.724Z","etag":null,"topics":["blazor","dotnet","opentk"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"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/3mam.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}},"created_at":"2022-01-03T17:45:01.000Z","updated_at":"2024-06-18T15:16:57.000Z","dependencies_parsed_at":"2024-01-08T11:30:04.422Z","dependency_job_id":"774242f4-658d-4808-9eb3-1522f20f36e3","html_url":"https://github.com/3mam/PolySnake","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3mam%2FPolySnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3mam%2FPolySnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3mam%2FPolySnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3mam%2FPolySnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3mam","download_url":"https://codeload.github.com/3mam/PolySnake/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248710447,"owners_count":21149191,"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":["blazor","dotnet","opentk"],"created_at":"2024-12-10T10:08:57.053Z","updated_at":"2025-04-13T12:13:05.273Z","avatar_url":"https://github.com/3mam.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polygonal Snake\n\n[![Build status](https://github.com/3mam/PolySnake/actions/workflows/dotnet.yml/badge.svg)](https://github.com/3mam/PolySnake/actions)\n[![Live demo](https://api.netlify.com/api/v1/badges/11156706-f6b1-41f9-95b9-8fcf7743fd31/deploy-status)](https://elaborate-lily-2c0859.netlify.app)\n![Snake Screenshot](Assets/output.gif)\n\n## [live demo](https://elaborate-lily-2c0859.netlify.app)\n\nProject goal is write from scratch 2D Snake in **.net 6**.\u003cbr\u003e\u003cbr\u003e\nThis project contains port for Blazor Server and Webassembly.\nI adding Blazor for proof of concept. Game on Blazor don't\nworks 100% same way like desktop version.\nWeird problem is with floating-point numbers. Is behave differently\nbetween Desktop and Blazor.\nAnd this create some problems with proper calculation.\n\n## Used for this project\n\n- libraries:\n    - OpenTK\n    - OpenGL4\n- tools:\n    - Rider\n    - Blender\n\n## Supported platform\n\n- Linux\n- Windows\n- WebBrowser (experimental)\n\n## Keyboard control\n\n| Function      | Keys   |        |\n|---------------|--------|------------|\n| Menu          | Escape |      |\n| Option Up     | W      | ArrowUp    |\n| Option Down   | S      | ArrowDown  |\n| Accept Option | Space  | Enter      |\n| Turn Left     | A      | ArrowLeft  |\n| Turn Right    | D      | ArrowRight |\n\n## Install and run\n\n### Download code.\n\n\u003e git clone https://github.com/3mam/PolySnake.git\n\n\u003e cd PolySnake\n\n### Run desktop version.\n\n\u003e dotnet run --project Poly\n\n### Run browser version.\n\nBlazor server.\n\u003e dotnet run --project BlazorServer\n\nIn browser go to this url.\n\u003e https://localhost:5267\n\nBlazor webassembly.\n\u003e dotnet run --project BlazorWasm\n\nIn browser go to this url.\n\u003e https://localhost:5249\n\n## Build\n\n\u003e cd Poly\n\nFor Windows.\n\u003e dotnet publish -c Release --runtime win-x64\n\nFor Linux.\n\u003e dotnet publish -c Release --runtime linux-x64","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3mam%2Fpolysnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3mam%2Fpolysnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3mam%2Fpolysnake/lists"}