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

-4
votes
2answers
72 views

2D Graphics in CMD in C#

So, almost every programmer used Doom as inspiration for new Projects, right? So Doom and other classic MS-DOS game were played on something like Command Prompt. How do you display images in Command ...
0
votes
1answer
39 views

My Sprite Rectangle moves, but my sprite doesn't

Here's the issue, When I build, everything loads fine, everything works, but then, when you enter the game, the sprite is there. However, The sprite does not move, the sprite RECTANGLE does. Meaning ...
0
votes
3answers
43 views

Trying to get enemy sprites to move on C#

In my XNA game, I'm have the enemy sprites loaded and in the game screen. However, I put in the code to update their position in the Update method of the main class. The objective is to get the ...
3
votes
5answers
288 views

Can I write code from 2 computers at the same time? [closed]

So I know it might not be that related to game dev, but I'm now starting a project with friends and we want to code. Thing is, we are not living close, and when several programmers write different ...
0
votes
1answer
18 views

Farseer: Difficulties with ContactListener

How can I register the ContactListener in XNA? In the box2d manual is written: 9.4 Contact Listener ... At run-time you can create an instance of the listener and register it with ...
-2
votes
1answer
62 views

C# Stack<> Problem [closed]

I'm trying to change List<> to Stack<> however I'm having a hard time figuring out. A snippet of my code on where my issue occurs is: private Stack<Gem> gems = new ...
-1
votes
2answers
73 views

Move object to position using velocity

I'm trying to make a simple object move to a desired location using its velocity. But I'm having trouble with it over shooting its target. I have to use velocity, I can't simply lerp the position, ...
1
vote
1answer
81 views

How to blend biomes with procedural terrain

I'm working on a terrain generator. Through multiple noise functions, I'm able to create many kinds of terrain I like, but I'm having a bit of difficulty joining them together in a seamless fashion. ...
1
vote
0answers
31 views

How to gradually decrease opacity of model?

I have been searching for this matter for a long time and slowly I begin to think that this option is not available in XNA for Windows Phone. I am trying to get a 3D-Model to be drawn at 50% ...
-2
votes
0answers
96 views

What do game developers use to prevent modding of games that use JIT programming languages?

Before I explain, this is not a "What programming language should I use?" question. So, mods can be a major problem, you see I don't want to make a game someone could easily hack and win every round, ...
-1
votes
1answer
43 views

Isometric Map Rendering Incorrectly [closed]

I've currently been trying my hand at Isometric map rendering via the tutorial over at XNA resources; http://www.xnaresources.com/default.asp?page=Tutorial:TileEngineSeries:4 However, unfortuanely ...
1
vote
1answer
34 views

MonoGame Cross-Platform Conditional Compilation Symbols

What are the possible compiler directives for MonoGame? For example, XNA contained directives for WINDOWS, XBOX/XBOX360, and WINDOWS_PHONE. I've also seen DIRECTX and OPENGL, but when would you need ...
-1
votes
1answer
58 views

SpriteBatch memory leak

I have a strange problem with XNA 4. I'm constructing a SpriteBatch using this.spriteBatch = new SpriteBatch( GraphicsDevice );. This leads to a memory leak up to 600 MB memory consumption. This ...
-2
votes
3answers
264 views

What should I know to start in game development? [closed]

I know this is asked very often here and probably my question will get closed, but I am clueless in this direction. I want to start creating my own PC games. I know C++ and a bit of C#. I created a ...
-1
votes
0answers
30 views

Need advice on handling instances of new game

I am working on my first game in c#. It it a text-based game using Windows Forms. I was brainstorming on the best way to manage all of the data and thought about containing all of the information ...
-1
votes
0answers
39 views

Model disappears when drawn twice?

I have a game character I load once for the original model variable. But when I link that asset (the model file) to an other model variable during runtime (and load it during runtime), the original ...
2
votes
1answer
46 views

XNA Scale and Render Targets

I'm working on a top down Strategy/RPG/Tower Defense XNA Game for Windows, and I'm running into an issue while scaling. My display mode is 1680 X 1050, and that is what I'm setting the ...
-2
votes
0answers
43 views

