Hey there! This one was all GDscript, but absolutely could be done in C++ - and that would indeed be a fun project.
GDscript is just faster time wise.
But if this were built out into a full game, with many many entities, I think C++ would provide some advantages.
Thanks for playing!