Premises: Have programming experience, be good at math (at least to the third grade of junior high school), have strong spatial thinking and logic (programming must be good at logic), understand music, art, be willing to bear hardships and stand hard.
The premise is that you must have a story before you can play games. The editing is over. It depends. If it is a 3D game, download Blender 3D modeling tool (free and easy to use! There are many plug-ins), model, then import Unity, set the scene, and write the code slowly. If it is fast, it will take two or three weeks, if it is slow, it will take several months (there are also several years, so it is durable, bitter and can bear hardships). If it is a 2D game, you can use GIMP (like Blender, it is open source, free and powerful! ), or hand-painted, then imported into the computer, and then poured into Unity, and then the rest of the work is the same.