craftworkgames / MonoGame.Extended-samples

MIT License
73 stars 27 forks source link

All the 4 game samples are bugged #16

Open KenshirouLuke opened 1 month ago

KenshirouLuke commented 1 month ago

Hi, launching the 4 games results in clear bug at a drawing level:

So I thought that something changed in the library across the time, and I updated all the the 5 Nuget references in each project, since were old, updating also the .NET projects' version to 8.0 to be compliant with the new Nuget versions... but now none of the projects compile, all giving the same error related to the MGCB:

The command "dotnet mgcb /quiet /@:"C:\Users\lucia\Downloads\MonoGame.Extended-samples-main\src\Games[PROJECT-NAME]\Content\Content.mgcb" /platform:DesktopGL /outputDir:"C:/[MY-PATH]/MonoGame.Extended-samples-main/src/Games/StarWarrior/Content/bin/DesktopGL/Content" /intermediateDir:"C:/[MY-PATH]/MonoGame.Extended-samples-main/src/Games/StarWarrior/Content/obj/DesktopGL/net8.0/Content" /workingDir:"C:/[MY-PATH]/MonoGame.Extended-samples-main/src/Games/StarWarrior/Content/"" exited with code 1.[PROJECT-NAME] C:[MY-PATH].nuget\packages\monogame.content.builder.task\3.8.2.1105\build\MonoGame.Content.Builder.Task.targets 143

Where I replaced my local paths with values in square brackets.

Monogame.Extended seems interesting, but if even the demo projects are bugged or not starting, it's hard to trust using it...

Can someone fix those projects, in order to provide a starting point for who need to see how to use this library? Thanks.

kaltinril commented 1 month ago

I'll see if I can take a look at some of these.

I've submitted PR's for the other demos and samples items PR #17 PR #18

kaltinril commented 1 month ago

The cause of the Pong Paddle getting stuck, and "teleporting" when going to the top/bottom are related to an issue that was introduced in Monogame.Extended. I've opened an Issue here

https://github.com/craftworkgames/MonoGame.Extended/issues/950

kaltinril commented 1 month ago

I wonder if the causes of your other first 2 items are also the MonoGame.Extended.Graphics.Sprite.OriginNormalized code.

kaltinril commented 1 month ago

Yeah, the spacegame ship is also not centered.

image

kaltinril commented 1 week ago

I forgot to comment here, the 4.0.3 revert fixes MOST of these items. I first updated all them to 4.0.2 hoping that would fix it but it didn't after the revert that happened in 4.0.3 I tested and they are working now.

I'm working on getting the projects updated to be using the 4.0.3.

The StarWarrior still has issues though in 4.0.3, this isn't related to Extended, its just coding that needs to be updated.

(I swear I added a comment somewhere but maybe I forgot to click save)