C# is a multiparadigm, managed, garbage-collected, object-oriented programming language created by Microsoft in conjunction with the .NET platform.
2
votes
1answer
153 views
Unity3D Camera constantly moving
I'm trying to make my own first person camera controls in unity that use both thumbsticks on a joypad. I have this working fine. However, when I move the right thumb stick (the one uses to look left / ...
1
vote
1answer
389 views
Input Handling and Game loop
So, I intercept the WM_KEYDOWN and other messages.
Thing is, my game can't/shouldn't react to these messages just yet, since my game might be currently drawing to the screen or in the middle of ...
0
votes
1answer
119 views
SpriteBatch.end() Issue because of a thread
While playing, I use a thread to Load() and Unload() Texture2D.
I have multiple ContentManager to only Unload() Texture2D I want to unload.
But sometimes, I have this issue on the SpriteBatch.End() : ...
2
votes
2answers
84 views
Farseer Physics: How to create shape from Verticies?
As you can understand from the title, I'm pretty new to game development. I'm doing this for fun. Anyway here's my question. I have this Farseer Physics samples and I've been studying them for a few ...
3
votes
1answer
1k views
How to create a 3D world with 2D sprites similar to Ragnorak online?
As far as I know Ragnorak Online is a 3D game world with 2D sprites overlayed. I would like to use this style in a game I am making in Unity, so I would like the player to be able to select little ...
-2
votes
1answer
88 views
Help me debug my 3-d collision code [closed]
I have been havaing a problem doing 3-d collision in a game i have been trying to make for several weeks now. What i am trying to do is prevent a PlayerModel object from colliding with Obstacle(cube) ...
2
votes
1answer
199 views
Shooting Bullets Around a Sphere
I currently have a ship that can orbit around a sphere freely controlled by a joystick. There is a separate joystick that controls the gun and starts shooting when it is touched.
Right now the ...
3
votes
3answers
170 views
How to create simple acceleration in a 2D sprite? [duplicate]
So here's what I thought might work but half the time I press the 'Right' key, it results in a crash and the rest of the time seems to produce no acceleration at all.
if ...
3
votes
2answers
229 views
Unlocking XNA game update rate and preventing unnecessary Draw calls and heavy logic Updates
I had some input problems which can be partially solved by unlocking game update rate. Now the input updates as fast as possible, but the game also calls the main Draw method a lot too. I believe ...
0
votes
0answers
98 views
Using OpenGL3.3 and GLSL, texturing is not working [closed]
I am having troubles getting texturing working in my OpenTK/OpenGL 3.3 code. I am sure it is something simple that I am missing, but I just can't seem to get a texture on the square I am rendering. ...
2
votes
1answer
57 views
Saving model image
How can I get a top-down,side view of the model imported into XNA and then save that view as an image, that can be used later in the program?
Thank you for your time
0
votes
1answer
292 views
flicker when drawing 4 models for the first time
i have some models that i only draw at a certain moment in the game (after some seconds since the game has started). The problem is that in that first second when i start to draw the models, i see a ...
3
votes
1answer
574 views
First-Time GLSL Shadow Mapping Problems [closed]
I'm working on building out a 2.5D engine and having massive problems getting my shadows working. I'm at a point where I'm VERY close.
So, let's see a picture to see what I have:
As you can see ...
0
votes
1answer
173 views
Creating A Bounding Box around each item in a list XNA 4.0
I have asked a similar question before except i am more experienced and have more understanding of XNA. I have bullets that shoot whenever you press RightTrigger. I am having trouble though creating ...
1
vote
1answer
78 views
Alternative to soundeffect.play()?
I have been using a profiler to optimize my game for the Xbox, my aim is as with any optimization to reduce excess CPU and memory usage. I have managed to cut down a lot of the processor time and ...
5
votes
3answers
418 views
XNA shader compiler error in release mode
I'm having a hard time figuring out if I'm doing something wrong, or if there is a bug with Visual Studio.
I want to pass a float into my pixel shader, clamp it to a value, and then return it as part ...
1
vote
2answers
212 views
XNA Game Timer Help
How do I set a game timer in XNA?
I need it to keep the game in sync no matter the lag or frame rate to prevent one moment to be normal but the next everything is sped up.
1
vote
1answer
67 views
Extending ModelProcessor
How can one extend a model processor inside Windows Forms. In a normal XNA game you would simply create a new class like so(I think...):
[ContentProcessor]
public class ExtendedModelProcessor : ...
6
votes
2answers
300 views
A big light with shadows
To have better texture2D quality in my 2D game, I had to recreate every textures with 300% of their original size.
But the lights have to bright 3 times more.
For lights, I'm using this : Catalin's ...
0
votes
1answer
475 views
How to play multiple songs in XNA through MediaPlayer [closed]
I'm rather new to working with music in XNA.
I have a class called SoundManager which handles playing music. Here it is:
public class SoundManager
{
private List<Song> Songs;
private ...
-1
votes
1answer
94 views
Bullets Spawning in same direction [closed]
I'm using XNA to make a Bullet Hell Shooter game, and I'm running into some troubles when I try to change the direction in which the bullets move. Been trying to debug for awhile, but haven't gotten ...
5
votes
2answers
133 views
How can I normalize a vector if I am handling movment of each axis seperatley?
I am writing a 2D tile based game engine in XNA, and I've recently fine-tuned my collision detection using the answers provided here and more specifically here.
The tile based collision detection now ...
4
votes
1answer
169 views
How do I set up in-app purchasing in iOS?
I am using Unity and I developing an app for iOS. How do I implement in-app purchases that work world-wide?
3
votes
1answer
272 views
Proper use of Dynamic Vertex Buffers for rapid update
I am creating a C#/SharpDx/DirectX10 application to plot line charts in a fast way.
I have a prototype which uses Dynamic Vertex Buffers and fills a fixed-size buffer, say 1M vertices, with new data ...
0
votes
1answer
240 views
Performace benchmark between a C++ and a C# renderer engine? [closed]
I want to create a performant 3d renderer for a tech demo at the university workshop. The engine will basically render a forested backdrop, in a small octrant.
I am thinking of writing the engine in ...
-1
votes
1answer
74 views
Class Responsibility [closed]
I have some head pain with putting some functionality in correct class. For example I have an operation like this:
player selects world space tile
game detects which tile is selected
game detects ...
3
votes
1answer
171 views
How rotate a 3D cube at its center XNA?
I try to rotate a 3D cube on itself from its center, not the edge.
Here is my code used.
public rotatemyCube()
{
...
Matrix newTransform = Matrix.CreateScale(scale) * ...
1
vote
3answers
88 views
Unity3D smooth movement with joypad button press
First off, I'm sorry this is such a silly question, but for the life of me I can't seem to get it to work. And I've just spent the last hour trying to do so.
All I want to do is have my camera move ...
1
vote
2answers
219 views
Mobile game textures sizes
I am developing a Windows Phone 7 game using XNA 4.0 which I plan to later port to iOS and android using Monotouch and Monodroid. My question is how to determine what texture size should I include? ...
1
vote
4answers
132 views
Selecting and moving vertices
How can I identify the correct vertecis and move them in XNA using VertexBuffer? Let's say I have a simple cuboid in my project and want to move one face of it. How would I loop thru vertices, get ...
0
votes
1answer
148 views
Xna “Game.Run” method appears to be using up a lot of resources in my game, is this normal?
The question really is in the heading, but i have been using the visual studio profiler to optmisie my game, i have noticed that the game.run method is eating through 93.6% of the overall game ...
0
votes
2answers
140 views
Better quality texture when zooming
Is there any way to have better quality textures ?
I thought that creating huge textures will improve their quality in game, that's why I draw textures with 0.25f or 0.5f scale.
I understand that ...
0
votes
0answers
47 views
Problem with drawing mesh
So I made this simple model in blender. Its made up of one mesh, and one armature that contains three bones. This is the parent-child relationship that I made in blender:
For the sake of simplicity ...
0
votes
1answer
150 views
How to make AABB collisions work? [closed]
I am unable to make efficient AABB collision in XNA 4. I am making a platformer, with tile based map.
Here is what I do in my tile class :
public virtual void Update(GameTime gameTime, ...
0
votes
0answers
38 views
save bones position after rotation un xna
i'm developping a game for solving a rubik's cube in xna framework c#
i want to know how to save bones positions after rotating them
i'm calling this method to draw bone witch construct the
...
3
votes
2answers
170 views
Implementing a multilanguage AI contest platform
This is a followup to this question. To sum: I'm implementing an AI contest site, where each user may submit several AI implementations for different games. Think about Google AI Challenge
but instead ...
3
votes
1answer
145 views
Can you suggest ways to store and track lots of objects in a turn based strategy game?
I know just enough about programming to be dangerous, so please be gentle. I've created and released few simple apps for android and do some powershell scripting at work, but that's about the extent ...
2
votes
2answers
119 views
How might I script the creation of CLR objects?
I am looking for a method to script the creation of entities (arrays of components) for delivery through my entity factory, i.e scripted creation of .net objects.
I have looked into Lua but it seems ...
0
votes
1answer
149 views
XNA drawing textures on random positions
I'm trying to reproduce this tutorial, but each time I try to implement it into my code, I always get a lot of errors. Now I finally managed to code something like this, the game runs, but nothing ...
1
vote
2answers
151 views
How to do FoV similiar to Nethack? [duplicate]
I am currently writing a little roguelike and wondered how Nethack/other games do the FoV of the player. I had a look at Nethacks source code, but since it's C it's pretty hard to read.
For people ...
-1
votes
1answer
124 views
Animation: mid-state
At the moment I have a simple static texture. Now I want to animate my sprite. The texture is a simple human. When the user press the enter button, the human gets into state2. This is the standart ...
2
votes
3answers
283 views
Minecraft like blocky-clouds
We are working on a minecraft-like block-based engine/lib. Lately I've started working a blocky-clouds as in minecraft;
So it appers that in minecraft, clouds are not procedural. I'm still looking ...
2
votes
1answer
106 views
Sound activated particlesystem
I am trying to make a particle system that is activated by sound. Like emitting on the beat resizing on the beat and such things. I found some nice tutorials on how to make things like ...
0
votes
0answers
65 views
Sceneview Lags when using Arrays
I'm getting a strange behavior here - when i create a simple C# script which holds an Array of classes, where both, the script class and the array classes, are marked as Serializable, my sceneview ...
-1
votes
2answers
163 views
moving from XNA to LWJGL [closed]
Hi StackOverflow people!
I would like to know how easy it could be to move from XNA to using LWJGL.
Just wanted to throw this out there because of the rumors that MS is shutting down XNA and having ...
0
votes
3answers
80 views
help using image to overlay grayscale around player
I'm sorry for the confusing title but it is hard to explain in one sentence.
This is what I have
What I want to do is use that black overlay to convert everything in the black area to grayscale. ...
0
votes
1answer
128 views
Smooth rotation [duplicate]
I would like to rotate my Player very smooth. At the moment the player stops rotating when I release the button. Also the rotation should get faster, if the player rotates longer. I use XNA and have ...
3
votes
3answers
199 views
8 directional movement - Maintain vertical position
I have a top-down game that has 8 directions of movement (top/down/left/right/topright/topleft/bottomright/bottomleft). There are sprites for each direction of movement. This is just an example ...
1
vote
2answers
146 views
How (update,set, apply) dynamically color on a model of a XNA project?
I encounter a problem for set a background color on my model instantiated. I can change the texture but not change color.
Is there a parameter for change the color ? Or change the opacity ? I am ...
2
votes
2answers
744 views
How can I map thumbsticks to cardinal directions?
I've got a tile based game that has notions of moving up, down, left, right and the diagonals (by alternating horizontal/vertical movement).
I've found that if I use the default ...





