xna

Building Content in Winform XNA

I have successfully been able to build content into my winform using Winform Series 1 and Winform Series 2 but my question is, how do you get the content to be loaded back into the editor the next time you open it. The content, .xnb, file is currently being saved to a temp folder. Is there anyway to have the content be loaded back into t...

Is there any way to use XNA 3.1 with Visual C# Express 2010?

Is there any way to use XNA 3.1 with Visual C# Express 2010? ...

OutOfMemory Exception when drawing cube

hi, i have a class that draws and rotates a cube. every time i rotate the cube i reload the buffer with the new values for the cube. public void LoadBuffer(GraphicsDevice graphicsDevice) { buffer = new VertexBuffer(graphicsDevice, VertexPositionNormalTexture.VertexDeclaration, triangles * 3, BufferUsage.None); bu...

Convert XNA Project to Silverlight

Is there a way to convert an XNA project to a Silverlight project? I've never actually used Silverlight, but I like the prospect of transitioning my XNA project for use on the web. Of course, I would prefer to make as few changes to the original code as possible. ...

Is there a way to lock VertexBuffers in XNA?

Looking at the MSDN documentation, I can't find a way to lock VertexBuffers so that I can change their data while on the device. Is this possible in XNA? ...

Is it possible to render a scene to multiple textures in a single pass with Xna?

Hello world! I am wondering if it is possible to render a scene to multiple render targets in a single pass (or anything faster than drawing it several times through client code). I want to optimize some code that is being rendered to several textures of varying dimensions (512 by 512, 256 by 256, 128 by 128 and 64 by 64 for example). ...

Drawing Bezier path in XNA for Windows Phone 7.

Hi, I am very new to Windows Phone 7. I am writing a sample game in which I want to move the Image randomly. While discussing with one of my friend, he told me to use Bezier path. I search in the net to understand Bezier path concept. It looks like it will suit for my solution. But I did not found any sample code which will do this....

Walking on uneven terrain, feet leg hip rotation

I would like to know the algorithm for detecting uneven terrain and rotating the feet to match the plane of the land as well as hips and legs. We are writing a game where this will be very key. ...

Convert string to Color in C#

A am encountering a problem which is how do I convert input strings like "RED" to the actual Color type Color.Red in C#. Is there a good way to do this? I could think of using a switch statement and cases statement for each color type but I don't think that is clever enough. ...

Convert A XNA Color object to a string

I know how to convert a string to an XNA Color object, but how do I convert a C# Color object like Color.Blue into its string representation(e.g. "Blue"). ...

How do Menu Screens/Screen Changes work in C# and XNA?

I'm working on a game in C# w/ XNA, and I want to make a main menu screen/title and options screens. I'm not sure how to make them, or what's required to do so. ...

Starting vg dev, which language?

Hey, I know someone who is looking into developing simple video games on his pc, and then eventually, hopefully port or develop some on the XBOX 360 indie center, using XNA studio. So, I have heard about C#? How easy it for a beginner? C++ is pretty good isn't it? But I've heard it's QUITE deep, broad, and sounds pretty easy to get l...

Cool C# book, with or without XNA?

I am looking to delve into the wonderful, windowy-world of C# development, and I am wondering about the best book for the job. Now, I have two options in my opinion: 1) Get a book that focuses solely on the language, C#, itself. 2) Or, get one that is bundled with doing stuff with XNA Game Studio. I personally believe option #1 is ...

Farseer setup in Visual studio to work with C# and XNA

I have downloaded the folder containing the Farseer Physics engine. and I have a game that I am working on using C# and XNA. The issue Im having is that I dont know how to add the files for Farseer to my project so i can reference the functions in the code. How Do I do this? ...

Getting Started with Windows Phone 7

This is a community wiki list of Windows Phone 7 resources. Feel free to edit/add/etc. General Information App hub - central place for windows phone/xbox development tools/tutorials/info http://www.microsoft.com/windowsmobile/en-us/default.mspx http://developer.windowsphone.com/ http://windowsteamblog.com/Windows_Phone/ Programming Gui...

How to make a physics character moving without rotating

Hello guys, currently I'm developing a simple game which uses physics engine (Farseer for XNA). I would like to ask how can I make the character so that he can walking on the ground, jumping on platform without rotating itself. Because I need to update the body position and rotation, because it is a physics object so it will response l...

(Follow-up question) How to make a 2D camera that follows a sprite? [for XNA-game]

I was looking for tutorials on the net for a 2d camera that follows a sprite and I found a reply from this site: (http://stackoverflow.com/questions/712296/xna-2d-camera-engine-that-follows-sprite) I made a simple game where in the sprite is loaded at the center of the game screen and it moves according to the direction I press from m...

XNA 4.0 for xbox question (confused)

At the moment I have visual studio 2010 open, I see XNA Game Studio 4.0 and then I see Xbox 360 Game 4.0 as well as window game (4.0) I was under the assumption that these were not released yet, or not ready. What happens when I actually use them? am I using XNA 4.0? can I publish to Indie games for xbox(pretty sure I cannot) usin...

How do you count registers in HLSL?

With shader model 2.0, you can have 256 constant registers. I have been looking at various shaders, and trying to figure out what constitutes a single register? For example, in my instancing shader, I have the following variables declared at the top, outside of functions: float4x4 InstanceTransforms[40]; float4 InstanceDiffuses[40]; ...

Difficulty of a side-scrolling game in C#

I was just wondering, if I began learning C#, how long it would take until I would be able to make a game utilizing the XNA Game Studio (4.0) and framework to make an XBOX 360 Live Arcade side-scrolling game. Realistically, I have other priorities too, so I'm just trying to feel out if the "project" is feasible. Obviously, if I wanted ...