Losing sides of a rectangle after movement C# [closed]

I am making a top down shooter, so far everything's great, until I decided to put a car into the game. Currently the collision works fine when the player does not enter the car, and attempts to walk ...
-4
votes
0answers
44 views

The program '[756] TaskHost.exe' has exited with code 0 (0x0) [closed]

What is the cause of this error? I've commented part of my code, and after it application exits without any errors or warnings. I've commented part of Draw Method in one of my Menus Option in game. It ...
-3
votes
0answers
33 views

Farseer: Character jumps weird [closed]

I have a little problem with jumping. For example, the character(Mario) jumps from the top of a tile. The character is now in the air and not touching a tile. After that, he touches the right or left ...
2
votes
1answer
112 views

How do I make a tile passable in one direction only?

I want that my character can jump through some of the tiles, like Mario does in this video: http://www.youtube.com/watch?v=zIPYzbNrNhc In this video, Mario jumps up through orange platforms, but ...
0
votes
3answers
123 views

How do I move a sprite to the mouse position?

So, I'm trying to make my sprite walk to the X-coordinate of my mouse click. This is my code: currentMouseState = Mouse.GetState(); MouseState mouseState = Mouse.GetState(); ...
-3
votes
0answers
34 views

Farseer: Difficulties with polygons [closed]

I want to create a polygon but I get many error messages. I don't know what to change. What is wrong? The size of my texture(polygonTexture) is 350x150 pixel. ...
-2
votes
1answer
33 views

Farseer: are you missing a using directive or an assembly reference?

I want to create a polygon in Farseer. I found an example in the documentation but it's not working because I get this error message: The type or namespace name 'Vertices' could not be found (are you ...
0
votes
1answer
47 views

Farseer: Ball is not getting slower

The ball is not getting slower when it rolls over a straight platform. I added friction but that changed nothing, the ball still gets not slower. I want that the ball gets slower and slower and stops ...
-1
votes
0answers
36 views

Odd errors w/ disabling game objects with C Sharp in Unity

I'm having problems with properly disabling game objects in Unity. Right now, they're disabling, but I get a "NullReferenveException" error whenever the first object to be disabled is disabled. The ...
0
votes
1answer
63 views

Farseer: Ball is not bouncing realistically

I created a ball that is rolling over platforms. When it falls from one platform to another, it should bounce just like in real life, but the ball keeps bouncing constantly and I don't know how to ...
1
vote
2answers
64 views

XNA spritebatch.Draw: Which part gets colored by the color parameter?

Which part gets colored and how can I control it? I have a rounded block and my goal is to have the center filled with a certain color chosen by that parameter. Here's the picture: ...
3
votes
3answers
129 views

MMOFPS Choosing protocol for high-traffic network (UDP or TCP)? [closed]

my question about the player position sender protocol. In this article, he says "Never use TCP for networking a multiplayer game". Ok but UDP datas are not ordered. In this case, if somebody walking, ...
1
vote
2answers
75 views

MMOFPS Player Positions [closed]

I'm working on a MMO game project. I have a question about MMOFPS game architecture. (I have basic network knowladge) (MMOFPS) I want to send player position to other players(clients) and other ...
0
votes
0answers
29 views

How to access translations of a model?

I have an animated Model, which I process with the SkinnedEffectProcessor. I am generally asking, how I can access translations of a model, during animation. All in all it's always a BoneTransform I ...
-1
votes
0answers
40 views

Unity game engine javascript pickle [closed]

