tagged [xna]

Support for XNA in WP8?

Support for XNA in WP8? After watching a little bit of the summit keynote I kind of heard conflicting reports about it, but is it official that XNA is being dropped for WP8? I'm guessing since the fut...

how do you instanciate a class in c#?

how do you instanciate a class in c#? I am making a game for the Windows Phone using XNA framework C#. The main player in the game has to shoot. I have a bullet class, but how do you instantiate that ...

4 Mar at 17:0

The debugger cannot continue running the process. Unable to start debugging

The debugger cannot continue running the process. Unable to start debugging I used this to use my XNA game in visual studio 2012, everything worked perfectly as it looks but when I click on the debug ...

10 Jul at 01:40

Galaxian-like Enemy movement

Galaxian-like Enemy movement I'm making a galaxian-like shooter, and my enemy objects have a destination Vector which they travel towards, using this bit of code: Motion is worked out by: This makes t...

7 Jan at 11:42

Adding inputbox-like control to XNA game

Adding inputbox-like control to XNA game I want my game to have normal text input, but it seems very unpleasant to do using pure XNA. Earlier I found this piece of code which lets me use `MessageBox` ...

18 Apr at 19:40

How to calculate bounce angle?

How to calculate bounce angle? I played around with it for a while, but I simply can't figure it out. I made a tank that fires missiles, and when the missiles hit the walls, I want them to bounce off,...

13 Aug at 19:21

How to draw the border of a square?

How to draw the border of a square? I'm using monogame (which uses the XNA API interface) to write my game. So far it is great, but I have hit a snag on something that should be simple. I need to draw...

15 Dec at 20:21

DirectX from C#

DirectX from C# I'm looking into various options for using DirectX in C#; ideally I want to use whatever technology is preferred by Microsoft. - [SharpDX](http://sharpdx.org/)- [Slim DX](http://slimdx...

24 Oct at 07:53

Does XNA provide audio input (line in)?

Does XNA provide audio input (line in)? Does XNA provide a means of audio input from the line-in? I looked at the [MSDNA website](http://msdn.microsoft.com/en-us/library/bb195038.aspx) but can't find ...

11 Feb at 23:30

XNA/MonoGame: Getting the Frames Per Second

XNA/MonoGame: Getting the Frames Per Second I am trying to get the current FPS of my game, however I can only find methods that updates the FPS variable every second. E.g. [https://github.com/CartBlan...

19 Dec at 07:54

Is it possible to run an XNA game without .NET or XNA installed?

Is it possible to run an XNA game without .NET or XNA installed? I've developed an XNA game that I'd like to show a few people at my school, but unfortunately the school computers don't have XNA or th...

16 Nov at 02:38

UI library for XNA

UI library for XNA I'm working on a small and simple XNA game and I'm noticing I'm spending way too much time implementing basic UI functionality like menus, (rich) text rendering including wrapping a...

26 May at 08:54

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

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 others, includin...

21 Nov at 20:17

Dealing with lag in XNA + lidgren

Dealing with lag in XNA + lidgren I am experimenting with [lidgren](http://code.google.com/p/lidgren-network-gen3/) in XNA and I'm having some issues with the 'lag'. I've downloaded their [XNA sample]...

6 Feb at 04:16

Checking if a point is inside a rotated rectangle

Checking if a point is inside a rotated rectangle I know this question has been asked a few times before, and I have read various posts about this. However I am struggling to get this to work. ``` boo...

17 Jun at 05:59

How to implement a Worms style destructible terrain in XNA?

How to implement a Worms style destructible terrain in XNA? I want to prototype an idea for a game I have. The idea for this game is that the player will dig through the ground, creating tunnels and f...

3 Jun at 19:3

Does the typeof() operator in C# allocate a new Type object on the heap, or return an existing one?

Does the typeof() operator in C# allocate a new Type object on the heap, or return an existing one? Should be pretty self-explanatory, but this is in the context of real-time XNA code where I want to ...

30 Apr at 16:19

Combining multiple pixel shaders efficiently

Combining multiple pixel shaders efficiently So I'm making a thing with XNA 3.1, and I have a lot of separate effects that are applied via pixel shaders. These come from all sorts of sources, such as ...

7 Dec at 13:40

Xbox programming

Xbox programming I am learning the language c. After c I will probably move onto objective c and develop some iPhone applications. Then I was thinking about learning c# and xna. How long do you guys t...

14 Dec at 18:53

C# XNA Visual Studio: Difference between "release" and "debug" modes?

C# XNA Visual Studio: Difference between "release" and "debug" modes? I'm working on a demo about collision detection. (Some of the code for this is detailed [here](https://stackoverflow.com/questions...

23 May at 11:43

C# game development after XNA

C# game development after XNA I am a game developer who made games in .Net languages with XNA for the past four versions of it. Unfortunately now there's this news: [http://www.gamasutra.com/view/news...

3 Feb at 05:18

XNA 4.0 with C# .NET 4.5?

XNA 4.0 with C# .NET 4.5? I want to write an XNA game using .NET 4.5, so that I can use one of the new features that isn't in .NET 4.0. Is there any way to do this? VS2012 doesn't have XNA listed anyw...

How do I pause the redraw in XNA?

How do I pause the redraw in XNA? I made an XNA image viewer, but it always redraws the scene, even if it's not changing, and it's making my netbook burn like hell, so I'd like it to pause drawing whe...

23 May at 11:45

How to store structs of different types without boxing

How to store structs of different types without boxing I'm creating a messaging system for use in an XNA game. My Message types are structs because I want them to behave in a Value Type way. I want t...

28 May at 17:43

Orbital Mechanics

Orbital Mechanics Does anyone have an example of implementing Orbital Mechanics (preferably in XNA)? The code I am currently using is below, but it doesn't "feel right" when it executes. The object ju...

17 Mar at 21:9