def initialize(self, args): argsdict = { "shapefn": ShootingGameObject.ShapeChange_None, "shapefnargs": { "radiusSpeed": 0, "pen": None, "brush": None, "memorydcs": None, "dcsize": None, "startimagenumber": 0, }, "afterremovefn": None, "afterremovefnarg": (), } updateDict(argsdict, args) SpriteObj.initialize(self, argsdict) self.baseCollisionCricle = self.collisionCricle self.registerAutoMoveFn(self.shapefn, []) self.registerAutoMoveFn(ShootingGameObject.changeImage, []) self.initResource(self.shapefnargs.get("memorydcs")) return self
def initialize(self, kwds): SpriteObj.initialize(self, kwds) if self.memorydc and not self.dcsize: self.dcsize = self.memorydc.GetSizeTuple() return self