Just watch! :) Code is easy. When green flag clicked: point in direction (pick random -180 to 180) forever move ten steps if on edge, bounce.
You can remix this, or copy the code!