JS Advanced --- Case Snake, the function package to move to the js file

Snake case, the function to move the package file js

 


<!
DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>title</title> <style> .map { width: 800px; height: 600px; background-color: #CCC; position: relative; } </style> </head> < Body > <-! To draw a map, set the style -> < div class = "the Map" > </ div > < Script src = "food.js" > </ Script > < Script src = "Snake. JS " > </ Script > < Script the src =" Game.js " > </ Script > < Script > // initialize game objects var GM = new new game (document.querySelector ( ".map")); //Initialized to start the game game --- gm.init (); </ Script > </ body > </ HTML >

 

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/jane-panyiyun/p/12145406.html
Recommended