示例#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)
示例#2
0
文件: main.py 项目: nano13/fps_game
	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)
示例#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"
示例#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"