Back to project page AllBinary-Platform-Game.
The source code is released under:
AllBinary Open License Version 1.0 Copyright (c) 2011 AllBinary. By agreeing to this license you and any business entity you represent are legally bound to this legal agreement. You may transmit, m...
If you think the Android project AllBinary-Platform-Game listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * To change this template, choose Tools | Templates * and open the template in the editor.//ww w .ja v a 2 s . com */ package playn.core; import org.allbinary.canvas.Processor; import org.allbinary.graphics.canvas.transition.progress.ProgressCanvasFactory; import org.allbinary.input.motion.button.TouchButtonBlankResource; import org.allbinary.input.motion.button.TouchButtonDownResource; import org.allbinary.input.motion.button.TouchButtonGenericActionResource; import org.allbinary.input.motion.button.TouchButtonStartResource; import org.allbinary.input.motion.button.TouchButtonStrafeLeftResource; import org.allbinary.input.motion.button.TouchButtonStrafeRightResource; import org.allbinary.input.motion.button.TouchButtonTurnLeftResource; import org.allbinary.input.motion.button.TouchButtonTurnRightResource; import org.allbinary.input.motion.button.TouchButtonUpResource; import org.allbinary.input.motion.button.TouchScreenFactory; import org.allbinary.playn.processors.GameHtmlHasLoadedResourcesProcessor; import org.allbinary.playn.processors.GameHtmlLoadResourcesProcessor; import org.allbinary.playn.processors.MidletStartupProcessor; import org.allbinary.util.BasicArrayList; /** * * @author user */ public class TestGameDemoProcessor extends Processor { private final BasicArrayList list; public TestGameDemoProcessor(final BasicArrayList list) { this.list = list; } public void process() throws Exception { this.list.remove(0); //ExplosionResources explosionResources = ExplosionResources.getInstance(); //PlayerShipResources basicShipResources = PlayerShipResources.getInstance(); if (TouchScreenFactory.getInstance().isTouch()) { String[] resourceStringArray = { TouchButtonBlankResource.getInstance().RESOURCE, TouchButtonGenericActionResource.getInstance().RESOURCE, TouchButtonStartResource.getInstance().RESOURCE, TouchButtonUpResource.getInstance().RESOURCE, TouchButtonDownResource.getInstance().RESOURCE, TouchButtonTurnLeftResource.getInstance().RESOURCE, TouchButtonTurnRightResource.getInstance().RESOURCE, TouchButtonStrafeLeftResource.getInstance().RESOURCE, TouchButtonStrafeRightResource.getInstance().RESOURCE, }; list.add(new GameHtmlLoadResourcesProcessor(list, resourceStringArray)); Processor gameHtmlHasLoadedResourcesProcessor = new GameHtmlHasLoadedResourcesProcessor(list, resourceStringArray); list.add(gameHtmlHasLoadedResourcesProcessor); } list.add(new MidletStartupProcessor(list)); ProgressCanvasFactory.getInstance().addPortion(10, "Loading"); } }