;ò v0@c@sXdkZdkTdkZdkZdkZdklZdkZdfd„ƒYZdS(N(s*(srandintsStarscBs,tZd„Zd„Zd„Zd„ZRS(Nc Csþg}tii\}} d|_x—t|iƒD]†}t ddƒ}|dd|dd|dd f}| |f}tt d |ƒt d | ƒddƒ}|i|||gƒq1W|id }|| ||f|_d|_d |_d |_dS( Ni iii(i<i#i2iidii(sstarssgfxsrectssizesscrwidesscrhighsselfsmaxstarssrangesxsrandintsvalscolorsspeedsRectsappendshalfsnumstarssdeadsodd( sselfsvalscolorsscrwidesstarsshalfsxsspeedsrectsscrhigh((sC/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/stars.pys__init__ s ' '   c CsättitiƒodSnt|ddƒ}t|dƒ}|i |}t t||i dƒdƒ}||i joZt i|if\}}x?|i|i||i !D]\}}}|||ƒƒq°Wn||_ dS(Nf35.0f1.8i ii(s isinstancesgameshandlersgameinitsGameInitsintsfpsschangesminsselfsnumstarssmaxsmaxstarssgfxsdirtyslast_backgroundsDIRTYsBGDsstarssoddsrectsvelscol( sselfsfpssrectsBGDsnumstarssDIRTYsvelscolschange((sC/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/stars.pysrecalc_num_starss c Csé|ii\}}|ii|if\} }x3|i |i |i D]}|||dƒƒqEW|i |_ xi|i |i |i D]P\} \}}} | i||| _| i||| _|| | | ƒƒqˆW||_dS(Ni(sgfxsrects bottomrightsRsBssurfacesfillsdirtysFILLsDIRTYsselfsstarssoddsnumstarssss backgroundsxvelsyvelscolsleftstopslast_background( sselfs backgroundsgfxsBsyvelsssRsDIRTYsxvelscolsrectsFILL((sC/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/stars.pyserase_tick_draw+s cCs||ii\}}|ii}x*|i d|i D]}||dƒq3Wx*|i d|i D]}||dƒq`WdS(Nii( sgfxsrects bottomrightsRsBssurfacesfillsFILLsselfsstarssnumstarssss background(sselfs backgroundsgfxsBsssRsFILL((sC/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/stars.pyseraseall8s (s__name__s __module__s__init__srecalc_num_starsserase_tick_drawseraseall(((sC/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/stars.pysStars s   ( spygames pygame.localssgamesgfxsmathsrandomsrandintsgameinitsStars(sgfxsrandintsgameinitsgamespygamesStarssmath((sC/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/stars.pys?s