Mercurial > hg > Members > e085711
comparison webGL/dandy/resources/enemy.js @ 22:222c5c84325a
update enemy.js
author | NOBUYASU Oshiro |
---|---|
date | Mon, 18 Oct 2010 17:07:04 +0900 |
parents | 6dd37a368a1f |
children | 7c1ff1927da3 |
comparison
equal
deleted
inserted
replaced
21:6dd37a368a1f | 22:222c5c84325a |
---|---|
15 p.vx = vx * d_x; | 15 p.vx = vx * d_x; |
16 p.vy = vy * d_y; | 16 p.vy = vy * d_y; |
17 p.charano = charano; | 17 p.charano = charano; |
18 p.tama = tf; | 18 p.tama = tf; |
19 p.vit = enemystate[charano].p; | 19 p.vit = enemystate[charano].p; |
20 // p.vit = 240; | 20 p.vit = 240; |
21 p.score = enemystate[charano].sc; | 21 // p.score = enemystate[charano].sc; |
22 // p.s = 0; | 22 // p.s = 0; |
23 p.flag = true; | 23 p.flag = true; |
24 p.state = chara_state; | 24 p.state = chara_state; |
25 | 25 |
26 | 26 |
30 | 30 |
31 } | 31 } |
32 | 32 |
33 function loadEnemyImage(charano, p) | 33 function loadEnemyImage(charano, p) |
34 { | 34 { |
35 /* | 35 |
36 p.image = enemy[charano]; | 36 p.image = enemy[charano]; |
37 p.texture = enemy[charano].texture; | 37 p.texture = enemy[charano].texture; |
38 p.w = enemy[charano].w; | 38 p.w = enemy[charano].w; |
39 p.h = enemy[charano].h; | 39 p.h = enemy[charano].h; |
40 */ | 40 /* |
41 p.image = enemystate[charano]; | 41 p.image = enemystate[charano]; |
42 p.texture = enemy[charanostate].texture; | 42 p.texture = enemy[charanostate].texture; |
43 p.w = enemy[charanostate].w; | 43 p.w = enemy[charanostate].w; |
44 p.h = enemy[charanostate].h; | 44 p.h = enemy[charanostate].h; |
45 | 45 */ |
46 } | 46 } |
47 | 47 |
48 | 48 |