Tagged Questions
1
vote
1answer
54 views
Damage indicator screen overlay
I want to make something already done by a lot of games , which is when I am taking so much hits from enemy red screen drawn like the following , using XNA 4.0:
after it's drawn and I am still alive ...
2
votes
3answers
179 views
How can I load 2D texture data without a GraphicsDevice instance?
We have a client/server architecture for our game with the client being the XNA Game, and the game server is separate and only references XNA. They both use a shared DLL for networking. The game ...
0
votes
1answer
114 views
Tile Draw Order
I started working on a tile engine recently and have been trying to get this depth sorting for the tiles right. I am using XNA and the SpriteSortMode.Deferred to get the tiles to sort correctly in the ...
1
vote
0answers
105 views
How to draw a large number of model (identical) with vertex buffer in XNA?
I am facing a problem that many developers as have probably found a solution.
I have a small project with a floor designed with small cubes (100X100).
If I exceed this limit, my game suffered major ...
1
vote
2answers
177 views
Is 2 lines of push/pop code for each pre-draw-state too many?
I'm trying to simplify vector graphics management in XNA; currently by incorporating state preservation. 2X lines of push/pop code for X states feels like too many, and it just feels wrong to have 2 ...
0
votes
0answers
213 views
Map 3D space to 2D screen space?
Could some one help me to understand this code and explain it?
It's about converting from 3D space to 2D position, so that I can use it in another Effects (.fx) files, but I am a bit confused.
float ...
1
vote
1answer
111 views
How do I read the an environment map CPU side? (Similar to texCube function on GPU)
I need to extract the one pixel from a environment mapping (I already have the 6 textures) using the normal vector. How can I achieve this ?
I want something very similar to what texCUBE(link) does ...
21
votes
3answers
4k views
How can I make this style of 2D “glowing” graphics?
I'm comfortable with the basics of building a 2d sprite based game in XNA, where all my objects are simply .png images that I move around.
What things do I need to learn next to be able to develop a ...
4
votes
1answer
344 views
Suggestions for implementing a dynamic 2D level
I am working on a game that needs a level that is completely generated. Currently my approach is to draw textures for the levels pixel by pixel during the game (in XNA with SpriteBatch). This is too ...
2
votes
2answers
255 views
Are there any issues with not drawing to all render targets when using MRT?
Lets say I set 2 render targets:
device.SetRenderTargets(color, depth);
And then half my draw code only outputs color and not depth. This works fine on the PC and produces the expected results ...
4
votes
4answers
699 views
How would I go about implementing a globe-like “ballish” map?
I am new to 3D development and I have this idea of having the game world like our globe is - a ball. So, there would be no corners in the map and the game is top-down RTS game. I would like the camera ...
50
votes
8answers
5k views
2D graphics - why use spritesheets?
I have seen many examples of how to render sprites from a spritesheet but I havent grasped why it is the most common way of dealing with sprites in 2d games.
I have started out with 2d sprite ...
