PDA

View Full Version : [APP][updated 25/08/2008 - Ver 0.4] YABGBT - Yet Another Ball Game Based on Tilt


hellgod
6th August 2008, 11:43 PM
Hy Guys,

Here is my first dev for the touch Diamond.
It is a kind of juggle ball game using tilt sensor SDK and XFlib.

It is just a test for me, so I don't kown if i will had time to improve it.

Ver 0.4.1 [11/01/2009]:
Added : Suport for Touch HD

Ver 0.4 [25/08/2008]:
Added : Now the backlight is allways on
Added : about screen

Ver 0.3.1 [22/08/2008]:
Added : You can chose if the camera follow the ball or the base
Added : Sound when ball hit the base

Ver 0.3 [21/08/2008]:
Added : Biggest playing aera

Ver 0.2 [10/08/2008]:
Added : Menu to select difficulty level


p.s. the game is also playable with stylus, so it is not reserved to the diamond

Riel
6th August 2008, 11:49 PM
Hey, that plays quite allright!

First things to polish up would be a higher ball res, a nice background and another cooler paddle image. Bouncesound ? :P

But gameplay is pretty great already, well done !! Got it bouncing for about 5 minutes and enjoyed it :p

Sergio PC
7th August 2008, 12:46 AM
Awsome gonna chek it out after the Dammm JOb!

Cheers and thanks!

an123
7th August 2008, 12:08 PM
cool...will try it out asap

Trem
7th August 2008, 12:18 PM
Pretty cool little app. Good work :)

potiron4o
7th August 2008, 05:10 PM
Stupid question... But how to play?

hellgod
7th August 2008, 05:20 PM
Stupid question... But how to play?

the scene is view by the top.. so move your phone to juggle with the ball

surur
9th August 2008, 05:00 PM
Video of the game here.
http://wmpoweruser.com/?p=621

Great game.

May I suggest to the developer that he may want to also make the square bigger and smaller based on the height of the ball, and further make the background dynamic, so that it e.g. moves in the opposite direction to the ball, to exploit the paralax effect and give the user a feeling they are actually looking into a 3 dimensional box.

Surur

hellgod
10th August 2008, 07:16 PM
tanks for the video and the review.
I will think about adding paralax effect in the next weeks !

hellgod
22nd August 2008, 03:06 AM
update 0.3 (21/082008)

new playing aera !

hellgod
22nd August 2008, 01:10 PM
update 0.3.1 (22/082008)

Now you can chose if the camera will follow the ball or if it will follow the base!

I Need Help :
I hope some Dev will read this,
this game use the Tilt sensor, so the game goes to standby mode after few seconds because we don't touch screen. I don't kown how to prevent the standby mode, so if someone got an idea.....
(i use C language)



edit : the forum got a new section, so i guess my game is not in the right one, so moderator could you move this thread ! thanks

Aqrab
22nd August 2008, 01:51 PM
great work :)

ageye
23rd August 2008, 11:09 PM
update 0.3.1 (22/082008)

Now you can chose if the camera will follow the ball or if it will follow the base!

I Need Help :
I hope some Dev will read this,
this game use the Tilt sensor, so the game goes to standby mode after few seconds because we don't touch screen. I don't kown how to prevent the standby mode, so if someone got an idea.....
(i use C language)



edit : the forum got a new section, so i guess my game is not in the right one, so moderator could you move this thread ! thanks
this is c# - should work on c, too... found it on msdn and there should be an example for c, too... I just don't find the URL, so google may help (just enter something from below ;-))

public enum CEDevicePowerState
{
D0 = 0, //Full on
D1, //Low on
D2, //Standby
D3, //Sleep
D4, //Off
}

[DllImport("coredll.dll", SetLastError = true)]
static extern IntPtr SetPowerRequirement(string device, CEDevicePowerState ceDevicePowerState, uint deviceFlags, IntPtr systemState, ulong stateFlags);

[DllImport("coredll.dll", SetLastError = true)]
static extern int ReleasePowerRequirement(IntPtr handle);

[DllImport("coredll.dll", SetLastError = true)]
static extern void SystemIdleTimerReset();



on the onload i do following:

IntPtr handle = SetPowerRequirement("BKL1:", CEDevicePowerState.D0, 1, IntPtr.Zero, 0);

to release it, try the 2nd handle...

I use a timer which ticks every 10 seconds and performs this:
SystemIdleTimerReset();

I don't know if it's necessary, but I think so... hope that helps...

hellgod
24th August 2008, 07:39 PM
Thanks a lot Ageye !! it works !!

for information here is the code :

main.c :

...
...
#define POWER_DLL L"coredll.dll"

typedef enum _CEDEVICE_POWER_STATE {
PwrDeviceUnspecified = -1,
D0 = 0,
D1=1,
D2=2,
D3=3,
D4=4,
PwrDeviceMaximum=5
} CEDEVICE_POWER_STATE, *PCEDEVICE_POWER_STATE;

typedef HANDLE (WINAPI * PFN_SetPowerRequirement)(PVOID,CEDEVICE_POWER_STAT E,ULONG,PVOID,ULONG);
PFN_SetPowerRequirement pfnSetPowerRequirement;

typedef DWORD (WINAPI * PFN_ReleasePowerRequirement)(HANDLE);
PFN_ReleasePowerRequirement pfnReleasePowerRequirement;


const int POWER_NAME = 0x00000001;
const int POWER_FORCE = 0x00001000;
HMODULE hPowerlib;


...
...
...

