When you are playing against another team you play for 4 quarters, in the NBA they play 12min a quarter. You can shoot 2pointers or 3 pointers.
You also can get foul points if someone physically touches you anyway while trying to guard you or stop you from shooting your shot, you may get a free throw shot depending where you were fouled at can determine how many shots you shoot. Unless you was fouled