What is the error?
BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:1100: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:1114: exec returned: 1
Is this the first compiler error (ie no APK files have been created) or second stage (in which case your virtual machine isn't running; your device doesn't accept unsigned applications or you have run out of space on your device).
The first error how to fix it?
ok emulator problems solved.
Unfortunately, graphics are not visible :(
Need to put them in the Media directory and load from there - it does all work well.
THX :) it works perfectly :D
No problem!
I made a bouncing ball on background. Is a test project. But too slow...
I try to polyvector.
It is also slow.
I'll get it right?
x=0
y=0
LOADSPRITE "Media/bkg.bmp",0
LOADSPRITE "Media/ball.png",1
/// rugalmas pattogás
start:
xpos=160 //posx
ypos=100 //posy
a=RND(50)+150 //szög (0-jobbra) (180-balra)
v=RND(3)+7 //sebesség
g=0.8 //gravitáció
t=0
repules:
/// kirajzolás
STARTPOLY 0 // Bitmap = No.0
POLYVECTOR 0, 0, 0, 0, RGB(255, 255, 255)
POLYVECTOR 0, 320, 0, 320, RGB(255, 255, 255)
POLYVECTOR 240, 320, 240, 320, RGB(255, 255, 255)
POLYVECTOR 240, 0, 240, 0, RGB(255, 255, 255)
ENDPOLY
STARTPOLY 1 // Bitmap = No.1
POLYVECTOR 0+x, 0+y, 0, 0, RGB(255, 255, 255)
POLYVECTOR 0+x, 30+y, 0, 30, RGB(255, 255, 255)
POLYVECTOR 30+x, 30+y, 30, 30, RGB(255, 255, 255)
POLYVECTOR 30+x, 0+y, 30, 0, RGB(255, 255, 255)
ENDPOLY
/// röppálya számítás
x=v*t*SIN(a)+xpos
y=v*t*COS(a)+(g/2)*(t*t)+ypos
//
IF x>210 OR x<0 OR y<0 OR y>290
xpos=x
ypos=y
v=v-0.3 //sebesség (surlódás)
t=0
IF v<0 THEN v=RND(3)+7
IF x>210 OR x<0
a=-a
xpos=x
ypos=y
v=RND(3)+14
ENDIF
IF y<0
y=-ypos
ENDIF
IF y>290
xpos=x
ypos=y
v=v-0.5 //sebesség (surlódás)
ENDIF
ENDIF
//
SHOWSCREEN
t=t+1
GOTO repules
is code not perfect only test... :)
Edit: Changed to code-blocks /Moru
tel: vodafone 858 smart
pfff... :)
it is...
That device has a 528 MHz ARM 11 (apparently, which is odd as ARM 6/7 is usually used).
It might be worth trying my sprite speed tester at https://play.google.com/store/apps/details?id=com.unmap.spritespeedtester&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS51bm1hcC5zcHJpdGVzcGVlZHRlc3RlciJd (https://play.google.com/store/apps/details?id=com.unmap.spritespeedtester&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS51bm1hcC5zcHJpdGVzcGVlZHRlc3RlciJd)
And see what FPS/Average FPS you get. My Samsung Galaxy Mini manages 16 non-rotating and non-scaling sprites with anti-aliasing at 14.6 FPS. Changing to use POLYVECTOR increases the FPS to around 36FPS
Increase to 122 and we have 15FPS although FPS increases when POLYVECTOR isn't used...
Language Timothy!
[EDIT] Ian
Possible to increase speed? I want to use glbasic.
Make sure that you are using the latest GLBasic version as there were a few unneeded debug statements in previous versions.
Remember to use the release APK file too.
Just dont expect PC level performance - mobile phones aren't near that level yet...
glbasic ver.: 10.283
downloaded games are fast :(
I can not develop gbasic to android market sale.
Should be considered the weaker models.
:help:
It runs very fast here on my Android machine.
What can you do about it ? Not much, I'm afraid - the code is okay and can't really be usefully optimised, and if downloaded files run fine then the system must be doing something with it - perhaps too much debug data or too many applications or background stuff running.
My game perfectly work in gp2x wiz.
gp2x wiz would be better than vodafone 858?
unbelievable but it is possible :)
How does the APK file run ?
[attachment deleted by admin]
The gulf between weaker Android devices and powerful Android devices is huge. The Nook Color, which I guess would be considered a mid to mid-low range device, won't run any GLBasic app I throw at it at full 60 FPS and popular apps like Triple Town can slow to a crawl with graphical artifacts showing up too. The Galaxy S2 on the other hand is so damn fast it feels like its made of dark magic from another dimension.
Unfortunatly the vodafone 858 doesnt have a GPU, and only a 528 Mhz CPU, colud this be the reson for it being slow ?
It's also not exactly helped by all the rubbish Chinese devices around :)
nem apk futtatom gp2x :)
gp2x-re építm
kód megegyező
MrTAToad: Látom a videót tökéletes
figyelmen kívül hagyom a vodafon :)
köszönöm a sok segítséget nektek!
SORRY :)
apk not run gp2x
gp2x from building
the same code
MrTAToad: I see the video perfectly
ignore the Vodafone
thank you a lot of help to you!
You need to compile for the Gp2X to be able to run it on that device.