def __init__(self,**kwargs): self.flash_color = [ 1.0,1.0,0.0,1.0 ] Object.__init__(self,**kwargs) self.light_type = Object.LightTypes.DYNAMIC_TEXTURE_OVERLAY self.light_texture = BGL.assets.get('NL-lights/texture/radial') self.texture = Firefly.texture self.buftarget = "additive" self.is_pixie = False self.light_color = [ 1.0,0.6,0.3,1.0 ] self.color = [ 1.0,0.8,0.2,1.0] self.light_radius = 15 self.tick_type = Object.TickTypes.PURGING self.life = 0 self.trigger_life = uniform( 30.0,60.0 ) self.base_p = self.p self.size = [0.7+uniform(0.0,0.3),0.7+uniform(0.0,0.3)] self.visible = True self.offs = uniform(0.0,3.14) spd = uniform(0.5,0.9) d = uniform(-3.14,3.14) self.vx = cos(d)*spd self.vy = sin(d)*spd
def __init__(self, **kwargs): Object.__init__(self, **kwargs) self.buftarget = "popup" self.tick_type = Object.TickTypes.PURGING #self.light_type = Object.LightTypes.DYNAMIC_TEXTURE_OVERLAY #self.light_texture = BGL.assets.get('NL-lights/texture/radial') #self.light_radius = 15 self.lifespan = 150 self.light_color = [1.0, 0.7, 0.0, 0.0] self.color = [1.0, 0.5, 0.5, 1.0] self.fr = 0 sz = uniform(0.3, 0.5) self.size = [sz, sz] self.snapshot_fields = ['p'] self.rad = uniform(-0.8, 0.8) self.vx = uniform(-1.0, 1.0) self.vy = uniform(-0.5, -1.5) if (self.vx > 0): self.size[0] *= -1 self.delay = uniform(10.0, 90.0) self.visible = False self.z_index = 9000000 self.rad = uniform(-0.2, 0.2)
def __init__(self,**kwargs): Object.__init__(self,**kwargs) self.texture = BasicProjectile.textures["default"] if "texture" in kwargs: self.texture = BasicProjectile.textures[kwargs["texture"]] self.animation = None self.buftarget = "popup" self.tick_type = Object.TickTypes.PURGING self.light_type = Object.LightTypes.DYNAMIC_SHADOWCASTER self.light_radius = 5 self.lifespan = 120 self.light_color = [ 0.6,1.0,0.3,0.4 ] self.size = [ 0.5,0.5 ] self.snapshot_fields = [ 'p' ] if "override_spd" in kwargs: spd = self.override_spd else: spd = 0.45 + uniform(0.001, 0.01) self.vx = cos( self.rad )*spd self.vy = sin( self.rad )*spd self.attack_str = 8 self.player_touch_frames = 0 self.vs_enemy = False self.fr = 0 if "animation" in kwargs: self.animation = BasicProjectile.animations[kwargs["animation"]]
def __init__(self, **kwargs): Object.__init__(self, **kwargs) self.texture = choice(SplatterParticle.texture) if "ptexture" in self.__dict__: self.texture = self.ptexture self.buftarget = "popup" self.tick_type = Object.TickTypes.PURGING #self.light_type = Object.LightTypes.DYNAMIC_TEXTURE_OVERLAY #self.light_texture = BGL.assets.get('NL-lights/texture/radial') #self.light_radius = 15 self.lifespan = 90 self.light_color = [1.0, 0.7, 0.0, 0.0] self.color = [1.0, 0.5, 0.5, 1.0] self.size = [3.8, 3.8] if "ptexture" in self.__dict__: self.size = [5.0, 5.0] self.snapshot_fields = ['p'] spd = 0.3 + uniform(0.2, 0.8) self.vx = cos(self.rad) * spd self.vy = sin(self.rad) * spd self.rad = uniform(-3.14, 3.14)
def __init__(self, **kwargs): Object.__init__(self, **kwargs) self.p[1] += 1.5 self.size = [3.0, 3.0] self.buftarget = "floor" self.texture = FTermStand.texture self.tick_type = Object.TickTypes.STATIC self.physics = {"radius": 1.2, "mass": 900, "friction": 0.3}
def __init__(self, **kwargs): Object.__init__(self, **kwargs) self.buftarget = "floor" self.z_index = 2 self.light_type = Object.LightTypes.DYNAMIC_SHADOWCASTER self.light_color = [0.8, 0.0, 1.0, 1.0] self.light_radius = 25 self.tick_type = Object.TickTypes.TICK_FOREVER self.size = [2.0, 2.0] self.fr = 0
def __init__(self, **kwargs): Object.__init__(self, **kwargs) self.texture = BGL.assets.get("KT-player/texture/beam") self.tick_type = Object.TickTypes.TICK_FOREVER self.size = [30.0, 0.1] self.light_color = [0.5, 0.5, 0.5, 0.5] self.light_type = Object.LightTypes.NONE self.visible = False self.buftarget = "popup" self.fired = False self.aiming = False
def __init__(self, **kwargs): Object.__init__(self, **kwargs) self.texture = BGL.assets.get("KT-player/texture/beam") self.tick_type = Object.TickTypes.TICK_FOREVER self.size = [30.0, 10.0] self.light_color = [0.2, 0.2, 0.2, 1.0] self.light_type = Object.LightTypes.DYNAMIC_TEXTURE_OVERLAY self.visible = False self.buftarget = "popup" self.fired = False self.aiming = False
def __init__(self, **kwargs): Object.__init__(self, **kwargs) self.texture = RangedMagic.arrow_texture self.buftarget = "popup" self.tick_type = Object.TickTypes.PURGING self.light_type = Object.LightTypes.DYNAMIC_SHADOWCASTER self.light_radius = 5 self.lifespan = 120 self.light_color = [0.0, 0.0, 1.0, 1.0] self.vx = cos(self.rad) * 2 self.vy = sin(self.rad) * 2
def __init__(self, **kwargs): overrides = { "num": 0, "texture": BGL.assets.get("KT-forest/texture/treeroots"), 'tick_type': Object.TickTypes.TICK_FOREVER, 'size': [5.0, 5.0], 'rad': uniform(-3.14, 3.14), 'z_index': -121, 'buftarget': 'popup' } overrides.update(kwargs) Object.__init__(self, **overrides) self.t = 0 self.base_size = [self.size[0], self.size[1]] self.draw_color = [0.8, uniform(0.0, 1.0), 0.8, uniform(0.6, 0.7)]
def __init__(self, **kwargs): Object.__init__(self, **kwargs) self.texture = HealthBubble.texture self.buftarget = "popup" self.tick_type = Object.TickTypes.PURGING self.light_type = Object.LightTypes.NONE if (uniform(0.0, 1.0) > 0.8): self.light_type = Object.LightTypes.DYNAMIC_SHADOWCASTER self.light_radius = 5 self.lifespan = 1390 self.light_color = [1.0, 0.0, 0.0, 0.0] self.color = [1.0, 0.0, 0.0, 1.0] self.size = [2.8, 2.8] self.snapshot_fields = ['p'] self.vx = uniform(-0.05, 0.05) self.vy = uniform(-0.1, -0.2)
def __init__(self, **kwargs): Object.__init__(self, **kwargs) self.rad = uniform(-3.14, 3.14) self.texture = choice(CrystalChunk.textures) self.buftarget = "popup" self.tick_type = Object.TickTypes.PURGING self.light_type = Object.LightTypes.DYNAMIC_SHADOWCASTER self.light_radius = 15 self.lifespan = 90 self.light_color = [1.0, 0.7, 0.0, 0.0] self.color = [1.0, 1.0, 1.0, 1.0] sz = uniform(2.0, 4.0) self.size = [sz, sz] self.snapshot_fields = ['p'] spd = 0.3 + uniform(0.2, 0.8) self.vx = cos(self.rad) * spd self.vy = sin(self.rad) * spd self.rad = uniform(-3.14, 3.14)
def __init__(self, **kwargs): self.scale = 2 tt = kwargs['TreeTop'] overrides = { "num": 0, "texture": choice(GeneratorOptions.TreeShadowTextures), 'tick_type': Object.TickTypes.TICK_FOREVER, 'size': [self.scale * tt.size[0], self.scale * tt.size[1]], 'rad': tt.rad, 'z_index': 0, 'tt': tt, 'buftarget': 'shadow' } overrides.update(kwargs) Object.__init__(self, **overrides) self.t = 0 self.base_size = [self.size[0], self.size[1]] self.draw_color = [0.8, uniform(0.0, 1.0), 0.8, 0.3] self.wind_speed = tt.wind_speed self.wind_mod = tt.wind_mod
def __init__(self, **kwargs): tex_options = GeneratorOptions.TreeTopTextures overrides = { "num": 0, "texture": choice(tex_options), 'tick_type': Object.TickTypes.TICK_FOREVER, 'size': [5.0, 5.0], 'rad': uniform(-3.14, 3.14), 'parallax': 1.2, 'z_index': 100, 'wind_speed': uniform(0.1, 0.3), 'wind_mod': uniform(1.1, 1.2), 'buftarget': 'canopy' } overrides.update(kwargs) Object.__init__(self, **overrides) self.t = 0 self.base_size = [self.size[0], self.size[1]] self.draw_color = [0.9, uniform(0.8, 1.0), 0.9, uniform(0.6, 0.9)] self.last_a = self.draw_color[3]
def __init__(self,**kwargs): Object.__init__(self,**kwargs)