Module ImportFrom alias Import alias Import alias Import alias ImportFrom alias Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore BinOpMult NameLoad Num Assign TupleStore NameStore NameStore NameStore TupleLoad Dict Dict Dict Assign NameStore TupleLoad TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str Assign NameStore TupleLoad Str Str Assign NameStore TupleLoad Str Str FunctionDef arguments args defaults body Global identifier identifier Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign SubscriptStore NameLoad Index Str TupleLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Str orelse Assign NameStore Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num BinOpSub Call NameLoad NameLoad Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num BinOpSub Call NameLoad NameLoad Num Assign SubscriptStore NameLoad Index Str TupleLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num attr Assign NameStore Call AttributeLoad NameLoad attr Num BinOpSub Call NameLoad NameLoad Num Assign SubscriptStore NameLoad Index Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index NameLoad attr Num Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index NameLoad attr Assign SubscriptStore NameLoad Index Str TupleLoad Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Assign SubscriptStore NameLoad Index Str TupleLoad Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Num Assign NameStore Call NameLoad ListLoad Num Num Num Num Assign NameStore Num Assign NameStore Call NameLoad BinOpMult NameLoad Num Assign NameStore Call NameLoad BinOpDiv BinOpSub NameLoad Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr Num Assign NameStore Call NameLoad BinOpDiv BinOpSub NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Num Assign NameStore Call NameLoad BinOpMult NameLoad Num Assign NameStore Num Assign NameStore BinOpSub Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Assign NameStore Dict Str Str Num Num While NameLoad body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpOr CompareEq AttributeLoad NameLoad attr NameLoad BoolOpAnd CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If BoolOpAnd CompareEq AttributeLoad NameLoad attr NameLoad BoolOpOr CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Return Dict Str Str Str BinOpAdd NameLoad SubscriptLoad NameLoad Index Str NameLoad NameLoad If CompareEq BinOpMod BinOpAdd NameLoad Num Num Num body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod BinOpAdd NameLoad Num Num Assign NameStore UnaryOpUSub BinOpMod BinOpAdd UnaryOpUSub NameLoad Num NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str TupleLoad Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad TupleLoad NameLoad BinOpAdd NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameStore NameStore Num Assign NameStore SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore TupleLoad Call NameLoad BinOpMult NameLoad Num SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore BinOpSub Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore ListLoad Dict Str Str BinOpAdd NameLoad Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Dict Str Str BinOpAdd BinOpAdd NameLoad Num BinOpDiv NameLoad Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Assign NameStore ListLoad Dict Str Str BinOpAdd NameLoad Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Dict Str Str BinOpAdd BinOpAdd NameLoad Num BinOpDiv NameLoad Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad While NameLoad body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpOr CompareEq AttributeLoad NameLoad attr NameLoad BoolOpAnd CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If BoolOpAnd CompareEq AttributeLoad NameLoad attr NameLoad BoolOpOr CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body If CompareGt NameLoad BinOpMult Num Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr body Assign NameStore NameLoad Assign NameStore NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Assign NameStore Call NameLoad Dict Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad If SubscriptLoad NameLoad Index Num body Return Dict Str Str Str Str Str Str Str NameLoad SubscriptLoad NameLoad Index Num NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad BinOpDiv Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr Num For NameStore NameLoad body Assign NameStore BinOpAdd SubscriptLoad NameLoad Index Str BinOpDiv Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr Num If CompareLtELt NameLoad NameLoad BinOpAdd NameLoad Num body AugAssignAdd NameStore Num Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr If CompareEq BinOpMod BinOpAdd NameLoad Num Num Num body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod BinOpAdd NameLoad Num Num Assign NameStore UnaryOpUSub BinOpMod BinOpAdd UnaryOpUSub NameLoad Num NameLoad If BoolOpAnd CompareLt NameLoad NameLoad UnaryOpNot NameLoad body AugAssignAdd NameStore NameLoad If NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad attr AugAssignAdd NameStore Call NameLoad NameLoad BinOpSub BinOpSub NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body AugAssignAdd SubscriptStore NameLoad Index Str NameLoad AugAssignAdd SubscriptStore NameLoad Index Str NameLoad If CompareLtLt Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Num body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num If CompareLt SubscriptLoad SubscriptLoad NameLoad Index Num Index Str UnaryOpUSub Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str TupleLoad Num Num For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Num TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Num TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore BinOpMult NameLoad Num Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Num Assign NameStore SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr While NameLoad body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpOr CompareEq AttributeLoad NameLoad attr NameLoad BoolOpAnd CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If BoolOpAnd CompareEq AttributeLoad NameLoad attr NameLoad BoolOpOr CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body If CompareGtE BinOpAdd NameLoad NameLoad BinOpSub NameLoad Num body Return If CompareLt BinOpAdd NameLoad NameLoad BinOpSub NameLoad Num body AugAssignAdd NameStore Call NameLoad NameLoad BinOpSub BinOpSub NameLoad NameLoad NameLoad If CompareLt NameLoad Num body AugAssignAdd NameStore NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str TupleLoad Num Num For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Num TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Num TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Num TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq Call NameLoad SubscriptLoad NameLoad Index Str Num body AugAssignMult SubscriptStore NameLoad Index Str Num If CompareEq SubscriptLoad NameLoad Index Str Num body AugAssignAdd SubscriptStore NameLoad Index Str Num orelse AugAssignSub SubscriptStore NameLoad Index Str Num decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Call NameLoad BinOpSub BinOpMult NameLoad Num NameLoad AugAssignAdd NameStore Call NameLoad BinOpMult NameLoad Num Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr Assign NameStore BinOpAdd NameLoad Num Return ListLoad Dict Str Str NameLoad BinOpSub NameLoad NameLoad Dict Str Str NameLoad BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Num For NameStore NameLoad body AugAssignAdd NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad attr Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad TupleLoad NameLoad BinOpMult NameLoad Num AugAssignAdd NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr If CompareGtE BinOpAdd SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str BinOpSub NameLoad Num body Return ListLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad If BoolOpOr NameLoad NameLoad body Return ListLoad NameLoad NameLoad Return ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpOr CompareEq AttributeLoad NameLoad attr Num CompareEq AttributeLoad NameLoad attr Num body Return NameLoad Assign TupleStore NameStore NameStore TupleLoad BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore TupleLoad BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr body For NameStore Call NameLoad AttributeLoad NameLoad attr body If BoolOpAnd SubscriptLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad NameLoad Index BinOpAdd NameLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad NameLoad Index BinOpAdd NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad For NameStore Call NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Index Num Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A itertools cycle N/A random N/A sys N/A pygame pygame.locals * N/A FPS 30 N/A SCREENWIDTH 288 N/A SCREENHEIGHT 512 N/A PIPEGAPSIZE 100 N/A BASEY N/A SCREENHEIGHT 0.79 N/A N/A IMAGES SOUNDS HITMASKS N/A N/A N/A N/A N/A PLAYERS_LIST N/A N/A assets/sprites/redbird-upflap.png assets/sprites/redbird-midflap.png assets/sprites/redbird-downflap.png N/A assets/sprites/bluebird-upflap.png assets/sprites/bluebird-midflap.png assets/sprites/bluebird-downflap.png N/A assets/sprites/yellowbird-upflap.png assets/sprites/yellowbird-midflap.png assets/sprites/yellowbird-downflap.png N/A BACKGROUNDS_LIST N/A assets/sprites/background-day.png assets/sprites/background-night.png N/A PIPES_LIST N/A assets/sprites/pipe-green.png assets/sprites/pipe-red.png main N/A N/A N/A N/A N/A SCREEN FPSCLOCK N/A N/A N/A pygame init N/A FPSCLOCK N/A N/A N/A pygame time Clock N/A SCREEN N/A N/A N/A pygame display set_mode N/A SCREENWIDTH SCREENHEIGHT N/A N/A N/A N/A pygame display set_caption Flappy Bird N/A N/A IMAGES N/A numbers N/A N/A N/A N/A N/A N/A pygame image load assets/sprites/0.png convert_alpha N/A N/A N/A N/A N/A pygame image load assets/sprites/1.png convert_alpha N/A N/A N/A N/A N/A pygame image load assets/sprites/2.png convert_alpha N/A N/A N/A N/A N/A pygame image load assets/sprites/3.png convert_alpha N/A N/A N/A N/A N/A pygame image load assets/sprites/4.png convert_alpha N/A N/A N/A N/A N/A pygame image load assets/sprites/5.png convert_alpha N/A N/A N/A N/A N/A pygame image load assets/sprites/6.png convert_alpha N/A N/A N/A N/A N/A pygame image load assets/sprites/7.png convert_alpha N/A N/A N/A N/A N/A pygame image load assets/sprites/8.png convert_alpha N/A N/A N/A N/A N/A pygame image load assets/sprites/9.png convert_alpha N/A N/A IMAGES N/A gameover N/A N/A N/A N/A N/A pygame image load assets/sprites/gameover.png convert_alpha N/A N/A IMAGES N/A message N/A N/A N/A N/A N/A pygame image load assets/sprites/message.png convert_alpha N/A N/A IMAGES N/A base N/A N/A N/A N/A N/A pygame image load assets/sprites/base.png convert_alpha N/A N/A win N/A sys platform N/A N/A soundExt .wav N/A N/A soundExt .ogg N/A N/A SOUNDS N/A die N/A N/A N/A pygame mixer Sound N/A assets/audio/die soundExt N/A N/A SOUNDS N/A hit N/A N/A N/A pygame mixer Sound N/A assets/audio/hit soundExt N/A N/A SOUNDS N/A point N/A N/A N/A pygame mixer Sound N/A assets/audio/point soundExt N/A N/A SOUNDS N/A swoosh N/A N/A N/A pygame mixer Sound N/A assets/audio/swoosh soundExt N/A N/A SOUNDS N/A wing N/A N/A N/A pygame mixer Sound N/A assets/audio/wing soundExt N/A True N/A N/A randBg N/A N/A random randint 0 N/A N/A len BACKGROUNDS_LIST 1 N/A N/A IMAGES N/A background N/A N/A N/A N/A N/A pygame image load N/A BACKGROUNDS_LIST N/A randBg convert N/A randPlayer N/A N/A random randint 0 N/A N/A len PLAYERS_LIST 1 N/A N/A IMAGES N/A player N/A N/A N/A N/A N/A N/A pygame image load N/A N/A PLAYERS_LIST N/A randPlayer N/A 0 convert_alpha N/A N/A N/A N/A N/A pygame image load N/A N/A PLAYERS_LIST N/A randPlayer N/A 1 convert_alpha N/A N/A N/A N/A N/A pygame image load N/A N/A PLAYERS_LIST N/A randPlayer N/A 2 convert_alpha N/A pipeindex N/A N/A random randint 0 N/A N/A len PIPES_LIST 1 N/A N/A IMAGES N/A pipe N/A N/A N/A N/A pygame transform rotate N/A N/A N/A N/A N/A pygame image load N/A PIPES_LIST N/A pipeindex convert_alpha 180 N/A N/A N/A N/A N/A pygame image load N/A PIPES_LIST N/A pipeindex convert_alpha N/A N/A HITMASKS N/A pipe N/A N/A getHitmask N/A N/A IMAGES N/A pipe N/A 0 N/A getHitmask N/A N/A IMAGES N/A pipe N/A 1 N/A N/A HITMASKS N/A player N/A N/A getHitmask N/A N/A IMAGES N/A player N/A 0 N/A getHitmask N/A N/A IMAGES N/A player N/A 1 N/A getHitmask N/A N/A IMAGES N/A player N/A 2 N/A movementInfo N/A showWelcomeAnimation N/A crashInfo N/A mainGame movementInfo N/A N/A showGameOverScreen crashInfo N/A showWelcomeAnimation N/A N/A N/A N/A N/A Shows welcome screen animation of flappy bird N/A playerIndex 0 N/A playerIndexGen N/A cycle N/A 0 1 2 1 N/A loopIter 0 N/A playerx N/A int N/A SCREENWIDTH 0.2 N/A playery N/A int N/A N/A SCREENHEIGHT N/A N/A N/A N/A IMAGES N/A player N/A 0 get_height 2 N/A messagex N/A int N/A N/A SCREENWIDTH N/A N/A N/A IMAGES N/A message get_width 2 N/A messagey N/A int N/A SCREENHEIGHT 0.12 N/A basex 0 N/A baseShift N/A N/A N/A N/A IMAGES N/A base get_width N/A N/A N/A IMAGES N/A background get_width N/A playerShmVals N/A val dir 0 1 N/A True N/A N/A event N/A N/A N/A pygame event get N/A N/A N/A N/A N/A event type QUIT N/A N/A N/A event type KEYDOWN N/A N/A event key K_ESCAPE N/A N/A N/A N/A pygame quit N/A N/A N/A sys exit N/A N/A N/A N/A event type KEYDOWN N/A N/A N/A event key K_SPACE N/A N/A event key K_UP N/A N/A N/A N/A N/A SOUNDS N/A wing play N/A N/A playery basex playerIndexGen N/A playery N/A playerShmVals N/A val basex playerIndexGen N/A N/A N/A N/A loopIter 1 5 0 N/A N/A playerIndex N/A N/A playerIndexGen next N/A loopIter N/A N/A loopIter 1 30 N/A basex N/A N/A N/A N/A basex 4 baseShift N/A N/A playerShm playerShmVals N/A N/A N/A SCREEN blit N/A IMAGES N/A background N/A 0 0 N/A N/A N/A SCREEN blit N/A N/A IMAGES N/A player N/A playerIndex N/A playerx N/A playery N/A playerShmVals N/A val N/A N/A N/A SCREEN blit N/A IMAGES N/A message N/A messagex messagey N/A N/A N/A SCREEN blit N/A IMAGES N/A base N/A basex BASEY N/A N/A N/A N/A pygame display update N/A N/A N/A FPSCLOCK tick FPS N/A mainGame N/A N/A movementInfo N/A N/A N/A score playerIndex loopIter 0 N/A playerIndexGen N/A movementInfo N/A playerIndexGen N/A N/A playerx playery N/A N/A int N/A SCREENWIDTH 0.2 N/A movementInfo N/A playery N/A basex N/A movementInfo N/A basex N/A baseShift N/A N/A N/A N/A IMAGES N/A base get_width N/A N/A N/A IMAGES N/A background get_width N/A newPipe1 N/A getRandomPipe N/A newPipe2 N/A getRandomPipe N/A upperPipes N/A N/A x y N/A SCREENWIDTH 200 N/A N/A newPipe1 N/A 0 N/A y N/A x y N/A N/A SCREENWIDTH 200 N/A SCREENWIDTH 2 N/A N/A newPipe2 N/A 0 N/A y N/A lowerPipes N/A N/A x y N/A SCREENWIDTH 200 N/A N/A newPipe1 N/A 1 N/A y N/A x y N/A N/A SCREENWIDTH 200 N/A SCREENWIDTH 2 N/A N/A newPipe2 N/A 1 N/A y N/A pipeVelX -4 N/A playerVelY -9 N/A playerMaxVelY 10 N/A playerMinVelY -8 N/A playerAccY 1 N/A playerFlapAcc -9 N/A playerFlapped False N/A True N/A N/A event N/A N/A N/A pygame event get N/A N/A N/A N/A N/A event type QUIT N/A N/A N/A event type KEYDOWN N/A N/A event key K_ESCAPE N/A N/A N/A N/A pygame quit N/A N/A N/A sys exit N/A N/A N/A N/A event type KEYDOWN N/A N/A N/A event key K_SPACE N/A N/A event key K_UP N/A N/A N/A playery N/A -2 N/A N/A N/A N/A IMAGES N/A player N/A 0 get_height N/A N/A playerVelY playerFlapAcc N/A playerFlapped True N/A N/A N/A N/A SOUNDS N/A wing play N/A crashTest N/A checkCrash N/A x y index playerx playery playerIndex upperPipes lowerPipes N/A N/A crashTest N/A 0 N/A N/A N/A y groundCrash basex upperPipes lowerPipes score playerVelY playery N/A crashTest N/A 1 basex upperPipes lowerPipes score playerVelY N/A playerMidPos N/A playerx N/A N/A N/A N/A N/A IMAGES N/A player N/A 0 get_width 2 N/A pipe upperPipes N/A N/A pipeMidPos N/A N/A pipe N/A x N/A N/A N/A N/A N/A IMAGES N/A pipe N/A 0 get_width 2 N/A N/A pipeMidPos playerMidPos N/A pipeMidPos 4 N/A N/A score 1 N/A N/A N/A N/A SOUNDS N/A point play N/A N/A N/A N/A loopIter 1 3 0 N/A N/A playerIndex N/A N/A playerIndexGen next N/A loopIter N/A N/A loopIter 1 30 N/A basex N/A N/A N/A N/A basex 100 baseShift N/A N/A N/A playerVelY playerMaxVelY N/A playerFlapped N/A N/A playerVelY playerAccY N/A playerFlapped N/A N/A playerFlapped False N/A playerHeight N/A N/A N/A N/A IMAGES N/A player N/A playerIndex get_height N/A playery N/A min playerVelY N/A N/A BASEY playery playerHeight N/A N/A uPipe lPipe N/A zip upperPipes lowerPipes N/A N/A N/A uPipe N/A x pipeVelX N/A N/A lPipe N/A x pipeVelX N/A N/A 0 N/A N/A upperPipes N/A 0 N/A x 5 N/A N/A newPipe N/A getRandomPipe N/A N/A N/A upperPipes append N/A newPipe N/A 0 N/A N/A N/A lowerPipes append N/A newPipe N/A 1 N/A N/A N/A N/A upperPipes N/A 0 N/A x N/A N/A N/A N/A N/A IMAGES N/A pipe N/A 0 get_width N/A N/A N/A N/A upperPipes pop 0 N/A N/A N/A lowerPipes pop 0 N/A N/A N/A SCREEN blit N/A IMAGES N/A background N/A 0 0 N/A N/A uPipe lPipe N/A zip upperPipes lowerPipes N/A N/A N/A N/A SCREEN blit N/A N/A IMAGES N/A pipe N/A 0 N/A N/A uPipe N/A x N/A uPipe N/A y N/A N/A N/A SCREEN blit N/A N/A IMAGES N/A pipe N/A 1 N/A N/A lPipe N/A x N/A lPipe N/A y N/A N/A N/A SCREEN blit N/A IMAGES N/A base N/A basex BASEY N/A N/A showScore score N/A N/A N/A SCREEN blit N/A N/A IMAGES N/A player N/A playerIndex N/A playerx playery N/A N/A N/A N/A pygame display update N/A N/A N/A FPSCLOCK tick FPS N/A showGameOverScreen N/A N/A crashInfo N/A N/A N/A crashes the player down ans shows gameover image N/A score N/A crashInfo N/A score N/A playerx N/A SCREENWIDTH 0.2 N/A playery N/A crashInfo N/A y N/A playerHeight N/A N/A N/A N/A IMAGES N/A player N/A 0 get_height N/A playerVelY N/A crashInfo N/A playerVelY N/A playerAccY 2 N/A basex N/A crashInfo N/A basex N/A N/A upperPipes lowerPipes N/A N/A crashInfo N/A upperPipes N/A crashInfo N/A lowerPipes N/A N/A N/A N/A SOUNDS N/A hit play N/A N/A N/A crashInfo N/A groundCrash N/A N/A N/A N/A N/A SOUNDS N/A die play N/A True N/A N/A event N/A N/A N/A pygame event get N/A N/A N/A N/A N/A event type QUIT N/A N/A N/A event type KEYDOWN N/A N/A event key K_ESCAPE N/A N/A N/A N/A pygame quit N/A N/A N/A sys exit N/A N/A N/A N/A event type KEYDOWN N/A N/A N/A event key K_SPACE N/A N/A event key K_UP N/A N/A N/A N/A playery playerHeight N/A BASEY 1 N/A N/A N/A N/A N/A playery playerHeight N/A BASEY 1 N/A N/A playery N/A min playerVelY N/A N/A BASEY playery playerHeight N/A N/A playerVelY 15 N/A N/A playerVelY playerAccY N/A N/A N/A SCREEN blit N/A IMAGES N/A background N/A 0 0 N/A N/A uPipe lPipe N/A zip upperPipes lowerPipes N/A N/A N/A N/A SCREEN blit N/A N/A IMAGES N/A pipe N/A 0 N/A N/A uPipe N/A x N/A uPipe N/A y N/A N/A N/A SCREEN blit N/A N/A IMAGES N/A pipe N/A 1 N/A N/A lPipe N/A x N/A lPipe N/A y N/A N/A N/A SCREEN blit N/A IMAGES N/A base N/A basex BASEY N/A N/A showScore score N/A N/A N/A SCREEN blit N/A N/A IMAGES N/A player N/A 1 N/A playerx playery N/A N/A N/A FPSCLOCK tick FPS N/A N/A N/A N/A pygame display update N/A playerShm N/A N/A playerShm N/A N/A N/A oscillates the value of playerShm['val'] between 8 and -8 N/A N/A N/A abs N/A playerShm N/A val 8 N/A N/A N/A playerShm N/A dir -1 N/A N/A N/A playerShm N/A dir 1 N/A N/A N/A playerShm N/A val 1 N/A N/A N/A playerShm N/A val 1 N/A getRandomPipe N/A N/A N/A N/A N/A returns a randomly generated pipe N/A gapY N/A N/A random randrange 0 N/A int N/A N/A BASEY 0.6 PIPEGAPSIZE N/A gapY N/A int N/A BASEY 0.2 N/A pipeHeight N/A N/A N/A N/A IMAGES N/A pipe N/A 0 get_height N/A pipeX N/A SCREENWIDTH 10 N/A N/A N/A x y pipeX N/A gapY pipeHeight N/A x y pipeX N/A gapY PIPEGAPSIZE N/A showScore N/A N/A score N/A N/A N/A displays score in center of screen N/A scoreDigits N/A N/A int x N/A x N/A list N/A str score N/A totalWidth 0 N/A digit scoreDigits N/A N/A totalWidth N/A N/A N/A N/A IMAGES N/A numbers N/A digit get_width N/A Xoffset N/A N/A SCREENWIDTH totalWidth 2 N/A digit scoreDigits N/A N/A N/A N/A SCREEN blit N/A N/A IMAGES N/A numbers N/A digit N/A Xoffset N/A SCREENHEIGHT 0.1 N/A Xoffset N/A N/A N/A N/A IMAGES N/A numbers N/A digit get_width N/A checkCrash N/A N/A player upperPipes lowerPipes N/A N/A N/A returns True if player collders with base or pipes. N/A pi N/A player N/A index N/A N/A player N/A w N/A N/A N/A N/A IMAGES N/A player N/A 0 get_width N/A N/A player N/A h N/A N/A N/A N/A IMAGES N/A player N/A 0 get_height N/A N/A N/A N/A player N/A y N/A player N/A h N/A BASEY 1 N/A N/A N/A True True N/A N/A playerRect N/A N/A pygame Rect N/A player N/A x N/A player N/A y N/A player N/A w N/A player N/A h N/A pipeW N/A N/A N/A N/A IMAGES N/A pipe N/A 0 get_width N/A pipeH N/A N/A N/A N/A IMAGES N/A pipe N/A 0 get_height N/A N/A uPipe lPipe N/A zip upperPipes lowerPipes N/A N/A uPipeRect N/A N/A pygame Rect N/A uPipe N/A x N/A uPipe N/A y pipeW pipeH N/A lPipeRect N/A N/A pygame Rect N/A lPipe N/A x N/A lPipe N/A y pipeW pipeH N/A pHitMask N/A N/A HITMASKS N/A player N/A pi N/A uHitmask N/A N/A HITMASKS N/A pipe N/A 0 N/A lHitmask N/A N/A HITMASKS N/A pipe N/A 1 N/A uCollide N/A pixelCollision playerRect uPipeRect pHitMask uHitmask N/A lCollide N/A pixelCollision playerRect lPipeRect pHitMask lHitmask N/A N/A uCollide lCollide N/A N/A N/A True False N/A N/A False False N/A pixelCollision N/A N/A rect1 rect2 hitmask1 hitmask2 N/A N/A N/A Checks if two objects collide and not just their rects N/A rect N/A N/A rect1 clip rect2 N/A N/A N/A N/A rect width 0 N/A N/A rect height 0 N/A N/A False N/A N/A x1 y1 N/A N/A N/A rect x N/A rect1 x N/A N/A rect y N/A rect1 y N/A N/A x2 y2 N/A N/A N/A rect x N/A rect2 x N/A N/A rect y N/A rect2 y N/A x N/A xrange N/A rect width N/A N/A y N/A xrange N/A rect height N/A N/A N/A N/A N/A hitmask1 N/A N/A x1 x N/A N/A y1 y N/A N/A hitmask2 N/A N/A x2 x N/A N/A y2 y N/A N/A True N/A False N/A getHitmask N/A N/A image N/A N/A N/A returns a hitmask using an image's alpha. N/A mask N/A N/A x N/A range N/A N/A image get_width N/A N/A N/A N/A mask append N/A N/A y N/A range N/A N/A image get_height N/A N/A N/A N/A N/A mask N/A x append N/A bool N/A N/A N/A image get_at N/A x y N/A 3 N/A mask N/A N/A N/A __name__ __main__ N/A N/A N/A main