Hahaha, well. Nice question, first off you got to learn some programming (in any high-level language). Then when you have mastered the normal programming (est time depends on the language and what you do, 1-2 years anyway). Then when you done that, you could learn network programming (java would be the easiest if you want to start making programs over networks quite fast).
To get started you need some software and some good books.
Or, you could do the easy way, by making Flash games. There is programming involved there also. It's easy to control graphics and put it up, but Flash is quite weak when it comes to such things.