int main(void){
...
...
hPowerlib= LoadLibrary(POWER_DLL);
pfnSetPowerRequirement = (PFN_SetPowerRequirement)GetProcAddress(hPowerlib, L"SetPowerRequirement");
pfnReleasePowerRequirement = (PFN_ReleasePowerRequirement)GetProcAddress(hPower lib, L"ReleasePowerRequirement");

HANDLE IntPtr = pfnSetPowerRequirement(TEXT("BKL1:"), D0, POWER_NAME | POWER_FORCE,NULL, 0);

...
...
pfnReleasePowerRequirement(IntPtr);
return0;
}

ageye
24th August 2008, 07:47 PM
you're welcome!

jack-2-jack
18th September 2008, 07:02 PM
I am very thanks.............:D:D:D

maximo_lider
9th November 2008, 05:57 PM
Awsome. thanks! :D:D

skynetent
6th January 2009, 04:43 PM
I have a problem with this game.
I copy it in the SD, and I execute it, but it has a problem.

The game doesn't work, and it enables the screen to send a report to microsoft.

I don't understand why it happens this.

Thanks a lot.

(sorry, my english is very bad).

hellgod
6th January 2009, 05:27 PM
I have a problem with this game.
I copy it in the SD, and I execute it, but it has a problem.

The game doesn't work, and it enables the screen to send a report to microsoft.

I don't understand why it happens this.

Thanks a lot.

(sorry, my english is very bad).

Did you use a touch Diamond ?

skynetent
6th January 2009, 05:37 PM
Oh sorry. I didn't mention it.

I use a HTC touch HD (blackstone)

Thanks.

hellgod
6th January 2009, 06:00 PM
Oh sorry. I didn't mention it.

I use a HTC touch HD (blackstone)

Thanks.

Ha ok, I will make (In the next days ;)) the modifications to enable support for touch HD!

skynetent
6th January 2009, 06:03 PM
Ok, thank you. I thought it was HD Ready (lol)

NLS
6th January 2009, 06:14 PM
now that a catchy phrase - maybe someone will use it in the future :D :D :D

andy andy
6th January 2009, 06:26 PM
Thanks you :)

hellgod
11th January 2009, 05:12 PM
new build for touch HD !! (ver 0.4.1)

gadgetuk437
16th January 2009, 12:26 PM
new build for touch HD !! (ver 0.4.1)
Not working on this HD I'm afraid (ROM 1.14xx), just get a wide black strip down the LHS of screen that eats my Start Button and doesn't give it back! (needed a S-reset to restore).

ver. 0.40 works fine when I use WVGAfix (displayed at 640x480)
HTH

henbone11
16th January 2009, 01:30 PM
I love all of these types of games. Thanks m8. Very much appreciated.

LaidbackLuc9
20th January 2009, 03:15 AM
I'm a noob, I'm sorry :(
But these are .zip files and somehow my diamond only reads .cab files...
How do I solve this?

hatori
24th January 2009, 03:53 PM
Not working on this HD I'm afraid (ROM 1.14xx), just get a wide black strip down the LHS of screen that eats my Start Button and doesn't give it back! (needed a S-reset to restore).

ver. 0.40 works fine when I use WVGAfix (displayed at 640x480)
HTH

Confirm that it can not use on HD, need to restart...

RDT
27th January 2009, 08:39 PM
Yes, this version (0.4.1) does not work on HD...

RDT
27th January 2009, 08:41 PM
I'm a noob, I'm sorry :(
But these are .zip files and somehow my diamond only reads .cab files...
How do I solve this?
Just unpack the ZIP file and copy to the device ;).

NLS
28th January 2009, 11:51 AM
that was really complex... damn, I'd never figure that out

:P

singhavs
31st January 2009, 11:48 AM
hi , i am new to this site , i am using HTC touch diamond , could plz tell me how to use these things to use it on my cell, wat i have to do with these zip files where i shud load them , do i have to load all the zip files , waiting for reply thanks
Adi






Hy Guys,

Here is my first dev for the touch Diamond.
It is a kind of juggle ball game using tilt sensor SDK and XFlib.

It is just a test for me, so I don't kown if i will had time to improve it.

Ver 0.4.1 [11/01/2009]:
Added : Suport for Touch HD

Ver 0.4 [25/08/2008]:
Added : Now the backlight is allways on
Added : about screen

Ver 0.3.1 [22/08/2008]:
Added : You can chose if the camera follow the ball or the base
Added : Sound when ball hit the base

Ver 0.3 [21/08/2008]:
Added : Biggest playing aera

Ver 0.2 [10/08/2008]:
Added : Menu to select difficulty level


p.s. the game is also playable with stylus, so it is not reserved to the diamond

singhavs
31st January 2009, 11:50 AM
Please click one of the Quick Reply icons in the posts above to activate Quick Reply.

open_source
5th February 2009, 07:59 AM
level 1 worked fine,
tried lvl 6 next, got one hit, then it got stuck and after 2 min i had to reset my diamond.

bestofstrongman
11th February 2009, 04:09 PM
i cannt play it on HD

necrotek
16th February 2009, 05:42 PM
Is there any possibility of support for non touchscreen phones? my phone has a g-sensor but does not have a touch screen, so I can not get past the start screen.

lambstone
11th July 2009, 09:01 AM
Is there any possibility of support for non touchscreen phones? my phone has a g-sensor but does not have a touch screen, so I can not get past the start screen.

which phone do you have? i didn't know that non touch screen phones has g sensor