Berserker

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
                <always mustBeAirborne="true" movingLeft="true"> <playAnim animLabel="airborneLeft"/> <always mustBeAirborne="true" movingRight="true"> <playAnim animLabel="airborneRight"/> <always mustBeGrounded="true" notLateral="true"> <playAnim animLabel="idle"/> <always mustBeGrounded="true" movingLeft="true"> <playAnim animLabel="movingLeft"/> <always mustBeGrounded="true" movingRight="true"> <playAnim animLabel="movingRight"/> <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>