xoffset yoffset elif playermoveto =left xoffset - yoffset see if the player can move in that direction if iswall(mapobjplayerx xoffsetplayery yoffset) return false else if (playerx xoffsetplayery yoffsetin stars there is star in the waysee if the player can push it if not isblocked(mapobjgamestateobjplayerx (xoffset* )playery (yoffset* )) move the star ind stars index((playerx xoffsetplayery yoffset) stars[ind(stars[ind][ xoffsetstars[ind][ yoffset else return false move the player upwards gamestateobj['player'(playerx xoffsetplayery yoffset return true def startscreen() """display the start screen (which has the title and instructions until the player presses key returns none "" position the title image titlerect imagesdict['title'get_rect( topcoord topcoord tracks where to position the top of the text titlerect top topcoord titlerect centerx half_winwidth topcoord +titlerect height unfortunatelypygame' font text system only shows one line at timeso we can' use strings with \ newline characters in them so we will use list with each line in it instructiontext ['push the stars over the marks ' 'arrow keys to movewasd for camera controlp to change character ' 'backspace to reset levelesc to quit ' ' for next levelb to go back level ' start with drawing blank color to the entire window