   Game Engine advice
  Can someone please give me advice on writing my own game engine...for a 2d game...i havnt ever made a game engine or a game...i have been programming with c++ for over a year now....but i am just now starting to mess with directx and opengl   
  Basic game engines are pretty simple. You have a huge main loop, and within it you draw your sprites, get input, handle the AI, etc.There's no need to get into some hugely complicated crap like Enguinity on your first try, just make something in a simple loop.   ;  yeh thats kind of what i figured....thanks;  You'll need these pieces:1) a world that can be drawn2) a world that can be collision tested against (may be different from 1)3) a number of entities that can walk around this world, one of which is player, some of which are monsters, or movable blocks, or whatever4) a way of drawing the entities (typically, sprites)5) a way of reading user input and translating it to control messages6) a way of laying out the world, entities, and challenges for the player, and determining when they're done (i e "next level")The main loop then looks something like:while( true ) {  process trigger/conditions for world state (if not part of entities)  read user input and hand to user entity  test entities for collision, and hand results to entities  process each entity  draw world  draw entities}The interface for each thing can be just a list of interfaces (std::list<IEntity *> for the entity list, etc) and functions to create, destroy, step and draw the entities in the list.;  thank you.   