Glowball.java
上传用户:qinghua
上传日期:2022-06-06
资源大小:523k
文件大小:1k
- import javax.microedition.midlet.*;
- import javax.microedition.lcdui.*;
- public class Glowball{
-
- public byte gbc;
- boolean glowflag;
-
- public int glowballx,glowbally;
-
- public Glowball(int glowballx,int glowbally){
- this.glowballx = glowballx;
- this.glowbally =glowbally;
-
- }
-
- public void ballGlow(Graphics g)
- {
-
- if(gbc ==0)
- {
- g.drawImage(HauntedCastle.power1,glowballx+HauntedCastle.panx,glowbally,Graphics.TOP|Graphics.LEFT);
- gbc++;
- }
- else if(gbc==1)
- {
- g.drawImage(HauntedCastle.power2,glowballx+HauntedCastle.panx,glowbally,Graphics.TOP|Graphics.LEFT);
- gbc =0;
- }
-
- }
-
-
-
- }
-