Package org.seattlegamer.spacegame.resources

Examples of org.seattlegamer.spacegame.resources.InMemoryResourceCache


  public @Bean Input input() {
    return new Input();
  }

  public @Bean ResourceCache resourceCache() {
    InMemoryResourceCache inMemoryResourceCache = new InMemoryResourceCache(scaledImageResourceLoader());
    PropertiesAccessor propertiesAccessor = propertiesAccessor();
    int scale = propertiesAccessor.getInteger("scale", 80);

    //TODO: remove this hack when planet generation is in
    TestImageCreator testImageCreator = new TestImageCreator(scale);
    Image player = testImageCreator.buildPlayer(Color.BLUE);
    inMemoryResourceCache.putImage("replaceme_hardcoded_planet", player);
   
    return inMemoryResourceCache;
  }
View Full Code Here

TOP

Related Classes of org.seattlegamer.spacegame.resources.InMemoryResourceCache

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.