C# is a multiparadigm, managed, garbage-collected, object-oriented programming language created by Microsoft in conjunction with the .NET platform.
1
vote
0answers
20 views
XNA - Obtaining depth from the scene's render target?
I'm currently rendering my scene to a render target so it can be used for rendering methods such as post processing and order independent transparency.
rtScene = new RenderTarget2D(
...
1
vote
3answers
59 views
Game programming and quantity of timers
I've made a simple 2D game engine using C# and DirectX and it's fully functional for the demo I made to test it. I have a Timer object that uses QueryPerformanceCounter and I don't know what's the ...
0
votes
1answer
31 views
Game Maker Studio Gravity Problems
I've started messing around with Game Maker Studio. The problem I'm having is trying to get a gravity code for orbiting.
Here's how i did it in XNA
foreach (GravItem Item in ...
2
votes
2answers
125 views
Game Asset Management
I am making my first small mobile game in C# XNA. Lets say I have 3 screens, the main menu, options and game screen. A single game session usually lasts for 1 min, so the user will alternate ...
0
votes
1answer
100 views
Displaying text letter by letter
I am planing to Write a Text adventure and I don't know how to make the text draw letter by letter in any other way than changing the variable from
h to he to hel to hell to hello
That would be a ...
6
votes
1answer
98 views
Drawing “Stenciled” Sprites and making them glow
Currently, in my game - I'm not using XNA's SpriteBatch to render anything(I am using Farseer Physic's Debug View), and I was wondering how I would render something like this:
only using XNA. My ...
0
votes
1answer
34 views
Farseer Physics for Xna missing ConvertUnits class
Im using Farseer Physics with Xna 4.0. Im following a starter guide. It said that to draw, I need to convert the meters to pixels with the ConvertUnits namespace. I looked through all of the engine, ...
0
votes
2answers
65 views
Shuffle tiles position in the beginning of the game XNA Csharp
Im trying to create a puzzlegame where you move tiles to certain positions to make a whole image. I need help with randomizing the tiles startposition so that they don't create the whole image at the ...
1
vote
3answers
104 views
How to design 2D collision callback methods?
In a 2D game where you have a lot of possible combination of collision between objects, such as:
object A vs object B => object B vs A;
object A vs object C => object C vs A;
object A vs object D ...
3
votes
3answers
81 views
Moving a body in a specific direction using XNA with Farseer Physics
I have a custom polygon attached to a body, which looks like this:
What I am trying to accomplish is getting the body to move according to wherever the tip of the body is. So far this is what I've ...
5
votes
2answers
135 views
Rotate a vector
I want my first-person camera to smoothly change its viewing direction from direction d1 to direction d2. The latter direction is indicated by a target position t2.
So far I have implemented a ...
-1
votes
0answers
55 views
RTS Game Style Application [closed]
My question may seem somewhat odd, but I hope that my specifications will clarify EXACTLY what it is that I am after. I need some help choosing the right tooling for a particular endeavour. My ...
1
vote
2answers
125 views
Is 2 lines of push/pop code for each pre-draw-state too many?
I'm trying to simplify vector graphics management in XNA; currently by incorporating state preservation. 2X lines of push/pop code for X states feels like too many, and it just feels wrong to have 2 ...
-1
votes
0answers
68 views
What language and tools can I use to create a simple game with child-lock (capture all key press) for Windows? [closed]
I'm writing an open source program that changes colors & plays sounds when keys are pressed. I want it to run in full screen mode and have a child-lock so kids can't exit accidentally. I want it ...
3
votes
1answer
105 views
How to determine the end of list has been reached?
I'm trying to animate my object according to a set of recorded values from kinect skeleton stream by saving the (x,y,z) stream from the skeletal data into a list and then set my objects x and y ...