android - I created a UI without Rokon, but I'd like to start Rokon later to run my game, any way to do this? -


I started using Rokon to create a graphical part of my game, but when it was finished I had a lot of trouble creating a menu and the system was alerting with it, I started without the game engine and created a good looking UI. When the user starts clicking, then I want to run Rockon to load the graphics I made, but Ive tried whatever I could think of and can not be forced to shut it down I have made a basic call to create a new gamegene since Aangin, which does everything with the new scenes and everything else in my main activity code (neglect of difficulty). , I just want to load just a problem):

  protected void startGame (int difficulty) {// TODO automatically generated method stub REFERENCES = getApplicationContext (); Int Period = Toast. LENGHIHAR; Toast toast = toast Make text (context, "Game started!" + "\ N" + "Set in difficult:" + difficulty, period); Toast.show (); Switch (difficulty) {Case 1: {// easygame = new gameengine () to start game on easy game; EasyGame.onCreate (); Here is the Rokon GameEngine code, I am trying to use, I have made sure to add the library and other directories, which was already using it ....  > 
  import com.stickycoding.rokon.DrawPriority; Import com.stickycoding.rokon.RokonActivity; Public class game engine expands rockonwitivity {public static final float GAME_WIDTH = 320f; Public stable last name GAME_HEIGHT = 480f; Private game screen view; Creating at Public Zero () {debugMode (); ForceFullscreen (); ForcePortrait (); SetGameSize (GAME_WIDTH, GAME_HEIGHT); SetDrawPriority (DrawPriority.PRIORITY_VBO); SetGraphicsPath ("texture /"); CreateEngine (); } Public Zero onLoadComplete () {textures.load (); SetScene (scene = new gaming ()); }}  

It may be that they are not compatible with each other and I have to stop the Arcon from the beginning, but this should be a way of working.

I am playing with code and debugger who is trying to figure out which part of code does not work, and error occurs when I call the engine (); If he helps everyone ... Some of the other codes can be commented to comment, so Ive compressed it down from that line.

You are using forcePortrait (). Have you set orientation for illustration for this activity in the manifest?


Comments