Quote: "Is there any tutorials on how to write a game engine? I've been thinking about it all day, i'd have to break it down into managable chunks"
now do not forget that an engine comes in many MANY diffeerent forms.
Yes, there is engines like UDK and Unity 3d which are basicly sandboxes with a lot more functions
but there is, for example, me an my cousin made this small tower defence game and we had no sandbox, no mapmaking thing, just a bunch of code handling everything!
there is... DBPro, havent used it a lot but i think it is more about coding there aswell.
as for making an engine, cant help much there since i aint no programmer.. however if you are "starting out" or something like that, and havent made a lot of games before i suggest staying to the engines which are available for free on the net =) or really cheap

[Q]uik, Quiker than most