Play this: Starbound

Starbound is a two-dimensional sandbox game that
invites you to explore and civilise the galaxy. It also happens to
be brilliant.

Here's the setup: you escape the destruction of the Earth on a
spacecraft, then run out of fuel in the orbit of a relatively
friendly-looking planet. You beam down to the surface armed with
not much more than a matter manipulator, and you're tasked with
surviving.

That means gathering resources like wood, coal, copper, iron and
silver, and then crafting them into different tools and weaponry.
As you explore, you'll be able to refuel your spaceship and travel
to new planets, as well as coming across increasingly difficult
monsters to befriend or fight.

Some of you will have noticed that the game features more than a
passing similarity to Terraria. That's not coincidental. The lead developer
was the lead artist on Terraria but the concept for
Starbound actually existed before he started work on
Terria. There are some other important differences too.

For starters, you're going to need to explore more than one
world to acquire all the resources you need. New planets are
procedurally-generated, but all players exist in the same universe
meaning that you can give a friend coordinates to your world and
they'll be able to explore it too. There are a number of playable
races, and the tech tree is broader and deeper.

The game is in beta right now, so don't expect everything to
work perfectly, but patches are arriving every few days in response
to player feedback. It runs on Windows, OS X and Linux, and if
you'd like to give it a go then you can grab it either on Steam or on
the game's official
website.