Creating simple games

how would i create a game like cubefield