The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
0answers
274 views

JMonkeyEngine: Error in collision detection between terrain and rays

I have the following code, this is a basic setup to allow terrain edditing by mouse later on: public void simpleInitApp() { flyCam.setMoveSpeed(50); terrain = new WorldTerrain(this); ...
0
votes
1answer
32 views

How to handle runtime exceptions that occur on a loading process delegated to newly spawned thread

I am looking to multi-thread the resource allocation routines (i.e world loading) in my game so that they can occur in the background whilst rendering a loading screen etc... The problem is, I used to ...
1
vote
1answer
694 views

InvalidOperationException when using C# DLLs with Unity3D

Description I've been attempting to use a custom DLL in Unity. I've confirmed the DLL runs correctly outside Unity. The DLL imports into Unity and when I refer to it in my scripts, I get no compiler ...
2
votes
2answers
627 views

Why do my update and draw loops throw a concurrent access exception?

I've taken up the challenge of creating a basic 2D side-scrolling monster truck game for my little brother. It seems easy enough in theory, but jumping into Java out of XNA feels strange. My game ...
0
votes
0answers
55 views

DispatcherTimer throws UnauthorizedAccessException

I am currently porting my XNA project to MonoGame. When running the XNA Project, there are no errors with DispatcherTimers. But in the current MonoGame port, initializing a DispatcherTimer throws the ...
12
votes
2answers
614 views

How should I handle missing resources?

Your game expects a certain asset to be loaded, but it isn't found. How should the situation be handled? For example: Texture* grassTexture = LoadTexture("Grass.png"); // returns NULL; texture not ...
-1
votes
2answers
96 views

Java hashmap access without exception [closed]

I'm using a hashmap as an infinite map for a tile based game. I'm trying to access all values in a hashmap from another thread and changing the content at the same time. But I'm getting a ...
2
votes
1answer
453 views

Monogame crashes without any change

I've written a game in MonoGame, which works great on my desktop computer. It's running Windows 8, has a good graphics card and can be assumed to be up to date with everything. However, when I run on ...
0
votes
1answer
467 views

Using crittercism with Unity

I want to use crittercism with my Unity project. In Unity I am developing a game for iOS and Android platform. I did enough Google searching to come to the conclusion that Unity doesn't support this ...
0
votes
2answers
325 views

XNA texture GetData exception

When using this code: public static Texture2D MakeTexRed(Texture2D tex) { Texture2D drawTex = new Texture2D(Game1.graphics.GraphicsDevice, tex.Width, tex.Height); Color[] data = ...
20
votes
5answers
2k views

Try-catch or ifs for error handling in C++

Are exceptions used widely in game engine design or it is more preferable using pure if statements? For example with exceptions: try { m_fpsTextId = m_statistics->createText( "FPS: 0", 16, 20, ...