Page 1 of 1

Quick Question

Posted: Mon Jul 19, 2010 6:56 am
by Lord Pingas
Hello.

My quick question is well, if I were to make an engine (renderer, input, scripter, sound thing, animater and the like) how would I make the actual game itself?

Would I like have a Player class that inherites from an Entity class or something?

Or would I handle all the game with Lua?

How would I seperate the engine from the actual game? (Maybe two project files?)

Would I have all my classes and methods for the engine and seperate classes for the actual game? (All in one project file?)

Also, would a Map and Tile class be handled by the engine or the game?

Thanks.

EDIT: Maybe should change the name of the topic.

Re: Quick Question

Posted: Mon Jul 19, 2010 9:48 am
by Ginto8
Well, if you look at how ES has been, the engine is, well, the engine, but the actual "game" components are all done via lua scripts. So maybe you should check out lua for that sorta thing!

Re: Quick Question

Posted: Mon Jul 19, 2010 10:13 am
by Lord Pingas
Oh, but do they declare the classes for like the Player or Items in a seperate .h or .cpp file or do they declare them in Lua?

Oh and thanks!

Re: Quick Question

Posted: Mon Jul 19, 2010 10:28 am
by MrDeathNote
Lord Pingas wrote:Oh, but do they declare the classes for like the Player or Items in a seperate .h or .cpp file or do they declare them in Lua?

Oh and thanks!
I'm pretty sure all that kinda stuff is in c++. Its thing like story line progression cut scenes etc. that lua is great for.