Go Back   xda-developers > HTC Diamond: Touch Diamond, MDA Compact IV > Touch Diamond, MDA Compact IV Themes and Apps


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st August 2008, 05:24 PM
cgeboers cgeboers is offline
Member
 
Join Date: Jan 2008
Location: Schriek
Posts: 84
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 Images
File Type: png SensorMaze01.png (9.9 KB, 11168 views)
File Type: png SensorMaze02.png (9.4 KB, 3261 views)
Attached Files
File Type: cab SensorMaze-01.CAB (26.8 KB, 27075 views)
File Type: zip SensorMaze-sources.zip (25.2 KB, 2849 views)

Last edited by cgeboers; 26th August 2008 at 08:56 PM.. Reason: New release
Reply With Quote
Sponsored Links

  #2  
Old 1st August 2008, 05:45 PM
keyz86 keyz86 is offline
Member
 
Join Date: Feb 2008
Location: Basildon
Posts: 78
Default

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
Reply With Quote

  #3  
Old 1st August 2008, 06:18 PM
GeckoDev GeckoDev is offline
Senior Member
 
Join Date: Jul 2008
Location: Florida
Posts: 176
Default

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
Reply With Quote

  #4  
Old 1st August 2008, 07:03 PM
Mike Wagstaff Mike Wagstaff is offline
Junior Member
 
Join Date: Jan 2005
Posts: 17
Default

Really like the concept - gave it a play, and it works well! Looking forward to new and improved versions!
__________________
Mike Wagstaff
Reply With Quote

  #5  
Old 3rd August 2008, 03:13 PM
swmenzies swmenzies is offline
Junior Member
 
Join Date: Aug 2008
Location: London
Posts: 10
Default

Great, Cheers dude
Reply With Quote

  #6  
Old 3rd August 2008, 03:36 PM
horstborsch's Avatar
horstborsch horstborsch is offline
Senior Member
 
Join Date: Jan 2008
Posts: 192
Default

Some screens would be nice!
__________________
Phone: O2 XDA Diamond
original ROM
ROM-Version: 1.93.207.2 GER
ROM-Date: 08/12/08
Radio: 1.0025.05
Protocol: 52.29.25.12U
Reply With Quote

  #7  
Old 4th August 2008, 10:12 PM
cgeboers cgeboers is offline
Member
 
Join Date: Jan 2008
Location: Schriek
Posts: 84
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.
Reply With Quote

  #8  
Old 13th August 2008, 07:38 PM
hkpeople hkpeople is offline
Member
 
Join Date: Aug 2008
Posts: 71
Default

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.
Reply With Quote

  #9  
Old 16th August 2008, 09:44 AM
taboka taboka is offline
Junior Member
 
Join Date: Aug 2008
Location: Ajax
Posts: 2
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.
Reply With Quote

  #10  
Old 16th August 2008, 10:24 AM
Black93300ZX Black93300ZX is offline
Banned
 
Join Date: Jul 2008
Location: Brooklyn
Posts: 1,658
Default

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.
Reply With Quote

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

Forum Jump


All times are GMT +1. The time now is 05:02 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.