Game engines and games
Posted: Thu Jan 01, 2009 10:56 pm
ok so i would like to know what game engine is truly for and how would i use it with my actual game. or is the engine completly different from the game itself.
The Next Generation of 2D Roleplaying Games
http://elysianshadows.com/phpBB3/
eatcomics wrote:Sounds like an interesting read, what book is it exactly???
Thanks for the linkTrask wrote:eatcomics wrote:Sounds like an interesting read, what book is it exactly???
Advanced 2D Game Development - Jonathan Harbour
http://www.amazon.com/Advanced-Game-Dev ... 337&sr=8-1
I would say that the game engine handles the fact that you've clicked on an object (pressed a key, or however you open chest in your game) and where the object is located. The actual game code would take that information from the engine and say "Oh, the player clicked on an object which I recognize as a chest. This chest is supposed to have a sword in it. I will give the player the sword". You can reuse the engine function that checks if an object has been clicked in essentially any game, but the fact that it's a chest with a sword in it is specific to that one game.spum wrote:alright then i have a question, for example almost everygame has a chest right? if u havent played a game with a chest the play zelda, but anyway , so say your character lands on a chest(or activates a chest) and when u land on it the game calls a funcition chest(), does the engine handle\determine what chest u landed on, what is in the chest, and puts whatever is in the chest where it needs to go, so if i land on a chest that contains a sword, the engine is what determines that u landed on a sword chest, and then it puts the sword into you inventory, is that the basic idea????????
u are the bomb, this is the best response i have gotten, now i know and have an idea of where the engine stops and the game begins, thankyou so much u rock!!!!!dandymcgee wrote:I would say that the game engine handles the fact that you've clicked on an object (pressed a key, or however you open chest in your game) and where the object is located. The actual game code would take that information from the engine and say "Oh, the player clicked on an object which I recognize as a chest. This chest is supposed to have a sword in it. I will give the player the sword". You can reuse the engine function that checks if an object has been clicked in essentially any game, but the fact that it's a chest with a sword in it is specific to that one game.spum wrote:alright then i have a question, for example almost everygame has a chest right? if u havent played a game with a chest the play zelda, but anyway , so say your character lands on a chest(or activates a chest) and when u land on it the game calls a funcition chest(), does the engine handle\determine what chest u landed on, what is in the chest, and puts whatever is in the chest where it needs to go, so if i land on a chest that contains a sword, the engine is what determines that u landed on a sword chest, and then it puts the sword into you inventory, is that the basic idea????????
Noooot really.so ES uses lua to run all the functions that the engine has. is that right?