starting off with some grass start off with some random grass images on the screen for in range( )grassobjs append(makenewgrass(cameraxcameray)grassobjs[ ][' 'random randint( winwidthgrassobjs[ ][' 'random randint( winheightthe active area should start off with few grass objects visible on the screen the makenewgrass(function will create and return grass object that is randomly located somewhere in the active area but outside the camera view this is what we normally want when we call makenewgrass()but since we want to make sure the first few grass objects are on the screenthe and coordinates are overwritten the game loop while truemain game loop the game looplike the game loops in the previous game programswill do event handlingupdating the game stateand drawing everything to the screen checking to disable invulnerability invulntime check if we should turn off invulnerability if invulnerablemode and time time(invulnerablestarttime invulnerablemode false when the player gets hit by an enemy squirrel and does not diewe make the player invulnerable for couple seconds (since the invulntime constant is set to during this timethe player' squirrel flashes and the won' take any damage from other squirrels if the --invulnerability mode|time is overline will set invulnerablemode to false moving the enemy squirrels move all the squirrels for sobj in squirrelobjsmove the squirreland adjust for their bounce sobj[' '+sobj['movex'sobj[' '+sobj['movey'the enemy squirrels all move according to the values in their 'movexand 'moveykeys if these values are positivethe squirrels move right or down if these values are negativethey