I am testing GLBasic on a Palm Pre2, but I am not happy with the results.
Is there a guide to develop GLBasic for mobile phones and Tablets?
I compiled some of the samples and they worked fine on Windows, after I packed them and installed on the Palm Pre2, the apps did not displayed properly.
please post the program you tried and describe the differences.
GLB's results for the Pre2 are amazing. There have been loads of successful GLB apps made available on the App Catalog - see this thread here - http://www.glbasic.com/forum/index.php?topic=6088.0 Have you tried out any of those?
I suspect that you aren't doing something not quite right. Have you gone into the project/Options tab and set the "platform configuration" for WebOS? Are you making sure that the orientation is correct (480x320 or 320x480) in the "Resolution" text-box?
Are you compiling for "WebOS" and not "Palm-Pixi"?
Are you sure that your device drivers are set up correctly?
It is indeed possible that there are some sample programs that don't function/display correctly on the Pre, but I've not had a single issue with any of my apps working on pc but not on Pre2. As Kitty stated, please post the sample program that isn't working on your Pre2.
Yeah, I was going to say. My pre2 is perfect so far compared to the PC. Total 1 to 1 stuff so far. Even better than iOS really (which is annoying me because of 3D lighting issues).
My Touchpad is having problems but then everyone is and Gernot will hopefully onto the issues once he gets his own TP.
Cheers
Team,
Thanks for the reply, I appreciate it, just want to make sure before I purchase the GLBasic SDK premium.
I will try different orientation
I found out that there are some GLBasic commands that are deprecated in the tutorial examples.
I still have to learn how to use the device features, such as accelerometer, in GLBasic.
It's all pretty easy. Accelerometer for instance is just getting the values from getjoyx, getjoyy or getjoyz. That's it really. So far this has worked fine for me on iOS, Android, and on WebOS (Pre2 - the TP screwed up a bit but that's all in the problems listed for Gernot to have a look at).
Cheers
I just typed pretty much exactly the same response as Crivens, and some nice code too. But he beat me to the post, so I deleted my post. There's no point in saying anything else.
:P
That's because I'm awesome at typing. Have you seen my avatar? You should do. It's awesome. :)
Cheers
Ps. And now to get my wife to watch the epic life changing experience that is Darkplace! Not an easy task even though I routinely sit through films like the Notebook and the like...
Guys,
you all are awesome! :good:
The whole forum (and GLBasic) is awesome! xD
Not as awesome as my avatar. It's totally awesome. Must stop watching Big brother with Jedward. Awesome.
Cheers
oh my, pleeease no big brothers!!
but sure this is a community I missed from the days of amos factory.
although, muuuuch better
For me it's like the old DB forums. I didn't even know there were forums like this when I was heavily into STOS
Cheers
stos...did you come up with something at those times? what was it?
I got a proper net connection here at 1995, just after I came back graduated from the US (MI).
At that time, amos factory and aminet were things I dwelled into.
I guess it was my best code productive time...working on getting that back.
A few things but nothing you can find. Think i started STOS in about 1990 and had net access in 1991 but didn't realise there was boards for it.
Biggest thing I did was a dungeon master clone. Stupid beer and women in uni stopped that from being finished. Oh and a program for Terry Pratchett that I had 90% done and was almost ready with a deal through his agent and then I got a job and it fizzled out. Those were the days...
Cheers
@Crivens
Faaaather !!!!!
http://www.youtube.com/watch?v=eP7LHHR91lE
Oww, stupid work can't see that, and iPhone is saying can't load movie. Nooooo!!!! (cos until I see the video I will have to assume you are crazy).
Cheers
Crivens,
Now I have to add my Avatar!
strange, sampa is the most common nickname for sao paulo.
therefore I have seen a lot of places or even hotdog vans like that.
I fail miserably to understand all this jokes. :P
Kitty Hello,
Here is the program.
Project Options:
Program Plataform: WebOS
Resolution: 320 x 480
///////////////
// HELLO WORLD
///////////////
LOADSOUND "shoot.wav", 0,1
LOCAL h$="HELLO WORLD"
PRINT h$,100,100
LOCAL a$="My"
LOCAL b$="favourite number:"
LOCAL c= 7
// Now look!!
LOCAL c$=a$ + " " + b$ + " : " + c
PRINT c$,0,20
WHILE TRUE
LOCAL INPUT=INKEY$()
PRINT in$,0,80
IF KEY(32) = 1
PRINT "Fire",100,80
PLAYSOUND (0,0,1);
ENDIF
SHOWSCREEN
MOUSEWAIT
WEND
END
That code looks both old and awful!
I'm surprised the initial text is showing on a pc really, as it probably shouldn't - there's no SHOWSCREEN command there (or even a delay to hold it on screen).
The INPUT bit needs to be removed completely (causes an error).
If you move the "WHILE TRUE" bit to the top of the code it does actually work on the Pre. Here's the adapted code. I've removed the loadsound bit too, so you won;t hear anything, even if you press KEY(32).
//LOADSOUND "shoot.wav", 0,1
WHILE TRUE
LOCAL h$="HELLO WORLD"
PRINT h$,100,100
LOCAL a$="My"
LOCAL b$="favourite number:"
LOCAL c= 7
// Now look!!
LOCAL c$=a$ + " " + b$ + " : " + c
PRINT c$,0,20
//WHILE TRUE
//LOCAL INPUT=INKEY$()
PRINT in$,0,80
IF KEY(32) = 1
PRINT "Fire",100,80
PLAYSOUND (0,0,1);
ENDIF
SHOWSCREEN
WEND
END
That really is awful code though.
erico,
You are right.
I had a dog (beagle mix) that was black and white, and my wife named her Sampa. My kids used to call her Sampa Doggy!
I was in Sao Paulo 3 weeks ago and I saw this hot dog van and i took the picture!
Me and my wife are from São Paulo, but I leave in the US for about 19 years!
hey aroldo,
great, at least I didn´t fail completely on the avatar joke!
welcome!
Running my games on Palm device is going relatively easy so far :) But I have a question about the Palm App Catalog. On Apple devices you can use NETWEBEND to go directly to the appstore app, and open a specific app page, or review page or all apps by a developer (see this thread (http://www.glbasic.com/forum/index.php?topic=6244.msg53950)). The iOS uses an "itms-apps" protocol and I've been looking for something similar for Palm devices to open the Palm App Catalog, but I couldn't find anything.
The only thing I've figured out is that if you do this:
NETWEBEND "http://developer.palm.com/appredirect/?packageid=com.companyname.appname"
On the Palm device it will first open a browser and then automatically open the Palm App Catalog with the app. Note that if you use NETWEBEND with https:// instead of http:// it will just open the webbrowser with the app page, same as opening it on Windows.
So my questions are (question 1 is more important than question 2):
1) Can you use NETWEBEND to link directly to all apps by a Palm developer, and if so how?
2) Can you use NETWEBEND to link directly to the review page of a Palm app, and if so how?
1. No. It's not possible. I specifically asked about this on the Dev forums. You can enter your name in the App Catalog and get this info (eg enter "iprice" to see my apps), but not from code. Bonkers.
2. You can go to the purchase/review page, but I don't know about going directly to the Review page.