Lives and score tutorial
by CoolioJulio
홈 화면에 추가하여 빠르게 실행하세요
이 게임 설치
공유 버튼을 누르고 "홈 화면에 추가"를 선택하면 빠르게 이 게임에 접속할 수 있습니다.
Lives and score tutorial
Lives and score tutorial의 태그
설명
Learn how to program lives and score!
플레이 방법
Arrow keys to move and space to shoot
개발자 업데이트
This is the code to add:
var score = 0;
var lives = 3;
this.onEnterFrame = function()
{
this.x += 9;
if (this.x > 550)
{
this.removeMovieClip();
}
for (i = 0; i < root.nrEnemies; i++)
{
if (this.hitTest(root[“Enemy” + i]))
{
_root[“Enemy” + i].reset();
_root.score += 10;
this.removeMovieClip();
}
}
}
댓글
C0NSENSUS
Dec. 23, 2013
wtf game = shit game
migue5356
May. 19, 2009
?????
Seth1134
May. 18, 2009
Wow if your going to make a tutorial make it actaully teach something...
Tobi800
May. 18, 2009
WTF! this is bullshit
bakerej
May. 18, 2009
this is just as much trash as the one you previously posted one. FLAG