There would be a lot more work designing levels or an algorithm to send enemies etc.
Here's a video of a guy doing just that: https://youtu.be/zRDhiN50Vo0?si=mMnc8ieKbCxcLcSY
TLDW: He manages to make a working game, but doesn't think it's all that much fun.