All Questions
6
questions
0
votes
1
answer
164
views
Use camera transformation while avoiding the need to scale y axis in spriteBatch.draw() calls
I am creating a 2D platformer type game in XNA.
I currently have a camera object, with a position/rotation/zoomlevel that I use to generate a transformation matrix to pass to SpriteBatch.Begin(). ...
1
vote
1
answer
103
views
XNA 2D Camera loosing precision
I have created a 2D camera (code below) for a top down game. Everything works fine when the players position is close to 0.0x and 0.0y.
Unfortunately as distance increases the transform seems to have ...
0
votes
1
answer
196
views
How do I get camera veiw matrix in a 2d game
my camera class is this and i use this in my screen class to render the map. I need to be able to do this so i can draw mercury particle engine particles without it looking like it is being dragged ...
0
votes
1
answer
194
views
Platformer Starter Kit camera scrolling issue
I'm using the XNA Platformer Kit & I'm trying to implement a camera that follows a player. I followed David Amador's 2D Camera tutorial, and the camera works as expected, it follows the player. ...
0
votes
1
answer
298
views
how to make a map in xna 4 with matrix from text file
I am trying to make a map by reading a text file line by line (because i cant find how to do that word by word). So I make a map00.txt that looks like "33000000111" (every number is one row, first 2 ...
2
votes
1
answer
4k
views
How to use Transformation Matrix for SpriteBatch correctly?
I'm new to XNA and would like to develop a light-weight 2D engine over it, with the entities organized into parent-child hierarchy. I think of matrix when drawing children, because their position, ...