I want to import my nearly-ready game scene from Blender to Unity. I have my own format to store my data from the game worlds. I serialised it with Python's pickle module, because I couldn't find (I ...
1
vote
1answer
113 views

Does XNA have a built-in GUI library?

Does such a thing exist or do I have to code one? My project needs textboxes, buttons, input capture, timings for "press and hold keys" and so on. These are quite standard for a GUI library but hard ...
-1
votes
2answers
59 views

Save / Load game in Windows Form application

I am starting to code a game in C# using Windows Forms (not using XNA) and I am trying to figure out how to save/load. Right now all I have is the main form, a few User Controls, and one class in a ...
0
votes
0answers
27 views

Farseer physics engine: The name 'ConvertUnits' does not exist in the current context [duplicate]

http://digitalerr0r.wordpress.com/2012/03/11/farseer-physics-in-xna-4-0-for-windows-phone-1/ I tried this Farseer tutorial but I always get that error message in the following lines: ...
0
votes
2answers
95 views

C# XNA AABB vs AABB collision resolution, AABBs ghost through each other

I've been learning a bit of collision resolution through a tutorial here and I can't seem to get the AABBvsAABB resolution working, I have CirclevsCircle and AABBvsCircle resolution working with the ...
-4
votes
1answer
69 views

How to use a physics engine for collision detection? [closed]

I want to use Box2D.XNA or Farseer for collision detection in my 2D game, but I don't know how to start. I added Box2D.XNA to my solution, but I don't know how to create rectangles, circles or ...
3
votes
3answers
120 views

XNA Collision is quircky/wobbly, how to improve?

I am sorry if this was already answered but I couldn't find the answer. So I am doing a tile based platformer and when I was making collision I had quiet a struggle I looked here and googled for ...
1
vote
2answers
96 views

Winform + XNA (Microsoft Example) - Issues with Drawing Texture2D

Before I get started I would just like to say that I have been using the Microsoft Winform + Xna examples found here: WinForms Series 1: Graphics Device I think I somewhat understand how its working ...
-1
votes
1answer
37 views

On occasion game fails to catch end of screen transitions [closed]

When the player hits the edge of a screen the old screen slides down, and the new screen slides in with them landing on the opposite side from where the transition started. On occasion the bottom of ...
-3
votes
2answers
343 views

How to preload a vast amount of models?

This is more a theoretical question, during runtime, my game runs smooth without any hickups. But as standard game-objects, my game contains collectibles such as coins (which are rotating Models). ...
-1
votes
1answer
84 views

How to add a timer - Visual Studio, XNA (C#)

I'm wanting to add a timer in an XNA game using C#. The ultimate goal is to increment a score in a game every second by 10 points. As of now the score stays at zero. Watching YouTube videos is proving ...
0
votes
2answers
66 views

C# Cursor stuck on busy state

So I implemented a fixed time step loop for my C# game. All it does at the moment is make a square bounce around the screen. The problem I'm having is that when I execute the program, the window ...
0
votes
0answers
52 views

How to integrate Javascript into C# and run scriptcode step by step

We are currently working on a Pokemon MMO trying to figure out how to implement an asynchronous scripting language the best. We don't want to work with threads or tasks, but the goal was to wait for ...
0
votes
1answer
78 views

Mouse Aiming Causing Rotation Jitter

When our game's ships move around, mouse aiming causes them to shake around a lot. The body being aimed is moved kinematically. I think we've narrowed it down to this block of mouse tracking code. ...
2
votes
2answers
61 views

What's involved in resetting the graphics device?

I'm playing with XNA 4.0, VS2010. I've created a window (not maximized) and drawn some sprites. All is good until I resize the window, after which the sprites stop displaying or only partially ...
-3
votes
0answers
64 views

C# Rendering Loop [closed]

I kind of need help understanding how rendering graphics works in C#. I have a java background and I've made a basic game engine with custom rendering that I use for all of my projects. After trying ...
0
votes
0answers
69 views

Most effective way to build a lobby application for a game?

I'm trying to steer clear from "which technology should I use" and more of "what aspects of tool s should I look for to make this easy". What is the rest of the industry doing? Web stacks? I'm trying ...
-1
votes
0answers
102 views

AI for mass battles in Unity [closed]

I'm looking at building a game where there are many large battles controlled in an RTS like way. When I say large I'm talking 100's in the battle in multiple teams. My question is what is the best way ...
0
votes
1answer
55 views

Refactoring an XNA map redraw [closed]

In the draw step I have different content loading depending on which side of the screen the player exits from. I'm trying to refactor this into a single method for handling the updated content, but I ...

1 2 3 4 5 27