Zaab | |
---|---|
player | |
Creator |
Sirzach75 |
Destroyable? |
no |
no | |
Movement |
freely |
Solid? |
yes |
unknown | |
Special properties |
none |
Zaab is a user-created piece. It's Zeeb's mothership.
XML[]
<object name="Zaab" type="player" color="0xffffff" instructions="Mouse to move.Space shoots lasers!"> <shape> <perimeter> <polygon x="0" y="0"> <vertex x="-0.6" y="0"/> <vertex x="0" y="-0.7"/> <vertex x="0.9" y="0"/> <vertex x="0" y="0.7"/> </polygon> </perimeter> <visual priority="8" sourcePixelsPerMeter="20"/> <physics source="perimeter" density="0.6" bounciness="0.0" friction="0.6" solid="true" anchored="false" gravity="false" ignoreSetAng="true" angleLock="true" collisionSoundURL="assets/gameAssets/zeeb-collision.mp3" collisionSoundPriority="1"/> </shape> <controller> <randomInterval shortInterval="0.3" longInterval="0.5"> <emitPFX lifetime="R(0.3,0.5)" quantity="1" scale="R(0.75,1.5) to 0" color_r="1.0 to 0.0" color_g="1.0 to 0.0" color_b="1.0" inheritMomentum="false" resistance="0.05" velocity="R(0.9,1.5)" angleOffset="R(80,100)" gravity="false" visualURL="assets/gameAssets/rocket_particle.png" inheritRotation="true" alpha="1.0 to 0.0" vAngle="R(-30,30)" xOffset="R(-0.375,-0.275)" yOffset="0.35" sourcePixelsPerMeter="40"/> </randomInterval> <randomInterval shortInterval="0.3" longInterval="0.5"> <emitPFX lifetime="R(0.3,0.5)" quantity="1" scale="R(0.75,1.5) to 0" color_r="0.8 to 0.0" color_g="0.8 to 0.0" color_b="1.0" inheritMomentum="false" resistance="0.05" velocity="R(0.9,1.5)" angleOffset="R(80,100)" gravity="false" visualURL="assets/gameAssets/rocket_particle.png" inheritRotation="true" alpha="1.0 to 0.0" vAngle="R(-30,30)" xOffset="R(-0.075,0.075)" yOffset="0.4" sourcePixelsPerMeter="40"/> </randomInterval> <randomInterval shortInterval="0.3" longInterval="0.5"> <emitPFX lifetime="R(0.3,0.5)" quantity="1" scale="R(0.75,1.5) to 0" color_r="1.0 to 0.0" color_g="1.0 to 0.05" color_b="1.0" inheritMomentum="false" resistance="0.0" velocity="R(0.9,1.5)" angleOffset="R(80,100)" gravity="false" visualURL="assets/gameAssets/rocket_particle.png" inheritRotation="true" alpha="1.0 to 0.0" vAngle="R(-30,30)" xOffset="R(0.275,0.375)" yOffset="0.35" sourcePixelsPerMeter="40"/> </randomInterval> <otherCollided> <regulateSpeed min="0" max="3.75"/> </otherCollided> <always> <moveToMouse/> </always> <always> <targetTypeNearest targetType="enemy"/> <lookAtTarget/> </always> <keyPress key="SPACE" extraKey="CONTROL" action="OnDown"> <shoot projectile="LaserShot" xOffset="0.7" yOffset="0" angleAtTarget="true" impulse="0.175" reloadTime="0.4" onePerLife="false"/> <shoot projectile="EvilLaser" xOffset="0.7" yOffset="0.2" angleAtTarget="true" impulse="0.175" reloadTime="0.4" onePerLife="false"/> <shoot projectile="GoodLaser" xOffset="0.7" yOffset="-0.2" angleAtTarget="true" impulse="0.175" reloadTime="0.4" onePerLife="false"/> </keyPress> </controller> </object>