C# is a multiparadigm, managed, garbage-collected, object-oriented programming language created by Microsoft in conjunction with the .NET platform.
0
votes
2answers
85 views
Move a player in the opposite direction they are looking
I'm looking to move the player in the opposite direction they are facing with a specified force. Rather than try to explain that better I created an image showing what I mean,
I've tried reversing ...
-5
votes
0answers
51 views
Exit() won't be called in my XNA game? [on hold]
My variables:
//Game States
enum gameState
{
gameLoading,
mainMenu,
gameOptions,
levelSelect,
gamePlaying,
gameOver
}
gameState ...
1
vote
0answers
42 views
How to implement delta compression of an object in C#? [migrated]
I'm working on a server-based multiplayer game written in C#. The server and the client shares code and each object has the same int ID. I want to make the networking to be light as possible, by ...
0
votes
2answers
64 views
Why does my ball stay at the end corner of my screen(XNA)? [on hold]
Why does my ball stay at the end corner of my screen.
Here is my code:
ballmov(Texture2D ballimage, Rectangle paddle, Rectangle ball, Rectangle enemy, SpriteBatch spriteBatch, GraphicsDeviceManager ...
1
vote
1answer
79 views
How could I figure out the shortest way to turn, and whats the angle? [duplicate]
I'm creating some robots for my tank game. I want them to find each other and shoot each other down, so I'm trying to implement a way for them to turn towards each other, and turn the shortest way. ...
-1
votes
1answer
58 views
Xna tile map collision
I finally found a tutorial on tile maps and loading them in from a file that I understand (http://circlessuck.blogspot.co.uk/2012/09/xna-tutorial-basic-tile-engine-part-2.html), however the tutorial ...
-4
votes
2answers
114 views
If XNA goes away does that mean C# can't be used to create games? [duplicate]
I read that XNA is going away even though it may be "somewhat" supported. If that goes away, how is game programming to be done on a PC (or for the console)?
I did search and found this on SO,
...
1
vote
1answer
80 views
How to tile multiple procedurally generated textures?
I'm trying to develop a procedural tile generator for a game, mostly for the ground tiles, instead of using "hand-drawn" tiles.
To achieve this I'm using Perlin noise and a sine wave with multiple ...
-1
votes
0answers
38 views
2D Per pixel collision detection not working
I would like to say sorry in advance for the amount of code I will post, but I can't seem to get my collision detection to work, the player and the objects pass through each other with no effect when ...
0
votes
1answer
76 views
Rotate around the centre of the screen
I want my camera to rotate around the centre of screen and I'm not sure how to achieve that. I have a rotation in the camera but I'm not sure what its rotating around. (I think it might be rotating ...
0
votes
0answers
104 views
How to make custom shaped holes in terrain
So I'm trying to create a game where you fit certain shaped objects into the hole that fits them (similar to the young children's game with different shaped blocks) in Unity 3D.
I've encountered a ...
0
votes
1answer
57 views
XNA & HLSL - rendering a model with its original materials (colors)
I am currently trying to code my own HLSL effect file, in order to render an FBX model I made with Autodesk maya, and to which I have applied some materials (colors).
before trying to write an effect ...
-1
votes
0answers
35 views
Object reference not set to an instance of an object (Matrix) [closed]
I have a model (weapon) whose bones I want to add to the matrix weaponTransforms. This keeps giving me the error: Object reference not set to an instance of an object.
Class Level Variables
...
1
vote
2answers
117 views
Rotating sprite 180 deg
I should say first, that I have the rotation down. Its just that I want my square to rotate exactly 180 degrees. Currently, it will rotate but it will rotate but by less each jump. So after several ...
-1
votes
0answers
106 views
Events system structure
I have a sub-system that manages specific events for actors, quests, world space and so on. For example an actor dies. This event sends a message that's important to quests, game world and so on.
Is ...