Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 23 Apr 2001
Offline Last Active Private

Topics I've Started

Please Suggest An Android Game Engine

27 March 2014 - 12:39 PM

I'm looking for an Android game engine that has three things:

  • Ability to code for Android in C or C++
  • API to get user's location
  • Send and receive data to/from a server (it would need to store small bits of information, like said location)

(Being a game engine, it should be a given that it handles graphics/music/sound/interaction easily.  I don't need anything fancy like physics/navigation/taking over the world/etc.)


That's it.  Paying for it is not out of the question but I'd rather not pay monthly.


Could anyone suggest an engine like this?



Weird (But Simple?) Angle Math

08 January 2014 - 05:07 PM

I'm not quite sure why but the engine I'm using is returning odd angles for which direction an entity is facing.  It looks like this:




Now, I'd like to turn the entity from its current angle, X, to a given angle, Y but only using the fastest way possible.  If it's facing 90 degrees and the target is 100 degrees, it should use the smaller 10 degree turn, not the 350 one.


Does anyone have any C code or pseudo code or even just general tips they can give me to easily achieve this using the above angle system?




06 October 2013 - 11:40 AM

My question is a basic one: how do patchers work?


My understanding so far is that the EXE is only the patcher / launcher.  When it's run, it checks the files against a website or server to see if they match (I will be using libcurl).  If they don't, it updates them.  Then, when you hit Play, it runs the actual game DLL which plays the game.


First, is this the correct idea?

Second, in Windows (I use Leadwerks and Visual Studio Express), what's the command to launch the DLL?

Finally, how do you update the launcher itself?  Does that game do that once the launcher quits?  Or does the updater launch another updater DLL?  I guess it doesn't matter which but what's the "right" way to do it?



Header Files

30 June 2013 - 09:14 PM

Very beginner question but how the heck do header files work?


I'm using RakNet and have a cpp file with a bunch of functions using it and its variables.  Works great.  Then I made a function which was declared (?) in a .h file, as per below:


int getplayernumberfromguid(RakNetGUID id);


I then get a TON of "error C2065: 'RakNetGUID' : undeclared identifier" errors for the same line.


So, I figure, in my infinite wisdom: no problem - I'll just copy and paste the #include stuff from the top of the cpp file into the top of the h file.  If it works for one, it should work for the other.  Well, that just brings in a mess of new errors including errors inside the RakNet files which should have no issues whatsoever.


Any idea what I'm doing wrong?  How are you really supposed to do this?


Thanks in advance!

Function Pointer to Class Function

12 February 2013 - 10:43 AM

I tried searching for this for a bit but everything seemed a little advanced for me.  I have a function pointer:


void (*fun)();


Then I have class.


class info
    void think();

extern class info player;


Is there a way to point fun to the think function?


I tried




but that got me


error C3867: 'info::think': function call missing argument list; use '&info::think' to create a pointer to member


I'm sure it's either something simple or that the two functions are just incompatible.  Could anyone please tell me what I'm missing?


Thanks for any help!