The goal is to survive as long as possible. You die if you touch the floor, ceiling or bats. Use space, w or up arrow to move up. The game will get harder as you go along but potions will also appear - these give you perks.