Sprite sorting issues
I apologize for the vague title, I'm not sure how else to phrase this problem.I am using tIDE to assist me in my game's world development. To give a dynamic effect to map layers within tIDE, it has...
View ArticleIsometric tile map format
I've just knocked up a fairly basic isometric tile based game and I'm looking for the best way to store the level data.Each tile coordinate is assigned one or more numbers that correspond to a tile...
View ArticleXNA 4.0 - container with content, that can slide (C#)
I got an idea, but I got no idea on how to make it.Okay, so here is the deal.I want a container which can contain certain objects (These objects will draw the sprites/graphics).But because of different...
View ArticleHow do I move a 3D particle using the Mercury particle engine?
I'm currently creating a 3D game with XNA, and I am in need of some particles.That's why I searched for a particle engine. I found Mercury, watched the tutorials and integrated it in the game.But now I...
View ArticleCombine 3D objects in XNA 4
Currently I am writing on my thesis for university, the theme I am working on is 3D Visualization of hierarchical structures using cone trees.I want to do is to draw a cone and arrange a number of...
View ArticleHow can I embed music in my XNA .exe?
I'm trying to embed music in my XNA game's .exe (with resources) but compiling them as a sound effect stores the music in uncompressed form, which results in a 16 MB .exe.I can compress my music with...
View ArticleHow to remove the jitter from my pong AI movement?
I am developing Pong using Monogame / XNA and my AI paddle is really jittery when the ball is moving more horizontally than vertically. My AI is very simple and works as follows:If the ball's position...
View Article3D Vector "End Point" Calculation for procedural Vector Graphics
Alright, So I need some help with some Vector Math.I've developing some game Engines that have Procedural Fractal Generation for Some Graphics, such as using Lindenmayer Systems for generating Trees...
View ArticleAlpha blending not rendering properly XNA 4.0
I'm trying to render a tree made out of 2 rectangles intersecting in the center at a 90degree angle. The texture has an alpha channel but which ever rectangle gets rendered second causes a weird...
View ArticleDisposing only certain resources in XNA?
The ContentManager in XNA 4.0 only has one Unload() method that Unloads all Assets.I want to have some "global" Assets that are always loaded, but then I want per-Level Assets which should be Unloaded...
View ArticleSimple WP7 pong game with real time multiplayer using sockets
I'm making a pong clone for Windows Phone 7 and I'd love to add a multiplayer option. I've been trying to use this Ricky Tan's tutorial:LinkThe problem is it is designed around the platformer example...
View ArticleError on new XNA 4.0 game project - No suitable graphics card found
Any ideas on how to fix this? According to what I remember about XNA 3 was that when running the application from scratch, I would get a blue colored windows with nothing rendered.Any...
View ArticleWhat are the differences between XNA 3.1 and 4.0? [closed]
I have been away from XNA for a couple months and want to get back into it. I had a game I was currently working on, but it was done in XNA 3.1. What are the differences between the two, and is it...
View ArticleWhen should a bullet texture be loaded in XNA?
I'm making a SpaceWar!-esque game using XNA. I want to limit my ships to 5 active bullets at any time. I have a BulletDrawableGameComponent and a ShipDrawableGameComponent. My Ship has an array of 5...
View ArticleUsing 2D sprites and 3D models together
I have gone through a few posts that talks about changing the GraphicsDevice.BlendState and GraphicsDevice.DepthStencilState (SpriteBatch & Render states). . however even after changing the states...
View ArticleCustom effects on Model in XNA
If I have a Model that is drawn with a different effect occasionally, what is the typical approach to this?Models have effects stored in each of their meshes, and you seem to be forced to use...
View ArticleHow do I prevent XNA from pausing Updates while the window is being...
XNA stops calling Update and Draw while the game window is being resized or moved.Why? Is there a way to prevent this behaviour?(It causes my network code to desynchronise, because network messages...
View ArticleLearning XNA 3.1 Vs XNA 4.0
I am starting out learning XNA and its going smoothly. However I wonder if I am shooting myself in the foot by learning 3.1 not 4.0?I am also aware Microsoft obviously has a conflict on interest in the...
View ArticleUsing a shader messes up my alpha in XNA
I'm making a 2D game that ends up being too dark on some laptops, so I figured I'd use a shader so people could brighten it up if need be. Unfortunately, once I got it in there nothing would fade in or...
View ArticleWhen/how to use GameService, GameComponent, Initialize()?
So I've finally got around to playing around with XNA and have been toying around with making a 2D game (I have a bunch of art assets from a friend who developed it on iOS)A lot of things seem to be...
View Article