GLBasic - WebOS

Previous topic - Next topic

Crivens

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
Current fave quote: Cause you like musicians and I like people with boobs.

aroldo

Crivens,

Now I have to add my Avatar!
[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2

erico

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

aroldo

Kitty Hello,

Here is the program.
Project Options:
Program Plataform: WebOS
Resolution: 320 x 480


Code (glbasic) Select
///////////////
// 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

[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2

Ian Price

#19
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).

Code (glbasic) Select

//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.
I came. I saw. I played.

aroldo

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!
[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2

erico

hey aroldo,
great, at least I didn´t fail completely on the avatar joke!
welcome!

BdR

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). 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:
Code (glbasic) Select
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?

Ian Price

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.
I came. I saw. I played.