示例#1
0
    def onInteract(self):
        
        if ('mass' not in self.data.keys()):
            if (self.x >= 153 and self.x <= 163):
                if (self.y >= 156 and self.y <= 166):
                    ret = Level3.update(1)
                    if (ret == True):
                        self.data['mass'] = 1
                        self.data['destroyOther'] = ['res/entities/3/Door3_1.xml', 'res/entities/3/Door3_2.xml']

        return self.data
示例#2
0
    def onInteract(self):

        if "mass" not in self.data.keys():
            if self.x >= 191 and self.x <= 201:
                if self.y >= 217 and self.y <= 227:
                    ret = Level3.update(2)
                    if ret == True:
                        self.data["mass"] = 1
                        self.data["destroyOther"] = ["res/entities/3/Door3_1.xml", "res/entities/3/Door3_2.xml"]

        return self.data