Example #1
0
	def __init__(self, radius, linetype = None , color = None , position = None ) :
		if linetype is None : linetype = DEFAULT_LINETYPE
		if color is None : color = [1, 0, 0]
		if position is None : position = [0, 0, 0]

		#determine lines and write them as shape
		self.radius = radius
		shape.__init__(self, 16, [], linetype, color, position)
		self.size = self.get_size_from_radius()
	def __init__(self, r, ax, ay, az, px, py, pz):
		shape.__init__(self)
		self.radius = r
		self.axisvect = np.array([ax,ay,az]).reshape(3,1)
		self.axispoint = np.array([px,py,pz]).reshape(3,1)
Example #3
0
	def __init__(self, lines = [], linetype = DEFAULT_LINETYPE, color = [1, 0, 0], position = [0, 0, 0]) :
		shape.__init__(self, 1, lines, linetype, color, position)
		self.size = self.get_size()
Example #4
0
 def __init__(self, game, y, x):
     shape.__init__(self, y, x, shapes, game.map)
     self.keys = []
     self.jump = 0
     self.fall = 0
     self.game = game
Example #5
0
 def __init__(self, game, break_size):
     break_top = random.randint(game.height / 5,
                                game.height - game.height / 5 - break_size)
     shapes = [wall_creator(game.height, break_top, break_size)]
     shape.__init__(self, 0, game.width - 1, shapes, game.map)