Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - aroldo

#21
I am trying to rotate the application screen based on the device orientation.

I used the SETORIENTATION example from the GLB Help file and I added the GETORIENTATION.
I complied and run the code on my iPhone but the orientation does not change when I turn the device UP, LEFT, RIGHT or DOWN.

Does GETORIENTATION reads the actual iPhone/iPad hardware orientation sensor?
Should I saw some examples in the FORUM that use C++ code, but I am not sure If I need to use it!


Here is the code:

Code (glbasic) Select
// --------------------------------- //
// Project: Orientation
// Start: Tuesday, February 28, 2012
// IDE Version: 10.237


// SETCURRENTDIR("Media") // go to media files



// Test mode: 320x480

X_OBJSTART 0
X_OBJADDVERTEX  0, 20,  0, 0,0,0xffffff
X_OBJADDVERTEX  0,-20, 10, 0,0,0xff0000
X_OBJADDVERTEX  0,-20,-10, 0,0,0x0000ff
X_OBJNEWGROUP
X_OBJADDVERTEX   0, 20,0, 0,0,0xffffff
X_OBJADDVERTEX  30,-10,0, 0,0,0xff0000
X_OBJADDVERTEX -30,-10,0, 0,0,0x0000ff

X_OBJNEWGROUP

X_OBJADDVERTEX  10.5,-15,  10.5, 0,0,0x00ffff
X_OBJADDVERTEX  10.5, 15,  10.5, 0,0,0x00ffff
X_OBJADDVERTEX -10.5,-15, -10.5, 0,0,0x00ffff
X_OBJADDVERTEX -10.5, 15, -10.5, 0,0,0x00ffff

X_OBJEND

LOADFONT "Media/fonts/APDfont_Blue.bmp",0
SETFONT 0


LOCAL mx%, my%, b1%, b2%
LOCAL irot%  = 0
LOCAL accelx%,accely%,accelz%
LOCAL rot%
LOCAL info$ = PLATFORMINFO$("")
WHILE TRUE

accelx = GETJOYX(0)*100
accely = GETJOYY(0)*100
accelz = GETJOYZ(0)*100

rot = GETORIENTATION()

PRINT "X:"+accelx+" Y:"+accely+" Z:"+accelz, 0, 300
SELECT rot
CASE 0
PRINT "TOP ROT:"+rot, 0, 340
irot=0
CASE 1
PRINT "RIGHT ROT:"+rot, 0, 340
irot=1
CASE 2
PRINT "BOTTOM ROT:"+rot, 0, 340
irot=2
CASE 3
PRINT "LEFT ROT:"+rot, 0, 340
irot=3
ENDSELECT
IF info$="WIN32"
   IF KEY(2) THEN irot=0
   IF KEY(3) THEN irot=1
   IF KEY(4) THEN irot=2
   IF KEY(5) THEN irot=3
ENDIF

   // rotate the screen. Stays locked until you change that!
   SETORIENTATION irot

   // mouse position on screen (in screen pixels - not device)
   MOUSESTATE mx, my, b1, b2

   // print where mouse is and rotation index
   PRINT "Rot: "+irot+" Mouse: "+FORMAT$(4,0,mx)+ ", "+FORMAT$(4,0,my), 0,0


#22
How can I do localization in GLBasic for mobile app (iOS, WebOS)?
How does GLBasic knows in which country / Language it is running?
#23
Here GLBasic community!

I would like to know if there is a 2D physics library that is compatible with GLBasic,
Besides the Box2D posted by Kitty Hello http://www.glbasic.com/forum/index.php?topic=3561.0?
#24
Here is the link to my first application done in GLBasic!

https://developer.palm.com/appredirect/?packageid=com.apdconsultinginc.metrobeat

Here is the YouTube link:

http://www.youtube.com/watch?v=2k22vIiEX1c&context=C33561baADOEgsToPDskKVGUajL8FfGiykIxmQbFRo

It is a metronome for musicians.
I sent the application for approval by HP and it is posted on the HP App catalog for Palm Pre and Pre 2 phones.
I had no issues getting the app approved, thanks to Gernot and the GLBasic forum I was able to avoid the pitfalls!
I will be submitting the HP Touchpad version and the iOS for iPhone and iPad soon.
It took a while to make the application auto re-size to the appropriate device.

I developed other games for WebOS using the Mojo and Enyo frameworks.
Now I am converting them to GLBasic.


Please check it out!

The GLBasic and it's Community Rocks!!!


#25
Back in August 2011 DaCarSoft did a wrapper to call iOS  native keyboard in this post http://www.glbasic.com/forum/index.php?topic=6706.0

I am learning Xcode for iOS so be patient with me.

I am trying to compile and run his code on my iPhone, here are the steps I did:


  • I created a GLBasic project called MSG and copied the GLBasic code from DaCar example.
  • created a file called msg.mm and copied the .mm  file.
  • In GLBasic I compiled for the iPhone and copyed the msg.mm file under the XCode folder generated by the GLBasic.
  • I opened the iPhone.xcodeproj in XCode but I can't see the msg.mm.

