⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch20p3_particlescript.txt

📁 游戏开发特殊技巧-special.effects.game.programming
💻 TXT
字号:
particlesystem "Explosion" 1.00 {
  position = XYZ(0,0,0)
  eventsequence "Flaming Debris" {
    sourceblendmode = D3DBLEND_ONE
    destblendmode = D3DBLEND_ONE
    loops = 1
    numparticles = 50
    gravity = XYZ(0,0,0)
    emitrate = 1000
    emitradius = XYZ(random(-1,1),random(-1,1),random(-1,1))
    lifetime = random(1,4)
    texture = "Ch20p3_FlamingDebris.png"
    initial size = random(0.1,1)
    initial color = rgba(1,1,1,1)
    fade so at 0.5 color = rgba(1,1,0,1)
    fade so at 1 color = rgba(1,0,0,1)
    fade so final color = rgba(0,0,0,1)
    initial velocity = XYZ(random(-10,10),random(-10,10),random(-10,10))
  }

  eventsequence "Spaceship Debris" {
    sourceblendmode = D3DBLEND_SRCALPHA
    destblendmode = D3DBLEND_DESTALPHA
    loops = 1
    numparticles = 20
    gravity = XYZ(0,0,0)
    emitrate = 1000
    emitradius = XYZ(random(-1,1),random(-1,1),random(-1,1))
    lifetime = 1
    texture = "Ch20p3_FlamingDebris.png"
    initial size = random(0.1,2)

    initial color = rgba(0,1,0,1)
    fade so final color = rgba(0,0,0,1)
    initial velocity = XYZ(random(-24,24),random(-24,24),random(-24,24))
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -