Package catchemrpg.gameobjects

Examples of catchemrpg.gameobjects.GameImage.draw()


                window.drawRect(500, 0, 150, 200); //big picture
                try
             {
           
            GameImage monsterImage = new GameImage(BaseVars.aiTeam.yourMonsters[0].imagePath);
            monsterImage.draw(window, 500, 0);
          } catch (IllegalArgumentException ex)
          {
            System.out.println("ERROR LOADING IMAGE @" + BaseVars.aiTeam.yourMonsters[0].imagePath);
          }
                for(int i=0;i<3;i++)
View Full Code Here


        //Could draw these images to a static Monster1 and Monster2 then just copy in the new Images.
        //then ask for new images on faint/change
        try
          {
            GameImage monsterImage = new GameImage(monster.imagePath);
            monsterImage.draw(window, x + 40, y + 65);
          } catch (IllegalArgumentException ex)
          {
            System.out.println("ERROR LOADING IMAGE @" + monster.imagePath);
            window.setColor(Color.LIGHT_GRAY);
            window.fillRect(x + 40, y + 65, 100, 100);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.