If you want to learn to code and make games the best approach is to learn by making smaller projects and by trying different things. It's really a trial and error process.
Also, decompiling other people's games are frowned upon and would highly advise not to do it. Best of luck!