Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str If CompareLt AttributeLoad AttributeLoad NameLoad attr attr Num body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign SubscriptStore NameLoad Index Str UnaryOpUSub SubscriptLoad NameLoad Index Str orelse If CompareGt AttributeLoad AttributeLoad NameLoad attr attr Num body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign SubscriptStore NameLoad Index Str UnaryOpUSub SubscriptLoad NameLoad Index Str If CompareLt AttributeLoad AttributeLoad NameLoad attr attr Num body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign SubscriptStore NameLoad Index Str UnaryOpUSub SubscriptLoad NameLoad Index Str orelse If CompareGt AttributeLoad AttributeLoad NameLoad attr attr Num body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign SubscriptStore NameLoad Index Str UnaryOpUSub SubscriptLoad NameLoad Index Str decorator_list decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num BinOpSub NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num BinOpSub NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Dict Str Str Call AttributeLoad NameLoad attr Num Num Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Num Assign NameStore Num While Num body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareIn AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad body Print Str Call AttributeLoad NameLoad attr Print Str BinOpMult BinOpDiv Call NameLoad NameLoad BinOpMult NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd NameStore NameLoad AugAssignAdd NameStore Num
N/A N/A os N/A sys N/A random N/A pygame N/A pygame.time pygame.locals * N/A N/A N/A pygame init N/A win N/A N/A N/A pygame display set_mode N/A 600 600 N/A N/A ww wh N/A N/A win get_size N/A img N/A N/A N/A pygame image load examples/noisy/ball.png BouncySprite N/A N/A N/A pygame sprite Sprite N/A update N/A N/A self dt N/A N/A N/A p N/A self properties N/A N/A N/A self rect x N/A p N/A dx N/A N/A N/A self rect y N/A p N/A dy N/A N/A N/A N/A self rect left 0 N/A N/A N/A N/A self rect left 0 N/A N/A p N/A dx N/A N/A p N/A dx N/A N/A N/A N/A N/A self rect right 600 N/A N/A N/A N/A self rect right 600 N/A N/A p N/A dx N/A N/A p N/A dx N/A N/A N/A N/A self rect bottom 0 N/A N/A N/A N/A self rect bottom 0 N/A N/A p N/A dy N/A N/A p N/A dy N/A N/A N/A N/A N/A self rect top 600 N/A N/A N/A N/A self rect top 600 N/A N/A p N/A dy N/A N/A p N/A dy N/A N/A N/A group N/A N/A N/A pygame sprite Group N/A numsprites N/A int N/A N/A sys argv N/A 1 N/A N/A iw ih N/A N/A img get_size N/A i N/A range numsprites N/A N/A x N/A N/A random randint 0 N/A ww iw N/A y N/A N/A random randint 0 N/A wh ih N/A s N/A BouncySprite group N/A N/A s image img N/A N/A s rect N/A N/A pygame Rect x y iw ih N/A N/A s properties N/A dx dy N/A N/A random randint -10 10 N/A N/A random randint -10 10 N/A clock N/A N/A N/A pygame time Clock N/A t 0 N/A numframes 0 N/A 1 N/A N/A dt N/A N/A clock tick N/A event N/A N/A N/A pygame event get N/A N/A N/A N/A event type N/A QUIT KEYDOWN MOUSEBUTTONDOWN N/A N/A FPS: N/A N/A clock get_fps N/A us per sprite: N/A N/A N/A float t N/A numsprites numframes 1000 N/A N/A N/A sys exit 0 N/A N/A N/A group update dt N/A N/A N/A win fill N/A 0 0 0 N/A N/A N/A group draw win N/A N/A N/A N/A pygame display flip N/A t dt N/A numframes 1