{"id":15956851,"url":"https://github.com/lioncat2002/seasonsplatformer","last_synced_at":"2025-09-16T17:58:18.599Z","repository":{"id":122940784,"uuid":"361203074","full_name":"Lioncat2002/SeasonsPlatformer","owner":"Lioncat2002","description":"A simple platformer using monogame","archived":false,"fork":false,"pushed_at":"2021-04-27T12:20:08.000Z","size":4512,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-26T20:05:51.375Z","etag":null,"topics":["monogame","monogame-community","monogame-extended","monogame-framework","tiledmap"],"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/Lioncat2002.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":"lioncatdevstudio","open_collective":null,"ko_fi":"lioncatdevstudio","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-04-24T15:51:48.000Z","updated_at":"2024-02-07T21:43:33.000Z","dependencies_parsed_at":"2024-06-16T11:02:08.310Z","dependency_job_id":null,"html_url":"https://github.com/Lioncat2002/SeasonsPlatformer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Lioncat2002/SeasonsPlatformer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lioncat2002%2FSeasonsPlatformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lioncat2002%2FSeasonsPlatformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lioncat2002%2FSeasonsPlatformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lioncat2002%2FSeasonsPlatformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lioncat2002","download_url":"https://codeload.github.com/Lioncat2002/SeasonsPlatformer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lioncat2002%2FSeasonsPlatformer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265614281,"owners_count":23798422,"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":["monogame","monogame-community","monogame-extended","monogame-framework","tiledmap"],"created_at":"2024-10-07T13:36:17.241Z","updated_at":"2025-09-16T17:58:13.546Z","avatar_url":"https://github.com/Lioncat2002.png","language":"C#","funding_links":["https://patreon.com/lioncatdevstudio","https://ko-fi.com/lioncatdevstudio"],"categories":[],"sub_categories":[],"readme":"# A monogame platformer using Monogame Extended and TiledSharp\nI just made this code public coz I was just too lazy to make a video.\nAlso I am getting busier by day so maybe there won't be any video for a while.\nThe code is messy coz I wrote it in a hurry\nThe main part is the collision check in the update method which enables the platform movement\n```cs\n var initpos = player.pos;\n            var Ypos = player.pos.Y;\n            player.Update(gameTime);\n            foreach (var rect in collisionObjects)\n            {\n                if (rect.Intersects(new Rectangle(player.playerBounds.X+2,player.playerBounds.Y-1,4,4)))//This one checks for x axis collision\n                {\n                    player.pos.X = initpos.X;\n                    player.isIdle = true;\n                    player.isFalling = false;\n                }\n                \n                if(rect.Contains(new Point(player.playerBounds.X+4,player.playerBounds.Y+9)))//The y axis collision\n                {\n                    \n                    player.isFalling = false;\n                    player.pos.Y = initpos.Y;\n                }\n                else\n                {\n                    player.isFalling = true;\n                }\n            }\n ```\nYou can code out the jump part very easily after this ;)\n\n\n## A video showing the platformer at work by Oyyou\n\nhttps://www.youtube.com/watch?v=8fr2Z086p5U\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flioncat2002%2Fseasonsplatformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flioncat2002%2Fseasonsplatformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flioncat2002%2Fseasonsplatformer/lists"}