Hi, everybody
For some time playing with XNA 2D. I implemented Camera2D from tutorials: it have move, rotate and zoom. It work pretty good with simple Rectangle collision. But then I try to do PerPixelCollision with zoom - boom, game crashes. On method Texture2D.GetData(Color[]). Error says: The size of the data passed in is too large or too small for this resource. But if I dont zoom - works perfectly.
Maybe somebody have same problem?
I adding project (visual studio 2010), maybe somebody will know what doing not right. All logics about game objects is in Entity, in end of UpdateEntity, and next method is PerPixelCollision
Uh, was forget to add project. Now tried, and didn't let to add, so there is link: https://www.dropbox.com/s/gimojdfhdzspzpl/TestGame.7z