if (Key.isDown(Key.LEFT)) {
ypos+=Math.sin((seg0._rotation-90)*Math.PI/180)*5;
xpos+=Math.cos((seg0._rotation-90)*Math.PI/180)*5;
}
if (Key.isDown(Key.RIGHT)) {
ypos+=Math.sin((seg0._rotation+90)*Math.PI/180)*5;
xpos+=Math.cos((seg0._rotation+90)*Math.PI/180)*5;
}
if (Key.isDown(Key.UP)) {
ypos+=Math.sin((seg0._rotation)*Math.PI/180)*5;
xpos+=Math.cos((seg0._rotation)*Math.PI/180)*5;
}
if (Key.isDown(Key.DOWN)) {
ypos+=Math.sin((seg0._rotation-180)*Math.PI/180)*5;
xpos+=Math.cos((seg0._rotation-180)*Math.PI/180)*5;
}