server {
server_name .чужойдом.ен;
rewrite ^ свойдом.ен$request_uri? permanent;
}
RewriteEngine on
RewriteCond %{HTTP_HOST} ^*чужойдом.ен$
RewriteRule ^(.*)$ свойдом.ен/$1 [R=301,L]
public void create()
{
manager = new AssetManager();
manager.setLoader(Texture.class, new TextureLoader(new InternalFileHandleResolver()));
manager.setLoader(Music.class, new MusicLoader(new InternalFileHandleResolver()));
font = new BitmapFont(Gdx.files.internal("fonts/font.fnt"), true);
guiBackground = new Texture(Gdx.files.internal("gfx/loading.jpg"));
StageLoading loading = new StageLoading(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), true, this);
loading.setOnLoaded(new Callback()
{
public boolean handleMessage(Message msg)
{
StageMenu menu = new StageMenu(loading.width(), loading.height(), true, loading.getMain());
loading.getMain().setStage(menu);
return false;
}
});
setStage(loading);
for (FileHandle handle : Gdx.files.internal("gfx").list())
{
manager.load(handle.path(), Texture.class);
}
}