I remember reading a book about a guy that created worlds by writing in blank books. I think the story started out with the main character living with his mother in the dessert near an inactive volcano. At some point he finds out his estranged father could create whole universes by writing the code in books. Unfortunately his father's worlds were unstable and started collapsing. If I remember correctly the father died in one of his own worlds while the son escaped with his love interest.
Does this ring a bell with anyone?