MonoGame / MonoGame.Samples

A few cross-platform game samples using MonoGame.
www.monogame.net
Other
570 stars 298 forks source link

Update Animation.cs #45

Closed JohnLamontagne closed 4 years ago

JohnLamontagne commented 6 years ago

Property FrameWidth returned the texture Height rather than Width

SimonDarksideJ commented 5 years ago

I don't know why yet, even though this has been in the Platformer sample for years, this change actually breaks the project and it can't be played. Will have to investigate :D Making this change prevents the player from moving left / right, who knew.

Jjagg commented 5 years ago

There's a comment above the change that says "assume square frames". Seems like something else depends on that behavior.

SimonDarksideJ commented 5 years ago

It would seem so, will dig in to it a little more when I have time. Just in the process of updating the projects for another talk @Jjagg :D

SimonDarksideJ commented 4 years ago

Platformer actually requires square frames. But updating to make more sense