Launching torque after app is loaded...
by Ecliptic · in iTorque 2D · 02/23/2010 (2:44 pm) · 4 replies
Hello again guys, been a long time since I last posted here. I had a contract job who has been eating up all my free time and I been wanting to get back into torque development for awhile. I got a contract that wants to have a game inside of a web application and I thought it might be quite interesting to try. Ofcourse I could probably build everything from inside of the engine but I was wondering if anyone has found out how to stop Torque form loading until you give the command?
I think this would be ideal for me since I could develop everything as a normal iPhone application and when the user clicks the "Goto Game" button, Torque will then load the project up. I am sure I could just dig around the header files and what not and see how I could come up with a way to exclude Torque from loading automatically but I was wondering if anyone had experience doing this and if they have an good tips in doing so? Also, how did it perform?
Thanks guys,
Dane
I think this would be ideal for me since I could develop everything as a normal iPhone application and when the user clicks the "Goto Game" button, Torque will then load the project up. I am sure I could just dig around the header files and what not and see how I could come up with a way to exclude Torque from loading automatically but I was wondering if anyone had experience doing this and if they have an good tips in doing so? Also, how did it perform?
Thanks guys,
Dane
#2
Seems like it might be easier to just program the database side of the application using the iPhone SDK since I will need to navigate through tables and then have the game launch torque when the user wishes to actually play the game.
This brings up another issue, when they exit the Torque game, would it go back into the application or back to the home screen? Porbably not an major issue but I would think it would go to the home screen.
Thanks
Dane
02/26/2010 (8:40 am)
Thanks for the heads up. I agree that this may seem quite strange for most since I wouldn't have done this myself but I have a request from a Client who wants an application developed. Their application would use most of the standard iPhone code for table views and accessing a data base and then they want a mini-game inside of the application as well.Seems like it might be easier to just program the database side of the application using the iPhone SDK since I will need to navigate through tables and then have the game launch torque when the user wishes to actually play the game.
This brings up another issue, when they exit the Torque game, would it go back into the application or back to the home screen? Porbably not an major issue but I would think it would go to the home screen.
Thanks
Dane
#3
Sorry to bother you with a simple question but what handler controls the launching of the game? I am digging through all the .mm and .h files and it is quite confusing. I am assuming I will have to create some sort of boolean that will bypass that handler until set to true? Any help would be truly appreciated, the client would like to have this within the next 5 days but I don't think I will be able to help them out if I can not get torque loading on command.
Thanks a million in advance!
Dane
03/01/2010 (11:00 am)
Marc, Sorry to bother you with a simple question but what handler controls the launching of the game? I am digging through all the .mm and .h files and it is quite confusing. I am assuming I will have to create some sort of boolean that will bypass that handler until set to true? Any help would be truly appreciated, the client would like to have this within the next 5 days but I don't think I will be able to help them out if I can not get torque loading on command.
Thanks a million in advance!
Dane
#4
03/01/2010 (12:21 pm)
What you are looking for is likely in game/main.cc
Torque 3D Owner Marc Dreamora Schaerer
Gayasoft
I've not done that as I don't see much reason to even consider it. either its a game or it isn't out of my sight. its not like you can make an app that serves as game store and sell the games without going through an ugly long fight with apple (see C64 emulator)