Here are some rules about shooting.
If you are fouled while shooting a two-point shot, you have to shoot two free throws if you didn't make the two-pointer. If you make the shot, you still get one free shot. If you get fouled while shooting a three-point shot and miss, you get to shoot three free throws but if you miss you get one free throw. If the other team has already has five fouls in one quarter, the team gets two free shots if the other team fouls one of their players. For a technical foul, you get one free throw with now players by the key around you. For a flagrant foul, the player gets two shots and his team gets the ball. Every basket is worth three points except for baskets made inside an arc on one side of the court (2 points) and free throws (1 point). You can not shoot out of bounds.