Top "Xna" questions

XNA is a cross-platform framework originally from Microsoft that facilitates game development with .NET.

How to align text drawn by SpriteBatch.DrawString?

Is there an easy way to align text to the right and center (instead of default left)?

c# text xna alignment drawstring
How do I unload content from the content manager?

I tried using the dispose function on a texture2d but that caused problems and I'm pretty sure it's not …

xna content-management
How do I check if a List contains an object of a certain type? C#

I have a list (called Within), and it contains objects of type GameObject. GameObject is a parent class to many …

c# xna
Is there a fast alternative to creating a Texture2D from a Bitmap object in XNA?

I've looked around a lot and the only methods I've found for creating a Texture2D from a Bitmap are: …

c# xna bitmap texture2d
XNA C# 2D Platformer Game

I'm trying to make (figure out how to..) a 2d platformer in XNA. I know how to create a tile …

c# xna collision-detection tiles
Xna adding gravity to a 2d sprite

I am trying to simulate gravity in my first xna 2d game. I have the following //Used for Jumping double …

c# xna game-physics
Intersection of a 2D segment with a rectangle

I using C# and XNA. I need an algorithm in any language to obtain the border intersection point(s) of …

c# xna geometry intersection segment
Embed XNA in WinForms

Is it possible to embed an XNA game in a C# WinForm or a C++ Window. If yes then How. …

c# c++ winforms xna uicomponents
Performance cost of 'new' in C#?

In C# what is the performance cost of using the new keyword? I ask specifically in relation to games development, …

c# performance xna new-operator
How well does WPF blend with XNA in real life?

I understand that there are several ways to blend XNA and WPF within the same application. I find it enticing …

wpf interop xna direct3d