If I try to compile in XCode I get the following errors:

Undefined symbols for architecture armv7:
  "_iOSMessageBox", referenced from:
      __ZN11__GLBASIC__14__MainGameSub_Ev in libPROGRAM.a(gpc_temp0.o)
  "_GetiOSMessageBoxValues", referenced from:
      __ZN11__GLBASIC__14__MainGameSub_Ev in libPROGRAM.a(gpc_temp0.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Help Please!!!
#26
I finally got one of my GLBasic applications to compile and run on Xcode and on the iPhone 4S.
I am running GL Basic on the
My development environment is as follows:

MacBook Pro
Processor 2.3 GHz Intel Core i5
Memory 4 GB
Mac OS X Version 10.7.2

Virtual Machine:
Oracle Virtual Box 4.0.14 running Windows XP Pro 2002 Service Pack 3

XCode 4.2

Target:
iPhone 4S
iOS 5.0.1

I got 96 warning messages about "CPU_SUBTYPE_ARM_ALL subtype is deprecated".

Here is a copy of the error log:


Ld "/Users/Aroldo's Mac/Library/Developer/Xcode/DerivedData/Metronome-eaqoxgdwcuqcqxgshaicgqrxztou/Build/Products/Debug-iphoneos/iPhone.app/iPhone" normal armv7
    cd "/Users/Aroldo's Mac/Documents/Metronome"
    setenv IPHONEOS_DEPLOYMENT_TARGET 3.0
    setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk "-L/Users/Aroldo's Mac/Library/Developer/Xcode/DerivedData/Metronome-eaqoxgdwcuqcqxgshaicgqrxztou/Build/Products/Debug-iphoneos" "-L/Users/Aroldo's Mac/Documents/Metronome/Lib" "-F/Users/Aroldo's Mac/Library/Developer/Xcode/DerivedData/Metronome-eaqoxgdwcuqcqxgshaicgqrxztou/Build/Products/Debug-iphoneos" -filelist "/Users/Aroldo's Mac/Library/Developer/Xcode/DerivedData/Metronome-eaqoxgdwcuqcqxgshaicgqrxztou/Build/Intermediates/Metronome.build/Debug-iphoneos/iPhone.build/Objects-normal/armv7/iPhone.LinkFileList" -dead_strip -lstdc++ -miphoneos-version-min=3.0 -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework AudioToolbox -framework CoreLocation -framework OpenAL -lGLBasiciPhone-egl -lpng-gf -lPROGRAM -framework MediaPlayer -o "/Users/Aroldo's Mac/Library/Developer/Xcode/DerivedData/Metronome-eaqoxgdwcuqcqxgshaicgqrxztou/Build/Products/Debug-iphoneos/iPhone.app/iPhone"

ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(iPhoneAppController.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(iPhoneMain.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(iCadeReaderView.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(iPhoneEAGLView.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(glb-full.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(hthread.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(glb_pc.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libPROGRAM.a(gpc_temp0.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libPROGRAM.a(gpc_tempg.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(OpenGLRainbows.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(astarplanner.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(planner.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(GFCompression.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(gf_sockets.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(blowfish.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(fbuffers.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(Rainbows3D.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(htmutex.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(DXSound.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(DXInput.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(glb3D.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(nodehashtable.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(nodehashtable-iterator.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(node.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(MeshObject.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(3DMath.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(gf_png.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(gf_jpg.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(pngset.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(pngwrite.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(pngread.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(pngrtran.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(pngrio.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(pngerror.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(pngmem.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(pngtrans.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(pngwio.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(png.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jerror.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jcapistd.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jcapimin.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jdatadst.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jdapimin.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jdapistd.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jcparam.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jdatasrc.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libGLBasiciPhone-egl.a(iPhoneSoundEngine.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(inflate.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(crc32.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(pngrutil.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(pngget.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(pngwutil.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(pngwtran.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(deflate.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jcomapi.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jdmarker.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jdinput.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jdmaster.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jmemmgr.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jcmarker.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jcinit.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jcprepct.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jcmainct.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jcsample.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jcphuff.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jchuff.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jccolor.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jcmaster.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jcdctmgr.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jccoefct.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jutils.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jdphuff.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jquant1.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jquant2.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jdmerge.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jdcoefct.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jdsample.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jdcolor.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jdhuff.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jdmainct.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jddctmgr.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jdpostct.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jmemnobs.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(trees.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(zutil.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(compress.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(inffast.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(inftrees.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(adler32.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jfdctflt.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jfdctfst.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jfdctint.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jidctred.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jidctint.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jidctflt.o)
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/Aroldo's Mac/Documents/Metronome/Lib/libpng-gf.a(jidctfst.o)
#27
Happy New Year to all !

I wounder if there is a way to know, programatically, if GLBasic is running on a PC or a mobile platform?
#28
The GLBasic Online Manual English page is broken!
I tried in 3 different browsers.

If I access the GLBasic Online Manual Germany it works fine!
#29
I wrote subs to read and save my game data.
If it is the first time the LoadGame will load default data, because there is not brick.ini file.
When the game is over I save the game data.
The second time I start the game it tries to read the brick.ini file and fails with the  error : No file!

What is the problem?
I am running GLBasic IDE, Version: 10.118 on Windows.
Code (glbasic) Select

// ------------------------------------------------------------- //
// ---  SAVEGAME  ---
// ------------------------------------------------------------- //
SUB saveGame:
LOCAL st=FALSE
LOCAL info$ = PLATFORMINFO$("DOCUMENTS")
LOCAL gameconfig$ = info$+"/brick.ini"
DEBUG " ****FILE:"+gameconfig$
DEBUG " ****name5:"+name5$+" top5:"+top5%
DEBUG " name4:"+name4$+" top4:"+top4%
DEBUG " name3:"+name3$+" top3:"+top3%
DEBUG " name2:"+name2$+" top2:"+top2%
DEBUG " name1:"+name1$+" top1:"+top1%
st=OPENFILE (1,gameconfig$,FALSE)

IF (st)
DEBUG " SAVEGAME"
WRITELINE 1,control$
WRITELINE 1,name5$
WRITELINE 1,name4$
WRITELINE 1,name3$
WRITELINE 1,name2$
WRITELINE 1,name1$
WRITELONG 1,top5%
WRITELONG 1,top4%
WRITELONG 1,top3%
WRITELONG 1,top2%
WRITELONG 1,top1%
WRITELONG 1,hiscore%
WRITEBYTE 1,sound%
WRITEBYTE 1,balls%
WRITEBYTE 1,level%
CLOSEFILE 1
ENDIF

ENDSUB // SAVEGAME




// ------------------------------------------------------------- //
// ---  LOADGAME  ---
// ------------------------------------------------------------- //
SUB loadGame:
LOCAL st=FALSE
LOCAL info$ = PLATFORMINFO$("DOCUMENTS")
LOCAL gameconfig$ = info$+"/brick.ini"

st=OPENFILE (1,gameconfig$,TRUE)
DEBUG " LOADGAME st="+st


IF st = TRUE
DEBUG "Reading File"
READLINE 1,speed$
READLINE 1,control$
READLINE 1,name5$
READLINE 1,name4$
READLINE 1,name3$
READLINE 1,name2$
READLINE 1,name1$
READLONG 1,top5%
READLONG 1,top4%
READLONG 1,top3%
READLONG 1,top2%
READLONG 1,top1%
READLONG 1,hiscore%
READBYTE 1,sound%
READBYTE 1,balls%
READBYTE 1,level%
CLOSEFILE 1
ELSE
DEBUG "Default Data"
top1%=80;top2%=140;top3%=200;top4%=240;top5%=380
name1$="Sampa";name2$="Daniel";name3$="Carol";name4$="Gabriel";name5$="Tico"


ENDIF

DEBUG " ---- name5:"+name5$+" top5:"+top5%
DEBUG " name4:"+name4$+" top4:"+top4%
DEBUG " name3:"+name3$+" top3:"+top3%
DEBUG " name2:"+name2$+" top2:"+top2%
DEBUG " name1:"+name1$+" top1:"+top1%
ENDSUB // LOADGAME

#30
GLBasic - en / Text Color
2011-Sep-16
It is possible to change the color of text displayed in GLBasic?

I am trying the equivalent of this Javascript:

ctx.fillStyle = RGB(255,255,0);       // ???????????
ctx.fillText("Presents", 160, 240); //  PRINT "Presents", 160, 240
#31
Kitty Hello,

I am porting my BrickBuster game from ENYO(WebOS) to GLBasic.
How can I open the Virtual Keyboard?

In PDL we invoke it like this:

Syntax

PDL_Err PDL_SetKeyboardState(PDL_bool bVisible)

Returns

PDL_NOERROR - Success
PDL_ECONNECTION - Could not communicate with the card.
PDL_EOTHER - Not allowed to bring up the keyboard as a plugin.
#32
How can I implement an array of constants like this one in Javascritpt:

this.GAMESTATE ={TEST1:0,TEST2:1,TEST3:2,TITLE:3,DEMO:4,START:5,
                  PLAYING:6,EXPLODING:7,ENDLEVEL:8,GAMEOVER:9
};

And and Array of objects like this on in Javascript;

this.stars = [
         new this.star(), new this.star(), new this.star(), new this.star(), new this.star(), new this.star()
      ];
#33
I finaly made the decision and purchased the GLBasic Premium license today.
I am very happy with GLBasic, It is a great tool for the price, I wish I had know about it before.
Now I am learning how to get the best out of it.
I am converting one of my WebOS games to GLBasic.

Great job GLBasic team!!!
#34
Does any one have a sample GLBasic project for WebOS, that you can share?
Or some guide lines of what to include in the Options so my GLBasic projects can bet targeted to Pre, Pre 2 and HP Touchpad?


Thanks,
#35
I have developed applications for WebOS for the last 3 years (Mojo and Enyo) for Palm Pre, Pre 2 and HP Touchpad.
Can you let me know when GLBasic will support the HP Touchpad screen size 1024 x 768?
#36
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.