Berserker | |
---|---|
standard berserker | |
player | |
Creator |
unknown |
Destroyable? |
yes |
no | |
Movement |
walk & jump |
Solid? |
yes |
unknown | |
Special properties |
special properties |
The berseker is a player piece that moves with WASD or the arrow keys. It fires a fire ball when left mouse button is pressed.
Appearances[]
- The Angel Demon look like The Berserker but oppeadfo0wk
XML[]
<object name="Berserker" type="player" color="0xff3d3d" instructions="Arrow Keys or WASD to move. Mouse to aim and shoot."> <shape destroyable="true"> <perimeter> <polygon x="0" y="0"> <vertex x="-0.375" y="-0.25"/> <vertex x="-0.3" y="-0.525"/> <vertex x="0.3" y="-0.525"/> <vertex x="0.375" y="-0.25"/> <vertex x="0.2" y="0.1"/> <vertex x="0.1" y="0.2"/> <vertex x="-0.1" y="0.2"/> <vertex x="-0.2" y="0.1"/> </polygon> </perimeter> <visual priority="8" sourcePixelsPerMeter="40"/> <physics source="perimeter" gravity="true" density="1.05" bounciness="0.05" friction="1.0" solid="true" anchored="false" angleLock="true" collisionSoundURL="assets/gameAssets/woodLight.mp3" collisionSoundPriority="1"/> </shape> <controller> <always> <targetTypeNearest targetType="mouse"/> <lookAtTarget secondaryDisplayLayerOnly="true"/> <regulateSpeed min="0" max="editable"/> </always> <always mustBeAirborne="true" notLateral="true"> <playAnim animLabel="airborne"/> </always> <always mustBeAirborne="true" movingLeft="true"> <playAnim animLabel="airborneLeft"/> </always> <always mustBeAirborne="true" movingRight="true"> <playAnim animLabel="airborneRight"/> </always> <always mustBeGrounded="true" notLateral="true"> <playAnim animLabel="idle"/> </always> <always mustBeGrounded="true" movingLeft="true"> <playAnim animLabel="movingLeft"/> </always> <always mustBeGrounded="true" movingRight="true"> <playAnim animLabel="movingRight"/> </always> <keyPress key="UP" extraKey="W" action="OnDown" mustBeGrounded="true"> <thrust impulse="editable" onePerLife="false" offsetAng="90" absoluteAng="true"/> </keyPress> <keyPress key="RIGHT" extraKey="D" action="WhileDown" mustBeGrounded="true"> <thrust impulse="0.25" onePerLife="false" offsetAng="0" absoluteAng="true" groundHug="true"/> </keyPress> <keyPress key="LEFT" extraKey="A" action="WhileDown" mustBeGrounded="true"> <thrust impulse="0.25" onePerLife="false" offsetAng="180" absoluteAng="true" groundHug="true"/> </keyPress> <keyPress key="RIGHT" extraKey="D" action="WhileDown" mustBeAirborne="true"> <thrust impulse="0.15" onePerLife="false" offsetAng="0" absoluteAng="true"/> </keyPress> <keyPress key="LEFT" extraKey="A" action="WhileDown" mustBeAirborne="true"> <thrust impulse="0.15" onePerLife="false" offsetAng="180" absoluteAng="true"/> </keyPress> <mouseButton> <shoot projectile="Fireball" xOffset="0.2" yOffset="0.0" impulse="editable" reloadTime="0.4" onePerLife="false" inheritMomentum="false" angleAtTarget="true"/> </mouseButton> <onDestroyed> <emitPFX lifetime="R(1,2.0)" quantity="14" scale="R(1,2) to 0.0" color_r="R(0.4,1.0)" color_g="R(0.4,1.0)" color_b="R(0.4,1.0)" inheritMomentum="false" resistance="R(0,0.05)" sourcePixelsPerMeter="40" velocity="R(0.5,2.5)" angleOffset="R(-100,-80)" gravity="false" visualURL="assets/gameAssets/photon_particle.png" inheritRotation="false" alpha="1.0 to 0.0" vAngle="0" xOffset="R(-.25,.25)" yOffset="R(-.4,.4)"/> </onDestroyed> </controller> </object>