Esempio n. 1
0
    def __init__(self):
        base.setBackgroundColor(.2, .2, .2)
        base.camLens.setFov(75)
        base.camLens.setNear(0.01)
        base.disableMouse()

        base.setFrameRateMeter(True)
        render.setShaderAuto()
        self.console = panda3dIOClass(self)

        #		self.cross = DirectFrame(
        #			frameSize = (-.5, .5, -.5, .5),
        #			scale = 0.02,
        #			frameColor = Vec4(0, 0, 0, 1),
        #			)

        self.heldIcon = DirectFrame(
            parent=base.a2dBottomRight,
            pos=(-0.25, 0, 0.2),
            frameSize=(-0.2, 0.2, -.14, .14),
            scale=1.0,
            frameColor=Vec4(0, 0, 0, 1),
        )

        self.map = map()
        global defaultShowCCD
        self.map.defaultShowCCD = defaultShowCCD

        base.accept("update_hud", self.updateHud)
        base.accept("clear_hud", self.clearHud)
Esempio n. 2
0
	def __init__(self):
		base.setBackgroundColor(.2, .2, .2)
		base.camLens.setFov(75)
		base.camLens.setNear(0.01)
		base.disableMouse()
		
		base.setFrameRateMeter(True)
		render.setShaderAuto()
		self.console = panda3dIOClass(self)
		
#		self.cross = DirectFrame(
#			frameSize = (-.5, .5, -.5, .5),
#			scale = 0.02,
#			frameColor = Vec4(0, 0, 0, 1),
#			)
		
		self.heldIcon = DirectFrame(
			parent = base.a2dBottomRight,
			pos = (-0.25, 0, 0.2),
			frameSize = (-0.2, 0.2, -.14, .14),
			scale = 1.0,
			frameColor = Vec4(0, 0, 0, 1),
			)
		
		
		
		self.map = map()
		global defaultShowCCD
		self.map.defaultShowCCD = defaultShowCCD
		
		base.accept("update_hud", self.updateHud)
		base.accept("clear_hud", self.clearHud)
Esempio n. 3
0
    def setMap(self, v):
        if v == "man":
            return """
    load the specified map
    use without the .py-extension of the map-files
    see 'maps' for a list of all available maps"""

        #from system.map import *
        #worldManager = odeWorldManager()
        self.map = map()
        self.map.create()

        return "copperode map loaded"
Esempio n. 4
0
    def setMap(self, v):
        if v == "man":
            return """
    load the specified map
    use without the .py-extension of the map-files
    see 'maps' for a list of all available maps"""

        # from system.map import *
        # worldManager = odeWorldManager()
        self.map = map()
        self.map.create()

        return "copperode map loaded"