Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
cgeboers
Old
(Last edited by cgeboers; 26th August 2008 at 07:56 PM.) Reason: New release
#1  
Member - OP
Thanks Meter 0
Posts: 86
Join Date: Jan 2008
Location: Schriek
Default [APP]SensorMaze - a little game

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.
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.
Attached Thumbnails
Click image for larger version

Name:	SensorMaze01.png
Views:	16421
Size:	9.9 KB
ID:	104525   Click image for larger version

Name:	SensorMaze02.png
Views:	3843
Size:	9.4 KB
ID:	104526  
Attached Files
File Type: cab SensorMaze-01.CAB - [Click for QR Code] (26.8 KB, 33068 views)
File Type: zip SensorMaze-sources.zip - [Click for QR Code] (25.2 KB, 3943 views)
 
keyz86
Old
#2  
Senior Member
Thanks Meter 42
Posts: 281
Join Date: Feb 2008
Location: Southend
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
Old
#3  
Senior Member
Thanks Meter 0
Posts: 176
Join Date: Jul 2008
Location: Florida
Quote:
Originally Posted by cgeboers View Post
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.

If you like my work, please donate using the links below.

Current Projects:
Ticker Tape - Get stock quotes - [FAQ] [donate here]
Video Poker for the Diamond! - [donate here]


HTC Touch Diamond
ROM: 1.93.456.2 WWE
Radio: 1.00.25.05
 
Mike Wagstaff
Old
#4  
Junior Member
Thanks Meter 0
Posts: 17
Join Date: Jan 2005
Really like the concept - gave it a play, and it works well! Looking forward to new and improved versions!
Mike Wagstaff
 
swmenzies
Old
#5  
swmenzies's Avatar
Member
Thanks Meter 1
Posts: 61
Join Date: Aug 2008
Location: London
Great, Cheers dude
 
horstborsch
Old
#6  
horstborsch's Avatar
Senior Member
Thanks Meter 2
Posts: 209
Join Date: Jan 2008
Some screens would be nice!


Phone: HTC HD2
original ROM
ROM-Version: 1.66.407.1 GER
ROM-Date: 01/11/10
Radio: 2.07.51.22_2
Protocol: 15.32.50.07U
 
cgeboers
Old
#7  
Member - OP
Thanks Meter 0
Posts: 86
Join Date: Jan 2008
Location: Schriek
Default SensorMaze - suggestions

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
Old
#8  
Member
Thanks Meter 0
Posts: 87
Join Date: Aug 2008
Quote:
Originally Posted by cgeboers View Post
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
Old
#9  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Aug 2008
Location: Ajax
Default SensorMaze mouse

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
Old
#10  
Banned
Thanks Meter 6
Posts: 1,632
Join Date: Jul 2008
Location: Brooklyn
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.

 
Post Reply+
Tags
game, sensor
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

XDA University: Crafting Recovery-Flashable Packages

Those of us who use Linux on a day to day basis don’t think twice about sinking … more

Side-Swiping Multitasking with Kakudo

Recovering iPad users may still remember the multitasking function where you can swipe left or right to … more

Learn to Edit Graphics for your Development Work

The importance of good and appropriate graphics for your development work is undeniable. Be … more