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.
Quick Question
Moderator: Coders of Rage
- Lord Pingas
- 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
- Ginto8
- ES Beta Backer
- Posts: 1064
- Joined: Tue Jan 06, 2009 4:12 pm
- Programming Language of Choice: C/C++, Java
Re: Quick Question
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.
- Lord Pingas
- 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
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!
Oh and thanks!
- MrDeathNote
- 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
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.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!
http://www.youtube.com/user/MrDeathNote1988
"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
"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