While playing online basketball games, you can score only by making your ball pass through the basket. The more goals you do, respectively your score improves.