It’s by no means perfect, but Lua with LÖVE is pretty straightforward for 2D games, and gives you a Real™️ programming language as well.
Alternatively, Godot is a modern open source game engine and framework, and if you stick to 2D and the built-in GDScript, it comes with a lot of nice things for creating levels, maps, animations etc. However, perhaps for a 10yo the barrier to entry might be a bit high.
It’s by no means perfect, but Lua with LÖVE is pretty straightforward for 2D games, and gives you a Real™️ programming language as well.
Alternatively, Godot is a modern open source game engine and framework, and if you stick to 2D and the built-in GDScript, it comes with a lot of nice things for creating levels, maps, animations etc. However, perhaps for a 10yo the barrier to entry might be a bit high.