Stairs.java
上传用户:qinghua
上传日期:2022-06-06
资源大小:523k
文件大小:1k
- import javax.microedition.midlet.*;
- import javax.microedition.lcdui.*;
- class Stairs{
- public int stairpanxright,stairpanxleft;
- int updw;
- Stairs(int panxright,int panxleft,int updw){
- stairpanxleft = panxleft;
- this.updw = updw;
- stairpanxright = panxright;
- }
-
-
-
- public void drawStair(Graphics g,int strx,int stry)
- {
-
- if(updw == 1 ){
- for(int i=0;i<4;i++)
- g.drawImage(HauntedCastle.miStairup,strx+HauntedCastle.panx+(i*25),stry-(i*23),Graphics.TOP|Graphics.LEFT);
- }
- if (updw == 2)
- {
- for(int i=0;i<4;i++)
- g.drawImage(HauntedCastle.miStairdown,strx+HauntedCastle.panx-(i*24),stry-(i*23),Graphics.TOP|Graphics.LEFT);
- }
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }