Examples of MapProperties


Examples of com.badlogic.gdx.maps.MapProperties

    int mapHeight = root.getIntAttribute("height", 0);
    int tileWidth = root.getIntAttribute("tilewidth", 0);
    int tileHeight = root.getIntAttribute("tileheight", 0);
    String mapBackgroundColor = root.getAttribute("backgroundcolor", null);

    MapProperties mapProperties = map.getProperties();
    if (mapOrientation != null) {
      mapProperties.put("orientation", mapOrientation);
    }
    mapProperties.put("width", mapWidth);
    mapProperties.put("height", mapHeight);
    mapProperties.put("tilewidth", tileWidth);
    mapProperties.put("tileheight", tileHeight);
    if (mapBackgroundColor != null) {
      mapProperties.put("backgroundcolor", mapBackgroundColor);
    }
    mapTileWidth = tileWidth;
    mapTileHeight = tileHeight;
    mapWidthInPixels = mapWidth * tileWidth;
    mapHeightInPixels = mapHeight * tileHeight;
 
View Full Code Here

Examples of com.badlogic.gdx.maps.MapProperties

      }

      TextureRegion texture = imageResolver.getImage(image.path());

      TiledMapTileSet tileset = new TiledMapTileSet();
      MapProperties props = tileset.getProperties();
      tileset.setName(name);
      props.put("firstgid", firstgid);
      props.put("imagesource", imageSource);
      props.put("imagewidth", imageWidth);
      props.put("imageheight", imageHeight);
      props.put("tilewidth", tilewidth);
      props.put("tileheight", tileheight);
      props.put("margin", margin);
      props.put("spacing", spacing);

      int stopWidth = texture.getRegionWidth() - tilewidth;
      int stopHeight = texture.getRegionHeight() - tileheight;

      int id = firstgid;
View Full Code Here

Examples of com.eva.properties.MapProperties

            String inBundle) {
        /*
         * Check for configuration for the given package in the default
         * properties:
         */
        MapProperties properties = (MapProperties) DEFAULT_PROPERTIES
                .get(inPackage.replace('.', '-'));
        if(properties == null) {
            /*
             * Try loading the properties for the given package form the
             * classpath using the naming convention "<package>/log.eva":
             */
            try {
                properties = new MapProperties(new DataSource(inClassLoader,
                        "classpath://" + inPackage.replace('.', '/') + "/"
                                + LOG_CONFIG_FILENAME));
            }
            catch(FileNotFoundException e) {
                DEFAULT_LOGGER.log(Level.CONFIG,
View Full Code Here

Examples of com.eva.properties.MapProperties

     * loads the default properties from the classpath.
     *
     * @return the default properties.
     */
    private static MapProperties loadDefaults() {
        return new MapProperties(EvaLog.class
                .getResourceAsStream(LOG_CONFIG_FILENAME));
    }
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.