Let's eat dinner before we go to the baseball game.

Literal

Baseball [gen-の] game [to-に] go before [at-に] dinner [obj-を] eat-[let's-よう].

~前に ('before doing X') attaches to the dictionary form of the verb — 行く前に ('before going'). Pair this with ~後で ('after doing X,' attached to past form) and ~てから ('after doing,' te-form) for the full temporal ordering toolkit.