Quick Question

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
Lord Pingas
Chaos Rift Regular
Chaos Rift Regular
Posts: 178
Joined: Thu Dec 31, 2009 9:33 am
Favorite Gaming Platforms: NES, SNES, Nintendo 64, Dreamcast, Wii
Programming Language of Choice: C++
Location: Hiding In My Mum's Basement With My Pokemon Cards

Quick Question

Post 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.
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: Quick Question

Post 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!
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
User avatar
Lord Pingas
Chaos Rift Regular
Chaos Rift Regular
Posts: 178
Joined: Thu Dec 31, 2009 9:33 am
Favorite Gaming Platforms: NES, SNES, Nintendo 64, Dreamcast, Wii
Programming Language of Choice: C++
Location: Hiding In My Mum's Basement With My Pokemon Cards

Re: Quick Question

Post 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!
User avatar
MrDeathNote
ES Beta Backer
ES Beta Backer
Posts: 594
Joined: Sun Oct 11, 2009 9:57 am
Current Project: cocos2d-x project
Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
Programming Language of Choice: C/++
Location: Belfast, Ireland
Contact:

Re: Quick Question

Post 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.
http://www.youtube.com/user/MrDeathNote1988

Image
Image

"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
Post Reply