Example #1
0
    def draw(self):

        self.drawlasttime = time.time()

        self.scr.fill((255, 255, 255))

        acomplex.atriangle(self.scr, (0, 255, 0), [self.x, self.y],
                           15,
                           self.rot - 90,
                           usecenter=1)

        self.drawnowtime = time.time()
        self.loopnow = self.drawnowtime

        fps.calcfps(self)

        self.looplast = time.time()

        if self.debug - 1:
            fps.printfps(self)

        if self.debugall - 1:
            fps.printall(self)

        p.display.flip()
Example #2
0
	def draw( self ):

		self.s.fill( ( 0, 42, 32 ) )

		for e in [ e for e in self.entitylist if e != self.player ]:
			e.type.draw(  )

		self.player.type.draw(  )
		
		Messages.message( self.s, len( self.entitylist ), [ 10, 50 ], ( 200, 200, 0 ) )

		self.loopnow = time.time(  )
		fps.calcfps( self )
		fps.printfps( self )
		self.looplast = time.time(  )

		with self.screenlock:
			p.display.flip(  )
Example #3
0
    def draw(self):

        self.s.fill((0, 42, 32))

        for e in [e for e in self.entitylist if e != self.player]:
            e.type.draw()

        self.player.type.draw()

        Messages.message(self.s, len(self.entitylist), [10, 50], (200, 200, 0))

        self.loopnow = time.time()
        fps.calcfps(self)
        fps.printfps(self)
        self.looplast = time.time()

        with self.screenlock:
            p.display.flip()
Example #4
0
	def draw( self ):

		self.drawlasttime = time.time(  )


		self.scr.fill( ( 255, 255, 255 ) )

		acomplex.atriangle( self.scr, ( 0, 255, 0 ), [ self.x, self.y ], 15,
			self.rot - 90, usecenter=1 )

		self.drawnowtime = time.time(  )
		self.loopnow = self.drawnowtime

		fps.calcfps( self )

		self.looplast = time.time(  )

		if self.debug - 1:
			fps.printfps( self )

		if self.debugall - 1:
			fps.printall( self )

		p.display.flip(  )