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;
}