If your object is to learn, better to try out Handmade Hero, entirely from scratch: https://handmadehero.org/
For the last few I just do VanillaJS on canvas.
One time I decided to make a multiplayer game on a hexagonal grid. Just getting the hexagonal grid working took me over half of the time, didnt produce much of a game at all that time, but it was still fun, it's ok to fail.
https://github.com/echelon/laser-asteroids
No unity, no unreal, no engine. Learned it all as I went.
Game jams are a fantastic time and place to learn.
I've done it 8 times, once with GameMaker, twice with Unity, and the rest were custom.
What the time constraint teach you is to adjust to a time budget. Wear many hats. Improvise. And Finish Stuff. All very valuable lessons that will help any developer.
There's a healthy and beautiful spectrum of tools and languages out there between the "all included" of Unity and the aridness of plain C. Have you tried Löve? It abstracts a lot, but a lot of what it abstracts is really not that important for making games, in my opinion.
2 days though? I don’t know what I would do, its not much time
I look at the experiences of Phil Strahl and I find it really interesting to see from year to year how his experiences with Ludum Dare have changed and what he has learned. It does seem like familiarity with tools is really important.
I like his joke in his Ludum Dare 45 post mortem about how his game launches, testing over, passed.
Getting older I know that having enough sleep is really important for having a beautiful day the next day. I'm not sure how compatible getting enough sleep is with a 48 hour hard limit. Looking after physical health and mental well-being seems really important at this stage in my life. I'm glad that people can get enjoyment out of participating in Ludum Dare and I know everyone's experience will be different because everyone is different. I wish generally people felt less stressed because some of the limits we place on ourselves are optional.
It's perfectly compatible I think. The difference between 8 hours of sleep or 16 hours over two days is 1/6 of the whole jam, but the difference in productivity will be much less, or even better with more sleep.