当前位置: 首页>>代码示例>>Python>>正文


Python ItemGlobals.getJumpAnimInfo方法代码示例

本文整理汇总了Python中pirates.inventory.ItemGlobals.getJumpAnimInfo方法的典型用法代码示例。如果您正苦于以下问题:Python ItemGlobals.getJumpAnimInfo方法的具体用法?Python ItemGlobals.getJumpAnimInfo怎么用?Python ItemGlobals.getJumpAnimInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pirates.inventory.ItemGlobals的用法示例。


在下文中一共展示了ItemGlobals.getJumpAnimInfo方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: landRun

# 需要导入模块: from pirates.inventory import ItemGlobals [as 别名]
# 或者: from pirates.inventory.ItemGlobals import getJumpAnimInfo [as 别名]
    def landRun(self):
        self.fsmLock.acquire()

        try:
            if not self.landRunIval:
                animInfo = ItemGlobals.getJumpAnimInfo(self.av.getCurrentWeapon())
                startFrame = animInfo[3] + 1
                endFrame = startFrame + 5
                self.landRunIval = self.av.actorInterval(animInfo[0], startFrame = startFrame, endFrame = endFrame, blendInT = 0.0, blendOutT = 0.14999999999999999)

            self.landRunIval.start()
        finally:
            self.fsmLock.release()
开发者ID:XamarinDeveloper,项目名称:Pirates-Online-Source,代码行数:15,代码来源:MotionFSM.py

示例2: land

# 需要导入模块: from pirates.inventory import ItemGlobals [as 别名]
# 或者: from pirates.inventory.ItemGlobals import getJumpAnimInfo [as 别名]
    def land(self):
        self.fsmLock.acquire()

        try:
            animInfo = ItemGlobals.getJumpAnimInfo(self.av.getCurrentWeapon())
            if self.landIval:
                self.landIval.finish()

            startFrame = animInfo[3]
            endFrame = animInfo[4]
            self.landIval = self.av.actorInterval(animInfo[0], startFrame = startFrame, endFrame = endFrame, blendInT = 0.0, blendOutT = self.BLENDAMT * 0.5)
            self.landIval.start()
        finally:
            self.fsmLock.release()
开发者ID:XamarinDeveloper,项目名称:Pirates-Online-Source,代码行数:16,代码来源:MotionFSM.py

示例3: jump

# 需要导入模块: from pirates.inventory import ItemGlobals [as 别名]
# 或者: from pirates.inventory.ItemGlobals import getJumpAnimInfo [as 别名]
    def jump(self):
        self.fsmLock.acquire()

        try:
            animInfo = ItemGlobals.getJumpAnimInfo(self.av.getCurrentWeapon())
            if self.state == 'Idle':
                startFrame = animInfo[1]
                endFrame = animInfo[3]
                if self.idleJumpIval:
                    self.idleJumpIval.finish()

                self.idleJumpIval = self.av.actorInterval(animInfo[0], startFrame = startFrame, endFrame = endFrame, playRate = 1.5, blendInT = 0.0, blendOutT = self.BLENDAMT * 0.5)
                self.idleJumpIval.start()
            else:
                startFrame = animInfo[2]
                endFrame = animInfo[3]
                self.av.play(animInfo[0], fromFrame = startFrame, toFrame = endFrame, blendInT = self.BLENDAMT * 0.5, blendOutT = self.BLENDAMT * 0.5)
        finally:
            self.fsmLock.release()
开发者ID:XamarinDeveloper,项目名称:Pirates-Online-Source,代码行数:21,代码来源:MotionFSM.py


注:本文中的pirates.inventory.ItemGlobals.getJumpAnimInfo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。