I really enjoyed making and coding my own game it was my first time ever doing any sort of coding so at the start was definitely an obstacle I faced and it ended up being so much fun.
A complication that encountered that was where that enemies and bullets wouldn't despawn on their own which would cause the game the lag the further you got into the game although I later fixed it by writing a code that makes it when they pass a certain area the entities destroy