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.


Topics - aroldo

Pages: 1 [2] 3
16
GLBasic - en / GLB_ON_RESUME iOS6 CRASHES
« on: 2012-Dec-28 »
Hi I am having difficulties with GLB_ON_PAUSE, GLB_ON_RESUME and GLB_ON_QUIT on iOS 6.
I am testing my code on an iPhone 4S.

I have set AUTOPAUSE TRUE in the beginning of my code.

My game starts fine the I press the "home" button and the app goes in the back ground.
When I click on my app icon, the program resumes were it stopped and them after feel seconds QUITS.
As you can see the on the Debug log below from Xcode GLB_ON_PAUSE is called and GLB_ON_RESUME is also called

I see that iOS asked the app to free memory. Can these be the reason my program is quitting  after resume?

Here is the Debug from Xcode:

Init Finalized
Loading Music: Media/sounds/intro.mp3
Status: 0
-applicationWillResignActive   -> pause
[GLB]->PAUSE
-applicationDidEnterBackground -> pause
2012-12-27 22:16:01.719 iPhone[4895:907] Received memory warning.
-applicationDidReceiveMemoryWarning - free mem=5160 kB
-applicationWillEnterForeground-> do nothing
-applicationDidBecomeActive    -> unpause
[GLB]->RESUMED
[GLB]->QUIT
Shut down GLB
Error enqueuing new buffer: -66632
Error enqueuing new buffer: -66632
Error enqueuing new buffer: -66632
glb is shut down
exit

Here a portion of  the code:
Code: GLBasic [Select]
SUB GLB_ON_QUIT:
        GOSUB saveGame
        debu ("QUIT")
ENDSUB
SUB GLB_ON_PAUSE:
        OSPaused=TRUE
        debu ("PAUSE")
ENDSUB
SUB GLB_ON_RESUME:
        OSPaused=FALSE
        debu ("RESUMED")
ENDSUB
FUNCTION debu: data_in$
        ?IFDEF IPHONE
                STDOUT "[GLB]->" + data_in$ + "\n"
        ?ELSE
                DEBUG "[GLB]->" + data_in$ + "\n"
        ?ENDIF
ENDFUNCTION

 

17
Hello GLB developers.

This is a new game console that will hit the market in 2013.
It runs on Android.
Please see details on the link below.

http://www.kickstarter.com/projects/ouya/ouya-a-new-kind-of-video-game-console

May be GLBasic will have a compiler for it.

18
GLBasic - en / GLBasic V11
« on: 2012-Jul-13 »
Gernot,

What is the status on V11? I remember reading on previous posts that it was scheduled to Summer 2012.
Are you planing to demo V11 on a video?
Is it possible to get a beta of V11? I am interested to see how the screen layout with buttons, text boxes and etc will work and the new IDE.


19
GLBasic - en / iOS screen timeout
« on: 2012-May-20 »
How can I disable the iOS screen timeout in GLBasic?

20
GLBasic - en / iAds and Promo Codes
« on: 2012-Mar-06 »
Did any one that included iAds and Promocodes for iOS devices?

Can you share some examples?

21
GLBasic - en / Device Orientation - iOS
« on: 2012-Feb-29 »
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
GLBasic - en / GLBasic App Localization
« on: 2012-Feb-27 »
How can I do localization in GLBasic for mobile app (iOS, WebOS)?
How does GLBasic knows in which country / Language it is running?

23
GLBasic - en / 2D Physics Library
« on: 2012-Feb-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
Announcements / My First GLBasic App
« on: 2012-Feb-20 »
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
GLBasic - en / XCode Compiling Warnings
« on: 2012-Jan-12 »
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
FAQ / How can I get the platform ID?
« on: 2012-Jan-04 »
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
GLBasic - en / GLBasic Web Site Problem
« on: 2011-Oct-30 »
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
GLBasic - en / Reading and Saving Game Data
« on: 2011-Sep-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
« on: 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

Pages: 1 [2] 3