//관성력
MovieClip.prototype.inertiaMove = function(widthX,heightY,g,fric){
if(this._x + this.speedX > widthX - this._width/2){
this.speedX = -1*this.speedX;
this._x = widthX - this._width/2;
}else if(this._x + speedX <0 + this._width/2){
this.speedX = -1*this.speedX;
this._x = 0 + this._width/2;
}else{
this._x += this.speedX ;
}
if(this._y + this.speedY > heightY - this._height/2){
this.speedY = -1*this.speedY;
this._y = heightY - this._height/2;
}else if(this._y + this.speedY <0 + this._height/2){
this.speedY = -1*this.speedY;
this._y = 0 + this._height/2;
}else{
this._y += this.speedY;
}
this.speedY = this.speedY + g;
this.speedX = fric*this.speedX;
this.speedY = fric*this.speedY;
};
//포물선운동
MovieClip.prototype.parabolaMove = function(){
this.vy = this.vy + this.g;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
};
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 30 |
아우겐나이스
|
21년 전 | 4045 | |
| 29 |
아우겐나이스
|
21년 전 | 4434 | |
| 28 |
아우겐나이스
|
21년 전 | 3458 | |
| 27 | 21년 전 | 5824 | ||
| 26 | 21년 전 | 3095 | ||
| 25 | 21년 전 | 6072 | ||
| 24 | 18년 전 | 3643 | ||
| 23 | 21년 전 | 3631 | ||
| 22 | 21년 전 | 4242 | ||
| 21 | 21년 전 | 3814 | ||
| 20 | 21년 전 | 4216 | ||
| 19 | 21년 전 | 6677 | ||
| 18 | 21년 전 | 4732 | ||
| 17 | 21년 전 | 6984 | ||
| 16 | 21년 전 | 4167 | ||
| 15 | 21년 전 | 2626 | ||
| 14 | 21년 전 | 4966 | ||
| 13 | 21년 전 | 3396 | ||
| 12 |
Recluse
|
21년 전 | 3870 | |
| 11 |
아우겐나이스
|
21년 전 | 3567 | |
| 10 |
Recluse
|
21년 전 | 3391 | |
| 9 | 21년 전 | 3979 | ||
| 8 | 21년 전 | 5161 | ||
| 7 | 21년 전 | 4755 | ||
| 6 | 21년 전 | 5673 | ||
| 5 | 21년 전 | 4109 | ||
| 4 | 21년 전 | 4831 | ||
| 3 | 21년 전 | 4736 | ||
| 2 | 21년 전 | 3234 | ||
| 1 | 22년 전 | 4336 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기