Description: First empty the canvas with the background color, and then draw the food, followed by the for loop Snake snake block painting on canvas in order to achieve gaming effects.
C# implementation of the reference value.
To Search:
File list (Check if you may need any files):
贪吃蛇\App.ico
......\AssemblyInfo.cs
......\Bean.cs
......\bin\Debug\贪吃蛇.exe
......\...\.....\贪吃蛇.pdb
......\...\.....\贪吃蛇.vshost.exe
......\...\.....\贪吃蛇.vshost.exe.manifest
......\Block.cs
......\Class1.cs
......\ClassDiagram1.cd
......\ClassDiagram2.cd
......\ClassDiagram3.cd
......\Floor.cs
......\obj\Debug\贪吃蛇.csproj.FileListAbsolute.txt
......\...\.....\贪吃蛇.csproj.GenerateResource.Cache
......\...\.....\贪吃蛇.exe
......\...\.....\贪吃蛇.Form1.resources
......\...\.....\贪吃蛇.pdb
......\...\.....\贪吃蛇.Speed.resources
......\...\贪吃蛇.csproj.FileList.txt
......\...\贪吃蛇.csproj.FileListAbsolute.txt
......\PubClass.cs
......\Snake.cs
......\Speed.cs
......\Speed.resx
......\Start.cs
......\Start.resx
......\UpgradeLog.XML
......\UpgradeLog2.XML
......\贪吃蛇.csproj
......\贪吃蛇.csproj.user
......\贪吃蛇.sln
......\贪吃蛇.suo
......\obj\Debug\Refactor
......\...\.....\TempPE
......\bin\Debug
......\obj\Debug
......\bin
......\obj
贪吃蛇