So you want to make a game eh? Well firstly you need to know how the game works, and what's required. Each and every game that exist on the internet is made out of code, a code is a programming language the computer reads like a manual then does all what it tells it to do. To make a good game it takes a LOOOONG time to develop EVERY SINGLE LINE of code.
This topic is not to each you how to code, but how to get you started. Now time for whats required, Adobe Flash Professional, probably the most popular program to develop games. 95% of all 2D games are made on that program.
Link to Adobe ---> adobe.com The program cost A BUTT LOAD OF MONEY! So my advice is to just use the free trial, and do your best until it expires.
I'm not going to give full instructions on how to use the program but i'm sure someone as smart as you will figure it out, but if you want some extra help search "How to make a game in flash" on Youtube.
Before i end this topic, i just wanna say i'm developing my own game. And i will be trying to publish it very soon.