Build towers on the grass to stop the dots from reaching the red gate. Click a tower to upgrade · right-click to sell.
Pick a tower (keys 1/2/3), then click a grass tile to build.