How to make a side scrolling XNA Game?

How to make a side scrolling XNA Game?

I am trying to make a simple side scrolling game in XNA (monogame) as a learning exercise, but I am having some issues getting my head around scrolling the level. Basically, I am trying to make a simple game where the level scrolls from left to right with a player which stays stationary apart from when jumping over obstacles.

What’s the purpose of using XNA in MonoGame?

MonoGame’s purpose is to allow existing XNA code to be easily ported to other plaforms (e.g. iOS, Android, Mac OS X, Linux, Windows 8, Windows Phone 8, PlayStation Mobile and the OUYA console) Yes, you can use XNA lessons / tutorials for MonoGame most of the time.

Why does XNA scroll at a fixed time?

This is done so that computers that are faster and with faster refresh rates see the same speed of scrolling that slower computers with slower refresh rates see. By default, the XNA framework tries to maintain this internally by keeping everything moving at a fixed time step, but it’s a good habit to get into.

How to draw a 2D background for XNA Game?

I initially took the old platformer starter kit and stripped most of its functionality out like the player, gems and enemies. Essentially, all that remains is the functionality to load a level from a text file. It loops through each line of the file determining what type of tile exists and then draws a new Texture 2D for the tile.

How to create a matrix in MonoGame framework?

Framework Constructs a matrix. A first row of the created matrix. A second row of the created matrix. A third row of the created matrix. A fourth row of the created matrix. Constructs a matrix. A first row and first column value. A first row and second column value. A first row and third column value.

How to create matrix for cylindrical billboarding in MonoGame?

The Matrix for cylindrical billboarding as an output parameter. Creates a new Matrix which contains the rotation moment around specified axis. The axis of rotation. The angle of rotation in radians. The rotation Matrix. Creates a new Matrix which contains the rotation moment around specified axis. The axis of rotation.