Game engine and database editor for 2D rpg games