Fancy top down bullets

how do i make those fancy top down bullets that show a really nice line that goes on until it hits something like the level?