tileheight tilefloorheight cam_move_speed how many pixels per frame the camera moves the percentage of outdoor tiles that have additional decoration on themsuch as tree or rock outside_decoration_pct brightblue white ( bgcolor brightblue textcolor white up 'up down 'down left 'left right 'rightthese constants are used in various parts of the program the tilewidth and tileheight variables show that each of the tile images are pixels wide and pixels tall howeverthese tiles overlap with each other when drawn on the screen (this is explained later the tilefloorheight refers to the fact that the part of the tile that represents the floor is pixels tall here is diagram of the plain floor imagethe grassy tiles outside of the level' room will sometimes have extra decorations added to them (such as trees or rocksthe outside_decoration_pct constant shows what percentage of these tiles will randomly have these decorations def main() global fpsclockdisplaysurfimagesdicttilemappingoutsidedecomappingbasicfontplayerimagescurrentimage pygame initialization and basic set up of the global variables pygame init( fpsclock pygame time clock( because the surface object stored in displaysurf was returned