Package game.entity

Examples of game.entity.Player


    this.name = tag.findTagByName("NAME").getValue().toString();
    this.timePlayed = (long) tag.findTagByName("TIME_PLAYED").getValue();
    String startLevel = tag.findTagByName("STARTLEVEL").getValue()
        .toString().toUpperCase();
    level = new Level(tag.findTagByName("LEVELS").findTagByName(startLevel));
    player = new Player(this, tag);
  }
View Full Code Here


    test.draw();
  }

  public static void initLevel1() throws IOException {
   
    test = new Player("player");
    test.init(Display.getWidth() /2 - test.getTexture().getImageWidth(), Display.getHeight()/2 - test.getTexture().getImageHeight(), 0.5F, 0);
   
    SoundLoader.loadSong("Machinimasound");
    testSong = SoundLoader.getSong("Machinimasound");
   
View Full Code Here

                }

            }
        }

        final Player player = gameModel.getPlayer();
        final Point positionPlayerRelative = gameModel.getRelatif(player.getX(), player.getY());

        g.drawImage(gameModel.getPlayer().getImage(), positionPlayerRelative.x, positionPlayerRelative.y, this);

        g.drawImage(thirdImage, 0, 0, this);
View Full Code Here

     */
    public GameModel(final GUIModel guiModel, final String map) {
        super();
        this.guiModel = guiModel;

        player = new Player(this, guiModel);
        player.initInventory();

        Event.setGameEvent(new GameEvent(this));

        player.setMotion(50, 50);
View Full Code Here

TOP

Related Classes of game.entity.Player

Copyright © 2018 www.massapicom. 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.