I made this in Construct 2. I am no coder by any means, just and artist and musician. The engine lets me put together games with just event sheets and logic. I would never have been able to make games without it. So I cannot teach someone with code but I can recommend Construct 2 or Construct 3 as really good 2d game engines.