That description sounds a lot like Steambot Chronicles.
The game follows a young protagonist through a quirky world with a strong soundtrack and plenty of small-town atmosphere, which fits the details you remember. If the music is the part that stuck with you, that is usually the quickest way to confirm it is the right title.