Beispiel #1
0
	def init( self ):

		#self.size = ( 1900, 1000 )
		self.size = ( 800, 600 )
		self.s = p.display.set_mode( self.size )
		self.screenlock = threading.Lock(  )		

		self.timer = 0
		
		fps.init( self )
		self.e_init(  )
		self.events = [  ]

		self.player = self.e_mkEntity(
				{
				"parent" : self,
				"type" : "JUMPABLE_SHADE_POLYGON_PARTICLE",
				"color" : ( 0, 200, 142 ),
				"pos" : [ 100, 100, 20 ],
				"gon" : 5,
				"addtime" : 3,
				"rotspeed" : 2.2,
				"lenght" : 10,
				"vector" :
					{
					"speed" : 3.4,
					},
				}
			)
Beispiel #2
0
    def init(self):

        #self.size = ( 1900, 1000 )
        self.size = (800, 600)
        self.s = p.display.set_mode(self.size)
        self.screenlock = threading.Lock()

        self.timer = 0

        fps.init(self)
        self.e_init()
        self.events = []

        self.player = self.e_mkEntity({
            "parent": self,
            "type": "JUMPABLE_SHADE_POLYGON_PARTICLE",
            "color": (0, 200, 142),
            "pos": [100, 100, 20],
            "gon": 5,
            "addtime": 3,
            "rotspeed": 2.2,
            "lenght": 10,
            "vector": {
                "speed": 3.4,
            },
        })
Beispiel #3
0
	def __init__( self ):

		self.size = ( 600, 400 )
		self.scr = p.display.set_mode( self.size )
		self.active = True
		self.vx = self.vy = 0
		self.x, self.y = [ i // 2 for i in self.size ]

		self.rot = 0
		self.timer = 0

		self.init(  )
		fps.init( self )