C# is a multiparadigm, managed, garbage-collected, object-oriented programming language created by Microsoft in conjunction with the .NET platform.

learn more… | top users | synonyms

3
votes
6answers
1k views

Should I go with Windows Phone 7 or Try Android? [closed]

I already know C# and am familiar with XNA. So it would make sense to develop for the Windows Phone 7, but would it be worth while to learn Java, get familiar with Android, and instead develop for ...
-2
votes
3answers
2k views

Developing 3D card game. Is C# good enough?

I was thinking of developing several rather simple card games in DirectX (3D), but I'm not sure if C# and XNA are powerfull enough for this. Perhaps the most appropriate question is: can you choose ...
12
votes
6answers
2k views

Am I hurting myself by not knowing C++ for game design?

Right now, I feel I am strong in both Java a C#. (Not much of a leap from one to the other really). While I don't expect a game designer/programmer is an attainable goal early on in my career, This ...
6
votes
3answers
3k views

Networking and movement in MMORPG's UNITY

I'm programming a dedicated server in C# using BeamServer2 DLL's. At first I wanted to be able to see other players move on our already made Omuni map. This I did by just sending your position to the ...
8
votes
2answers
3k views

How to use XNA in WPF?

How can I render some graphics using XNA to a widget/control in a WPF app? Specifically, I don't need any WPF controls inside the XNA graphics window, I just want to put some controls around it for a ...
3
votes
1answer
261 views

Correct Blitting 2 surface problem

this is a graphics/math problem. Consider this 2 sprite / surface As you can see they are a tank and his gun turret. Now, i manage the turret rotation, and it works, and, also, the rotation of ...
5
votes
2answers
1k views

Coordinates from 3DS Max to XNA 3.5

My problem is this. I have a simple box made in 3DS Max 2009, the Box is 10x10x10. I've tried to load it on XNA and traslate the camera for 15 units, but I can seem to find the values needed to see ...
12
votes
2answers
508 views

How can I make a collection of mini-games in XNA where the user can download packs of minigames and the main .exe can run them without being altered?

