C# is a multiparadigm, managed, garbage-collected, object-oriented programming language created by Microsoft in conjunction with the .NET platform.
-3
votes
1answer
35 views
.NET in Windows ME
So I'm used to work with C# and I recently started studying C++. So I have a Vista computer, which I'm using right now, but I also have an old Windows Millennium Edition Computer, and I also wanna ...
0
votes
1answer
254 views
Accessing Bluetooth data via SerialPort (Unity/C#)
So I'm working in Unity3D, programming in C#, and I heard that one can read data from a Bluetooth adaptor via SerialPort. I have several Bluetooth USB adaptors that I've tried to connect on my PC ...
0
votes
0answers
17 views
Farseer: Difficulties with implementation of DebugView
I added the project "Farseer Physics Engine 3.3.1 HelloWorld XNA\DebugView XNA\DebugView XNA.csproj" to my solution explorer in Visual Studio. In addition, I added a reference to my project and the ...
1
vote
0answers
49 views
Call Unity3D coroutines from a scripting language
I created a simple scripting language to use on a Unity3D game. My parser generates an AST with nodes for every type of operation, and to run the script all I need to do is call Execute() on the root ...
-1
votes
1answer
38 views
Question about the recommended programs and books [closed]
i want to learn about game development using C#
what are the recommended program to use with C# (DirectX, OpenGL, XNA, or others) and books to learn?!
1
vote
1answer
98 views
When to use GameComponents?
I know what it is and I'm using it as a frame counter for example. But when should I use it?
Does it make sense to say "I make all the input handling happen in a gamecomponent"? Is it flexible enough ...
0
votes
1answer
28 views
Sharp DX Identity Matrix, Matrix.Forward vector pointing at negative Z
I'm trying to take a steady grip on Sharp DX. Already done some work like translating, scaling and rotating objects. Now i have to calculate the rotation matrix using only direction vector and ...
-1
votes
0answers
21 views
Modeling objects coming down from a networked pipe on the client?
I've got an entity base class that contains information about a particular object that both the server and client know about, they're in a shared DLL. It's just a basic outline of entity information ...
-1
votes
0answers
78 views
What's the idea on the base of rendering camera on 2D platformers games? [closed]
I'm programming a 2D platformer game, and I am wondering about how the right to left scrolling of the camera is done in a game like this.
There is a background that need to be updated. There are also ...
0
votes
1answer
27 views
Farseer: RemoveBody is not working
I want to remove bodies after they touched the character(playerrect). But the bodies get not removed. I set a breakpoint in the following line but it doesn't get yellow:
...
0
votes
1answer
47 views
MonoGame Linux Mouse.SetPosition doesn't work!
Having a really weird issue, it seems that no matter what I do I cannot get the Mouse to lock to the center of the screen in MonoGame. I triple checked all the possible noob mistakes, and ...
1
vote
1answer
42 views
Farseer: How can I remove a body?
I have many sensors(coins) in each level and I want to remove the sensors(coins) when the player rectangle(Mario) touches them. I check in OnCollision if Mario touches a coin, if he touches it, it ...
7
votes
1answer
297 views
Implementing water effects (splashes) into XNA 4.0 game
I am creating a 2D XNA game and came across a tutorial on adding water effects (splashes) to an XNA game but after implementing it into my game I can't get it to scale down. Currently it takes up the ...
-2
votes
1answer
63 views
Programmatically creating a 3d mesh in XNA
Surprise! Another question related to Minecraft. Anyways:
Rather than drawing thousands of blocks each frame, I remember reading somewhere that Minecraft breaks the map into 16x16x256 chunks, and ...
1
vote
1answer
58 views
Game Development AI, NPC & Entities Definition using Scripting Languages
i am developing a Multiplayer(actually MMORPG) architecture for learning purpose.
I do have some game developement background, but all my engines were very rigid and completly developed for the game ...
-1
votes
1answer
99 views
“Car” movement in 2D dimension [closed]
I am searching for a simple tutorial how to add arcade car physics for my game.
Exactly same user units behaviour i found in next games:
Tank Hero: Laser Wars
Death Worm:
Video:
...
-4
votes
2answers
83 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 ...
3
votes
5answers
321 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 ...
2
votes
2answers
331 views
3D Collision Detection with XNA
So I'm trying to implement some collision detection in XNA. I'm aware of the Bounding Spheres, but I worry with the accuracy, most items in my game are cubic in nature, so it seems very square-peg in ...
3
votes
3answers
306 views
How can multiple clients be out of sync if they use the same RNG seed?
I have been working on a client-server architecture to enable LAN play for my open source game, Aigilas. In its current state, players stay synced in all running instances of the game but enemies and ...
0
votes
1answer
21 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 ...
0
votes
1answer
43 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
47 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 ...
-2
votes
1answer
68 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
86 views
Move object to position using velocity [duplicate]
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, ...
0
votes
1answer
82 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
1answer
111 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
2answers
524 views
How do I implement fog of war in a tile-based game?
I have created a 2D Tile Based game. The game has a single path that the sprite can move on. I want to create to make the entire screen black except for where the sprite is.
The sprite has commands ...
1
vote
0answers
38 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
105 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, ...
7
votes
1answer
348 views
Spritebatch drawing sprite with jagged borders
Alright, I've been on the making of a sprite class and a sprite sheet manager, but have come across this problem. Pretty much, the project is acting like so; for example:
Let's take this .png ...
-1
votes
1answer
49 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
49 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
62 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 ...
1
vote
2answers
166 views
Collision Detection - Slide Around Sprite
I'm creating an RPG using XNA/C# and am trying to add some complicated collision detection code. I have the playable character 'Wizard' and when it collides with something, a method gets called in his ...
-2
votes
3answers
285 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 ...
2
votes
1answer
52 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 ...
-1
votes
0answers
40 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 ...
-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 ...
-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
51 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
37 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 ...
3
votes
1answer
117 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
146 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
37 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
34 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 ...
1
vote
2answers
67 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:
...
0
votes
1answer
49 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
37 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 ...
1
vote
1answer
106 views
How can i use triangle picking to determine the exact location of a triangle in world space coordinates?
Im trying to implement point and click movement in my game, but at the moment im stumped about how i can select parts of a mesh for the player to walk to.
So what ive done is ive got a navigational ...




