We all have bad days. 🙂
I taught myself to code as well, so I know a thing or two about it.
The catch is that it is possibly not the learning that gets you. It happened to me, it happened to Thomas Brush, and that means it could easily happen to anyone.
I'm not saying this to scare you, but to warn you to never quit, no matter how things get.
What causes the problem?
When you start off, you are unsure about anything. After that, you learn more and more and get excited- and it feels amazing. Once you reach the peak of learning to program, however- not understanding everything but knowing enough to program with little help- the excitement fades, and you sort of plunge into this... depressive state, I guess? It's awful.
If you manage to endure that, however, the downward spiral eventually flattens. It won't be like it was, but you won't hate your game engine anymore.
At least that's how I would explain it.
Other than that really bad state, coding is surprisingly simple. 😃