Stimulating students' imagination and creativity in games through rich course content and building blocks can improve students' creativity and logical ability in game programming. The content of the course involves the knowledge of the creative programming direction of the game, which shows the programming more concisely in front of students by means of graphical building blocks, stimulates students' interest in programming design and explores students' programming potential.