I'm currently making a PC game in XNA. It's actually a collection of mini-games (there's 3 mini-games at the moment) however I plan to make and add more, in downloadable 'packs'. My question is, ...
22
votes
3answers
3k views

Is there a faster sine function?

I am working on generation 3d perlin noise. The C# Math library seems like overkill for what I need since most of its functions use double percision. I use Math.Sin() in several places to generate the ...
0
votes
4answers
1k views

C# XNA Elasticity Behavior

What is elasticity? How do I implement such a thing?
11
votes
1answer
771 views

How can I get the palette of an 8-bit surface in SDL.NET/Tao.SDL?

I'm looking to get the palette of an 8-bit surface in SDL.NET if possible, or (more than likely) using Tao.SDL. This is because I want to do palette swapping with the palette directly, instead of ...
4
votes
1answer
1k views

Mixing sprite drawing with 3D primitive drawing in XNA?

In my game, I have a base Note class, and various subclasses of Note. In addition, I have a NoteCollection class which contains a collection of these Note objects and draws them to the screen. ...
2
votes
2answers
299 views

TitleSafeRegion isn't available on XNA 4?

I'm following the book Microsoft XNA Game Studio Creators Guide v2. and there is a snippet in the book that is used to return a Rectangle that represents the safe area you can draw without the fear of ...
4
votes
2answers
4k views

Clipping a SpriteBatch Draw() in XNA

Is there any way to enable a temporary clipping mask in XNA while using a SpriteBatch? I'm drawing a bunch of Texture2D objects and Sprites in a given rectangle, and I want to make sure that said ...
7
votes
3answers
2k views

Programatically loading fonts, textures, and media in XNA

So far, in my rhythm game, I've been using XNA's Content Pipeline for loading static resources in my app (videos, sound effects, etc). However, down the road I'd want to allow users to create their ...
13
votes
7answers
14k views

How do you calculate where a ball should go when it bounces off the bar?

I'm trying to wrap my head around this very Hello World-y problem in game development. I've created a TicTacToe game in XNA so I guess the next step would be a breakout clone. Keep in mind that I ...
8
votes
2answers
1k views

Top down space game control problem

As the title suggests I'm developing a top down space game. I'm not looking to use newtonian physics with the player controlled ship. I'm trying to achieve a control scheme somewhat similar to that ...
9
votes
1answer
417 views

Zune same features as WP7? (gesture, accelerometer)

We don't have zune HD in Canada (yet) just wondering if it has the same programmable features as WP7? Like gestures and accelerometer. Basically if I am just making a game, with screen controls ...
9
votes
1answer
717 views

Rendering arbitrary text in XNA using Windows API?

In Andrew's comment on my other question, he noted that it was possible to render text to a Texture2D using the Windows API, instead of drawing the text directly with a SpriteBatch. How is this done? ...
9
votes
2answers
4k views

Scripting engine for XNA

Say I'm making this big game in C# with XNA. What options do I have to include a scripting feature to my code base?
11
votes
4answers
2k views

How can I design an effective game object interaction scheme with a component-based architecture?

This is a design question... I'm sure this could be generalized more, but I'm having a hard time with it. I am wondering about design for game object interactions - here is my example (2D ...
5
votes
1answer
827 views

Zooming and panning a camera simultaneously causes a swooping effect

In a 2d game, I have a basic camera class. The guts of the class creates a transformation matrix that is later passed to the Begin() method of a SpriteBatch. The transformation is done like this: ...
5
votes
1answer
2k views

XNA or SlimDX (DirectX 10) for multitouch rhythm game simulator

I'm looking to develop a multitouch rhythm game in C#. It is aimed to be a simulator for an existing arcade game, similar to this: http://www.youtube.com/watch?v=TAiNNpA3wwg So far, I've decided on ...
4
votes
4answers
3k views

How to handle a Sprite Class?

Currently I am learning XNA and while playing around with some tutorials knowing what I am aiming for a game it made me think that the Sprite Class will be something very important and re-used a lot ...
14
votes
1answer
4k views

Creating a 3D map for XNA?

Is anyone aware of a nice 3D map tutorial (how to import and use the map) using XNA without any engine but not limited to an external application (like Tiled for 2D maps) ? I did a search arund here ...
6
votes
4answers
2k views

Which network engine/library/system to use in a .NET turn-based game?

I'm developing an abstract strategy turn-based game in C#. Being so, high network load is not expected. The players don't even have to be connected all the time. The host could wait for the current ...
2
votes
1answer
284 views

What options do I have for a 3D game without graphics but yet maintaining physics for later?

I don't believe I expressed well the title for my question so if you believe you can change it for a more suitable title please do so or drop me a comment. Currently I am starting a 3D game with C# ...
12
votes
1answer
942 views

Make Windows game appear in Games Explorer (Start Menu - Games)

How can I make my game (right now just a C# Console Application) appear in the Start Menu under Games?? I mean is it possible for any program to register as a Game in Windows Vista / 7?
5
votes
2answers
2k views

Can a standalone WPF application create an interface that looks like a Flash interface?

It seems like WPF was created as the application answer to Adobe's Flash. Silverlight is used for creating web pages. But, can that same functionality be pulled into a standalone WPF application. ...
3
votes
6answers
3k views

Can I develop Linux + Windows games using C#, .NET and OpenGL?

I want to learn to develop 3D and 2D graphics with either OpenGL or DirectX. I chose OpenGL as it's being used in webGL and works cross-platform. I already know .NET well, and the C# language just ...
4
votes
2answers
2k views

DirectX Overlay

I have been a code in full convertion mods for the source engine, but now im mostly coding C# applications. That provide utilties for games, during this proccess i have often wanted the ability to do ...
2
votes
2answers
944 views

How to tell if a glut window has focus from c#

How can I tell if a glut window has focus? Im using c#/tao, Ill use p/invokes if necessary. Basically I want to ignore input if it doesn't have focus.
10
votes
2answers
3k views

Has anyone used MonoTouch for a game? [closed]

With the pending release of MonoDroid we have decided to revisit MonoTouch as a possible alternative to gearing up some Objective-C skills. I was wondering if anyone had any experience and would ...
6
votes
2answers
10k views

How do i create bounding boxes with XNA 4.0?

I am having some trouble making bounding boxes for my models I am using within XNA 4.0. The way it was done in XNA 3.1 seems to be obsolete as you can no longer access parameters that were used before ...
6
votes
1answer
5k views

Clickable hex grid in c#.net

I want to create a Windows Form-based adventure game where the player clicks a hex on a static map to bring up their next encounter. I have the map already and plan to scan it and convert it to a .bmp ...
7
votes
2answers
3k views

2D Game C# click-to-move samples?

Currently I am learning how to use XNA by making a 2D Game. So far I am doing okay, but I want to implement a click-to-move instead of using the keys to walk around but I haven't found any samples ...
11
votes
1answer
2k views

Unit Testing a C#/XNA Game Project

I have been dabling in game development since I started programming, but never very seriously. I work as a business app developer, but I'm working on some games in my spare time. In the business ...
4
votes
5answers
2k views

How should I start playing with 3D? [closed]

One of my hobbies (aside programming, of course) is 3d modeling (completely amateur, using 3ds MAX) and I'd like to mix programming with 3d modeling (what a marriage!). So I've read a little about it ...
20
votes
11answers
4k views

XNA development tutorials

Can anybody guide me about where can I get the basic starter tutorials for developing using XNA framework?
2
votes
1answer
1k views

How to load a mesh from the .X-format in DirectX10 via SlimDX?

As of DirectX10, the usual functions to load a mesh in the .X-format are marked as deprecated and they are DX9 functions anyway. How can I load a mesh from the .X-format into an ID3DX10Mesh object ...
2
votes
1answer
267 views

Server related questions and it is available options?

i went thru a lot pages here searching for information about the "server side" of a multiplayer game, while i did found some information they were not exactly what i was looking for. What is the ...
2
votes
4answers
2k views

Modifier System C#

I am trying to figure out a system that can easily modify objects on the fly. For example, lets say I have an Entity2D that inherits from Entity. Entity2D has a Position property. Now I have a ...
14
votes
9answers
5k views

Dynamic pathing algorithm for tower defense game

I'm making a Tower Defense and I need a good pathing algorithm for it. I have thought about Dijkstra but I need one that can be dynamic; it must be able to update itself when one edge is removed or ...
13
votes
9answers
8k views

C# (Mono)/Java 3D Game Engine recommendation [closed]

can you recommend a good C# game engine for cross platform (Win/Mac/Linux, I don't care about consoles) development? I've got some experience with raw OpenGL and I played around with Java bindings ...
9
votes
3answers
386 views

Why does Farseer 2.x store temporaries as members and not on the stack? (.NET)

UPDATE: This question refers to Farseer 2.x. The newer 3.x doesn't seem to do this. I'm using Farseer Physics Engine quite extensively at the moment, and I've noticed that it seems to store a lot of ...
2
votes
1answer
678 views

What 3d mesh formats usable with DirectX10 are there?

I want to load a mesh into my game (written in C#, if this matters) but am not sure what mesh format to use. What mesh formats are there, how easy/hard it is to load them into DirectX10 and what's the ...
17
votes
7answers
15k views

What are some known 2D/3D physics engines for XNA? [closed]

I'm looking for a physics engine to use in an XNA project (2D or 3D). Because it's for XNA, it needs to fulfill some requirements: Not necessarily free, but close to it is obviously preferred ...
47
votes
13answers
13k views

What C# libraries can be used to support game development? [closed]

As games are based on many different subsystems things like graphics (DirectX, OpenGL, ...), sound (OpenAL, Ogg Vorbis, ...) or physics (collisions, ...), what libraries do you know that are useful ...
16
votes
6answers
3k views

Is there any Lua API that works with C# for PC & XBox 360 Development?

I am reading a book on Game Development in which they show you how to make scripts for your game in Lua. They program Lua and use it from C++, but I was wondering if there is a library or API to use ...
8
votes
5answers
794 views

Is the XNA framework appropriate for server side programming?

I'm looking to create a text based MUD, so a lot of the elements of the XNA framework seem appropriate to what I need. Especially things like the general game loop, networking, etc. It looks like ...