?? penguin.as
字號:
?package Classes.Weapons.Rockets{
import flash.display.Sprite;
import Classes.Utils.*;
import Classes.Elements.*;
import Classes.Weapons.*;
import Classes.Sounds.GameSound;
public class Penguin extends Rocket{
public function Penguin(){
execution = 10;
crtspeed = 0;
speed = -5;
acceleration = -.5;
life = 5;
hp = 5;
omega = 6;
this.score = UnitType.Penguin.score;
GameSound.PenguinLaunch.play();
}
override protected function move():void{
inc++;
if(Math.abs(crtspeed)<Math.abs(speed)){
crtspeed+=acceleration;
Moving.moveBeeline(this,crtspeed,180);
}
else{
Moving.Track(aTargets[0],this,-crtspeed,omega);
}
if(inc>160)
this.hp = 0;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -