PDA

View Full Version : [APP]SensorMaze - a little game


cgeboers
1st August 2008, 05:24 PM
I wrote this little program, called SensorMaze. It generates mazes and allows you to steer a little blue dot using the movement sensors in the HTC Diamond. It is based on the original SensorTest program and since it has been a while since I programmed for any PDA, it is a bit simple.

Usage:

Try to send the blue dot to the red dot by tilting your Diamond in the required directions.

Commands:
- New Maze: create a new maze in the same level
- Next Level: increase the complexity.

As mentioned, it is my first attempt, so there is still some work that needs to be done.

TODO:
- Implement timer, so you can compete against yourself
- remove the "Position" text and replace with timer output
- MessageBox instead of Dialog ?
- Replace the blue dot with a "ball" like structure
- Release the source code (after cleaning it a bit more)

Question:
When I try to use MessageBox from my code, the MessageBox fails to close and I can never get back to the Shell without a reset. Any one any idea what I could be doing wrong here ?

Changes ( 07-Aug-2008)

- Replaced the target with a cheese and the moving dot with a mouse icon.
- Added some text to show the current level.
- Initial level is lowered, so that kids could play it too.

Screenshots are provided in the attached .png files. I also added the sources, so that other people can see how you can use the acceleration meter

If you like my applications, consider a donation to Koushik (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=koushik_dutta%40yahoo%2ecom&item_name=Support%20Development%20Projects&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8).
After all it is thanks to his (and the many other developers) work and readiness to share it that I can write these programs. I (currently) still get enough satisfaction in writing these programs.

keyz86
1st August 2008, 05:45 PM
just tested, awsome little game! keep working on this! perhaps add some vibration and sound feedback, maybe change the dots to somthing like a mouse and some cheese? if you changed it to a ball it may be too simaler to teeter?

Adam

GeckoDev
1st August 2008, 06:18 PM
Question:
When I try to use MessageBox from my code, the MessageBox fails to close and I can never get back to the Shell without a reset. Any one any idea what I could be doing wrong here ?

I haven't had any issues using C#.Net ... what are you writing in? The only thing I can think of is to make sure the MessageBox is shown from the same thread that created the form.

Mike Wagstaff
1st August 2008, 07:03 PM
Really like the concept - gave it a play, and it works well! Looking forward to new and improved versions! :)

swmenzies
3rd August 2008, 03:13 PM
Great, Cheers dude :)

horstborsch
3rd August 2008, 03:36 PM
Some screens would be nice!

cgeboers
4th August 2008, 10:12 PM
Thanks for the reviews. I will implement the changes, like the mouse and the cheese. I am currently working on an other "gadget" application, as soon as that one is finished I will take care of it.

As for the question about the MessageBox, I use C++ in this program and have a workaround, so I will let it at rest for the moment.

I will try to get some screendumps too later.

hkpeople
13th August 2008, 07:38 PM
I wrote this little program, called SensorMaze. It generates mazes and allows you to steer a little blue dot using the movement sensors in the HTC Diamond. It is based on the original SensorTest program and since it has been a while since I programmed for any PDA, it is a bit simple.

Usage:

Try to send the blue dot to the red dot by tilting your Diamond in the required directions.

Commands:
- New Maze: create a new maze in the same level
- Next Level: increase the complexity.

As mentioned, it is my first attempt, so there is still some work that needs to be done.

TODO:
- Implement timer, so you can compete against yourself
- remove the "Position" text and replace with timer output
- MessageBox instead of Dialog ?
- Replace the blue dot with a "ball" like structure
- Release the source code (after cleaning it a bit more)

Question:
When I try to use MessageBox from my code, the MessageBox fails to close and I can never get back to the Shell without a reset. Any one any idea what I could be doing wrong here ?

Changes ( 07-Aug-2008)

- Replaced the target with a cheese and the moving dot with a mouse icon.
- Added some text to show the current level.
- Initial level is lowered, so that kids could play it too.

Screenshots are provided in the attached .png files. I also added the sources, so that other people can see how you can use the acceleration meter


have other sensor game.

taboka
16th August 2008, 09:44 AM
I love this little game. However I found that in challenging myself and advancing the game to higher levels, the little white mouse became rather difficult to see as he became smaller. Perhaps changing the colour f the mouse or the colour of the paths in the maze. Currently the mouse and the maze are the same colour. other than that the game is great.

Black93300ZX
16th August 2008, 10:24 AM
Awesome program, but I feel like I'm epileptic now, the screen was constantly flickering during it, I think it's a compatibility issue with my Raphael. :(

maximo_lider
23rd August 2008, 02:29 PM
Awesome program:p

kphillips85
5th September 2008, 03:01 AM
hmmm...wasn't able to get it working.

Got error (Unable to load Sensor DLL).

Any ideas?

kami076
11th September 2008, 08:52 AM
unable to load DLL? can u tell me how to fix it?

fadich
18th November 2008, 10:09 PM
that's a fun little game, thanks :)

Lilith_v2
29th May 2009, 10:07 PM
Nice man : D

fadoody
9th August 2009, 07:19 PM
Hi, when i try to lunch the game, i got sensor dll, what shell i do to run the game ? i have samsung omnia i900

bugsykoosh
10th August 2009, 02:46 AM
Hi, when i try to lunch the game, i got sensor dll, what shell i do to run the game ? i have samsung omnia i900

you need to replace the sensor.dll file with the Samsung's...it is preinstalled with HTCs. Change that file and it should work fine.

gamer1212
10th September 2009, 08:44 PM
I replaced sensor.dll with Samsung's .. but the problem is still persisting.. what shall i do now?

gokhankeskin
8th February 2010, 08:56 AM
It would be nice if this could work on our LGs.
(the working LG sensors.dll created by iamspv at thread number 471591 in this forum.)