package pong.alexjeffery.org; import pulpcore.Build; import pulpcore.CoreSystem; public class LoadingScene extends pulpcore.scene.LoadingScene { public LoadingScene() { //Load the asset file and set the scene to load start super("Pong.zip" , new TitleScene()); } public void load() { // Deter hotlinking by checking against a list of valid hosts. String[] validHosts = { "blog.alexjeffery.org", "www.blog.alexjeffery.org", }; //If it is a release build and the host is not valid. //Bail on the load and pop open your web site if (!Build.DEBUG && !CoreSystem.isValidHost(validHosts)) { CoreSystem.showDocument("http://www.alexjeffery.org/"); } else { //It is ok to load the applet super.load(); } } }