Search found 173 matches

by X Abstract X
Sun Sep 14, 2014 5:06 pm
Forum: Programming Discussion
Topic: Component based entity system implementation?
Replies: 4
Views: 3233

Re: Component based entity system implementation?

I don't personally use an entity based system but here's the first approach that comes to mind. - Store a string containing the name of the component in each component class (or virtual method you can overload to return a string) - Instead of using a vector in your Entity class to hold components, u...
by X Abstract X
Thu Sep 11, 2014 11:09 am
Forum: Game Development
Topic: Some Project Demo Videos
Replies: 1
Views: 6584

Some Project Demo Videos

Links taken down.
by X Abstract X
Tue Sep 02, 2014 6:29 am
Forum: Programming Discussion
Topic: Memory Usage Optimization
Replies: 6
Views: 3462

Re: Memory Usage Optimization

It's hard to suggest much without knowing the specifics of your game. I don't have experience with Dreamcast but I'm assuming you're currently using 32-bit textures? Try reducing to 16-bit or 8-bit palleted textures if possible. Also make sure you're freeing your local copy of image/pixel data after...
by X Abstract X
Fri Aug 29, 2014 4:20 am
Forum: Programming Discussion
Topic: Pseudo 3D Racing Engine for Dreamcast
Replies: 8
Views: 4452

Re: Pseudo 3D Racing Engine for Dreamcast

Looks good, keep it up. Strong STI it looks like you're driving there.
by X Abstract X
Tue Aug 19, 2014 1:25 pm
Forum: Programming Discussion
Topic: Orthographic Projection Issue
Replies: 4
Views: 3026

Re: Orthographic Projection Issue

What are the results if you omit using any model or camera transforms and multiply the vertices of an on-screen quad by just the ortho matrix?
by X Abstract X
Tue Aug 19, 2014 1:16 pm
Forum: Programming Discussion
Topic: Fixing Bugs After Release
Replies: 3
Views: 3125

Re: Fixing Bugs After Release

Have you considered using the NSError class? This seems to be the recommended approach. https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSError_Class/Reference/Reference.html http://stackoverflow.com/questions/4654653/how-can-i-use-nserror-in-my-iphone-app A...
by X Abstract X
Tue Aug 19, 2014 1:01 am
Forum: Programming Discussion
Topic: Fixing Bugs After Release
Replies: 3
Views: 3125

Fixing Bugs After Release

I've been working on a game for the past year that I plan to release on iOS/Android. Up until this point I've neglected to do any sort of meaningful error handling. Typically, I'll simply have my functions return false on error and basically close down the app. I know if I don't take steps now to in...
by X Abstract X
Mon Aug 18, 2014 6:14 pm
Forum: Programming Discussion
Topic: Orthographic Projection Issue
Replies: 4
Views: 3026

Re: Orthographic Projection Issue

Try these 2 changes: void Matrix4f::InitOrthoProjTransform(float left, float right, float top, float bottom, float zNear, float zFar) { m[0][0] = 2 / (right - left); m[0][1] = 0; m[0][2] = 0; m[0][3] = 0; m[1][0] = 0; m[1][1] = 2 / (top - bottom); m[1][2] = 0; m[1][3] = 0; m[2][0] = 0; m[2][1] = 0; ...
by X Abstract X
Sat Jul 26, 2014 5:59 pm
Forum: Game Development
Topic: Mondo (PC, free) released: My fast-paced action-arcade game
Replies: 6
Views: 10214

Re: Mondo (PC, free) released: My fast-paced action-arcade g

Good work :) One thing I would suggest is to always make sure you add some design elements to your game that allow for replayability. In this case, I think you could use some simple rules to procedurally generate unique levels instead of having just a single level. Perhaps even add support for level...
by X Abstract X
Fri Jul 25, 2014 3:06 pm
Forum: Programming Discussion
Topic: Reading Chess Position[SOLVED]
Replies: 7
Views: 4870

Re: Reading Chess Position

Well apparently the "scanf" function just doesn't work very well with getting inputs in a loop. Ended up using "sscanf" with an input string instead. Now it works. I think the problem you're having is because scanf will just read the newline character the second time you call it...
by X Abstract X
Mon Jul 21, 2014 1:00 am
Forum: Programming Discussion
Topic: Reading Chess Position[SOLVED]
Replies: 7
Views: 4870

Re: Reading Chess Position

Haven't personally used these functions but what happens if you switch it to:

sscanf_s(input.c_str(),"%c %d", &inputX, sizeof(inputX), &inputY);
by X Abstract X
Tue Jul 08, 2014 9:18 pm
Forum: Programming Discussion
Topic: [Q] Getting the point of contact between 2 OBB rectangles
Replies: 4
Views: 3887

Re: [Q] Getting the point of contact between 2 OBB rectangle

I actually wrote somewhat of a tutorial on the subject of building a 2D rigid body physics engine (it's not finalized). I've attached the section I wrote on finding contact points for polygon-polygon collisions, it should be of help. If you have any questions, I'll try to answer them. If it's not t...
by X Abstract X
Mon Jul 07, 2014 7:20 pm
Forum: Programming Discussion
Topic: [Q] Getting the point of contact between 2 OBB rectangles
Replies: 4
Views: 3887

Re: [Q] Getting the point of contact between 2 OBB rectangle

I actually wrote somewhat of a tutorial on the subject of building a 2D rigid body physics engine (it's not finalized). I've attached the section I wrote on finding contact points for polygon-polygon collisions, it should be of help. If you have any questions, I'll try to answer them.
by X Abstract X
Fri Jun 27, 2014 9:45 pm
Forum: Programming Discussion
Topic: Java gaming discussion
Replies: 7
Views: 4288

Re: Java gaming discussion

Java is perfectly fine for game development. In my experience the main thing you need to worry about is being careful with your allocation/deallocation strategy so the garbage collector doesn't come into play and cause large delays during gameplay. Not quite sure what you were getting at with the fa...
by X Abstract X
Mon Aug 26, 2013 7:36 pm
Forum: Programming Discussion
Topic: What Does This Code Do?
Replies: 3
Views: 4047

Re: What Does This Code Do?

I looked at it again today, same issue. I'm using XCode 4.2 which uses LLVM 3.0 btw. I realize it's a C++ 0x feature, I'm just surprised at the fact that it compiles without an issue but simply does not initialize the damn strings. I'm guessing it's just a bug in this version?