I'm quite new to the world of 2D-Engines. I figured out how to load images and display those as sprites and stuff, but theres one question that bugs me.
For instance, when a "rocket" hits an object it will deal damage to it and leave a crater behind. I'd like to have the crater shown on that object. That would require "skipping" some of...
I am starting to get into programming as a hobby, I had several classes in JAVA/C# at school and would like to get into game programming. Honestly, this is just for myself. I am not looking to fast track the next A+ game, just something I can work on during my downtime at work. I have already decided on C# using SharpDevelop at work and ...
Hi,
I have a bunch of polygons that are generated by my program (i.e. I manually calculate the position vectors for the vertices). I want to dump these to a .x file (or .fbx or any format I could reload later with XNA). Is there any C# or XNA API for doing this?
10x!
Yoyo
...
I'm developing a game in XNA. It would be nice for it to be compatible with Xbox. Does Box2d work on Xbox? Is there some way to include any third party libraries I use?
...
I'm having difficulty doing this seemingly simple task. I want to load XML files with the same ease of loading art assets:
content = new ContentManager(Services);
content.RootDirectory = "Content";
Texture2d background = content.Load<Texture2D>("images\\ice");
I'm not sure how to do this. This tutorial seems h...
I am making a Map Editor for a 2D tile-based game. I would like to host two XNA controls inside the Windows Form - the first to render the map; the second to render the tileset. I used the code here to make the XNA control host inside the Windows Form. This all works very well - as long as there is only one XNA control inside the Windows...
I have used PyGame for a while now, and quite enjoyed doing so, but only 2D experience is not going to cut it when I apply for video game jobs, and besides, I have a number of ideas I want to try out in 3D. What 3D library should I go into first? I was considering Irrlicht, which will also force me to work on my C++ again, but I was also...
I'm making a Tetris Clone in C# with XNA, and I'm unsure of how to actually implement the blocks.
I don't think that making the shapes as images will work (because parts are removed when lines are formed), so I Have blocks to make up the pieces like This.
Unfortunately, I don't know how to actually define the blocks to make the pieces,...
Hello,
I am trying to write some code that that will draw the line which is a tangent between 2 circles. so far i have been able to draw multiple circles, and lines between the centers.
i have a class which stores the values used in drawing the circles (radius, position).
what i need is a method in this class to find all posible tangents...
What is the difference and consequences of use Sprite sort mode as FrontToBack or BackToFront? It's that with FrontToBack the object that has the smaller layer value will be draw first and with BackToFron the object that has the smaller layer value will be draw last?
...
I have an outdated computer, that currently will not run certain XNA components. I am a beginner at this stuff, so I'm looking to get some other programming stuff done before I get a new computer that can run XNA and everything else. But is Tetris easy to make without XNA?
...
I was just wondering which would be cheaper, using a try catch block for index out of bounds or checking the length of a multi dimensional array and comparing values?
I have a feeling it's the length, since I can store the length in a variable and then just do if's which are relatively cheap. I'm just not sure how expensive try-catch is...
How would I go about generating random platforms without intersection? I think garbage collection and maybe all that checking may be an issue. I've got the generating tiles part down, but not the intersection checking.
...
More than 5 years ago I was playing with DirectSound and Direct3D and I found it really exciting although it took much time to get some good results with C++. I was a college student then.
Now I have mostly enterprise development experience in C# and PHP, and I do it for living. There is really no chance to earn money with serious game ...
I'm creating a 2D tile-based RPG in XNA and am in the initial design phase. I was thinking of how I want my tile engine to work and came up with a rough sketch. Basically I want a grid of tiles, but at each tile location I want to be able to add more than one tile and have an offset. I'd like this so that I could do something like add in...
Similar to this question, but looking for an answer that will work in the context of an XNA game.
How can I determine whether the device is in a landscape or portrait orientation? The answer given in the general question relies upon functionality built into PhoneApplicationPage. AFAIK, you wouldn't normally be using that class within ...
I have the physx sdk and runtime installed, but for some reason, I keep getting that error message when I try to build my game. Any ideas?
...
I'm developing a 3d Viewer in vb.net and xna. It's working very well.
I have now a windows form and an xna render window, but I would like to render it inside a panel in the windows form.
I have searched for info, but it's so hard to adapt it into my application.
How can I do it?
Here is the application.
...
I'm wondering how you'd recommend designing a class, given the fact that XNA Framework uses Struct all over the place?
For example, a spite class, which may require a Vector2 and a Rectangle (both defined as Struct) to be accessed outside of the class.
The issue come in when you try to write code like this:
class Item
{
public Ve...
Hi,
I read tutorials from the web about C# Attributes and Metadata. It's very cool but I'm wondering its implication.
Are (custom) attributes loaded when the assembly is loaded? or is it only when you use reflection to retrieve the metadata?
It seems the attributes add to the total of code size because it gets compiled in to the execut...