Obviously I'm new to game programming.
I was leraning how to use Irrlicht and so on...
But a question that ALWAYS annoys me is, how, basically, a game engine works?
I got this piece of code:
Code: Select all
while(device->run())
{
driver->beginScene(true, true, SColor(255,100,101,140));
smgr->drawAll();
guienv->drawAll();
driver->endScene();
}
device->drop();
OK. It says it draws a scene in each loop. Is a scene a frame?
...
The game engine has its code. Where would I put MY code? For example, to handle health, armor, current weapon on hand, inventory, and so on. Does that stuff go inside that loop?
...
If possible, could you explain how things work, in details, but clear, please?
I'm pretty newbie.
Thanks!