Package tyrelion.objects

Examples of tyrelion.objects.Player


    CollisionManager.getInstance().setTiles(tiles);
   
  }
 
  private void updateDisplayedArea(){
    Player player = Player.getInstance();
    displayStartX = player.getTileX() - leftOffsetInTiles;
    displayStartY = player.getTileY() - topOffsetInTiles;
    displayEndX = player.getTileX() + leftOffsetInTiles;
    displayEndY = player.getTileY() + topOffsetInTiles;
   
    if (displayStartX < 0) { displayStartX = 0; }
    if (displayStartY < 0) { displayStartY = 0; }
    if (displayEndX > width) { displayEndX = width; }
    if (displayEndY > height) { displayEndY = height; }
View Full Code Here

TOP

Related Classes of tyrelion.objects.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.