Ref 2 :
在surfaceview 裡面....
一定有 update
public void update() { // this.chibi1.update(); for(ChibiCharacter chibi: chibiList) { chibi.update(); } for(Explosion explosion: this.explosionList) { explosion.update(); } Iterator<Explosion> iterator= this.explosionList.iterator(); while(iterator.hasNext()) { Explosion explosion = iterator.next(); if(explosion.isFinish()) { // If explosion finish, Remove the current element from the iterator & list. iterator.remove(); continue; } }}
可以在這邊去更改...例如加上敵人...
沒有留言:
張貼留言