home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 56 / CDPowerplay56Disc2.iso / demos / blade / data1.cab / Program_Executable_Files / Lib / Stars.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2000-10-27  |  1.8 KB  |  49 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 1.5)
  3.  
  4. import Bladex
  5. import netgame
  6. Bladex.ReadAlphaBitMap('..\\..\\Data\\Estrellita.bmp', 'Estrellita')
  7. Bladex.AddParticleGType('LucesCools', 'Estrellita', 1, 16)
  8. for i in range(16):
  9.     Tetha = 8 - abs(i - 8)
  10.     r = 255.0
  11.     g = 255.0
  12.     b = 255.0
  13.     a = Tetha * 255 / 9
  14.     size = Tetha * 20
  15.     Bladex.SetParticleGVal('LucesCools', i, r, g, b, a, size)
  16.  
  17.  
  18. def DeTwinkle(ObjName):
  19.     if netgame.GetNetState() == 0:
  20.         import GameText
  21.         import Select
  22.         wps = Bladex.GetEntity(ObjName + ' TwinkleStar')
  23.         if wps:
  24.             import ScorerWidgets
  25.             wps.DeathTime = Bladex.GetTime()
  26.             GameText.WriteTextAux(Select.GetSelectionData(ObjName)[2], 5, 255, 255, 255, [])
  27.             ScorerWidgets.ObjSlTimer = Bladex.GetTime()
  28.             Bladex.GetEntity(ObjName).SelfIlum = 0
  29.         
  30.     
  31.  
  32.  
  33. def Twinkle(ObjName):
  34.     if netgame.GetNetState() == 0:
  35.         wps = Bladex.CreateEntity(ObjName + ' TwinkleStar', 'Entity Particle System Dobj', 0.0, 0.0, 0.0)
  36.         wps.ObjectName = ObjName
  37.         wps.ParticleType = 'LucesCools'
  38.         wps.Time2Live = 16
  39.         wps.RandomVelocity = 0
  40.         wps.Velocity = (0, 0, 0)
  41.         wps.NormalVelocity = 2
  42.         wps.YGravity = 0
  43.         wps.PPS = 5
  44.         Bladex.GetEntity(ObjName).SelfIlum = -1
  45.         return wps
  46.     
  47.  
  48. AutoTake = 1
  49.