|
|||||||
| Register | FAQ | XDA-Portal | XDA-Wiki | Device database | Donate! | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
Another little game from me today.
This uses the same basic framework as BallPhysics, but applies it in a different way. It's pong, where your paddle is controlled by tilting the device. The controls: Up/Down change the balls speed. Left/Right change the CPU paddle speed Centre pauses The text: In the bottom left is the time in milliseconds since the last restart In the bottom right is the current score Should work on Diamond, Raphael, Blackstone, Rhodium and Topaz. It's written in C++/win32, so no nothing apart from the exe is needed. Configuration: Code:
HKCU\Software\l3v5y\GravityPong FixedVelocity= if < 0, velocity is variable, if > 0, FixedVelocity is the difference between the CPU speed and your paddle speed Changelog 0.4 - uses trig to calculate the initial ball speed so the ball travels at one speed regardless of angle, some little performance tweaks 0.3 - adds configuration of speed, and exit if mouse is within top 40 pixels of screen. 0.2 - Fixes sensor polling, and possible odd background 0.1 - Initial release
__________________
My ROMs: Diamond 28217/23529 + kitchen Leo 28014 ROM - also, WMPowerUser HD2 ROM My devices: HTC Prophet - 23529 Light HTC Diamond - 23529 Light HTC Leo - getting repaired (for £155 )Last edited by l3v5y; 13th April 2009 at 12:35 PM.. |
| Sponsored Links |
|
#2
|
||||
|
||||
|
Nice!!!
I will try it right now! [EDIT] The idea is nice, but controlling the paddle isn't working very well for me (it's almost not responding to my movements at all), and after 5 sec. it will be in a loop.
__________________
HTC Shift Windows 7 - Palm Treo 500v WM6 - HTC TyTN II WM6.1 - HTC Touch PRO WM6.1 - Samsung i780 WM6.1 - iPhone 3GS 16GB White - If it jams, force it. If it breaks it probably needed replacing anyway. -
Last edited by johanromijn; 12th April 2009 at 05:45 PM.. |
|
#3
|
|||
|
|||
|
I loaded this game onto my Touch Pro. Here is what happened:
1. Worked for about 15 seconds. Then my paddle would not respond to any movement. I tried back and forth, up and down, side to side, hard and soft shaking. 2. Shut down and tried a soft reset. Started game again and all I got was a colorful static screen but could still see the paddle moving with its white tail in the fore ground. Did I describe that well enough to understand? This game seems like it could be really cool but seems to have some issues. Any ideas? |
|
#4
|
||||
|
||||
|
Quote:
I think I've found the cause of both of those. 1. I was polling the sensor too often causing it to try and check again before it had finished the previous check. 2. I haven't noticed this, but filling the background with a black fill should sort it. Can you try the attached and see if it works? Thanks
__________________
My ROMs: Diamond 28217/23529 + kitchen Leo 28014 ROM - also, WMPowerUser HD2 ROM My devices: HTC Prophet - 23529 Light HTC Diamond - 23529 Light HTC Leo - getting repaired (for £155 ) |
|
#5
|
||||
|
||||
|
A question for potential users of this:
Anyone interested in the possibility of bluetooth based multiplayer? As in, you pair with another HTC sensor enabled device and can control one paddle while the paired device controls the other? I ask as I've just found some sample code in the WM6 SDK for "BthChat", that could provide the data transfer framework...
__________________
My ROMs: Diamond 28217/23529 + kitchen Leo 28014 ROM - also, WMPowerUser HD2 ROM My devices: HTC Prophet - 23529 Light HTC Diamond - 23529 Light HTC Leo - getting repaired (for £155 ) |
|
#6
|
||||
|
||||
|
Tnx, works better now.
Still it's hard to get the paddle "stable", but it works.
__________________
HTC Shift Windows 7 - Palm Treo 500v WM6 - HTC TyTN II WM6.1 - HTC Touch PRO WM6.1 - Samsung i780 WM6.1 - iPhone 3GS 16GB White - If it jams, force it. If it breaks it probably needed replacing anyway. -
|
|
#7
|
||||
|
||||
|
Quote:
I could probably make it configurable, but I'd need a settings app/screen to do so. If wanted, I'll do it...
__________________
My ROMs: Diamond 28217/23529 + kitchen Leo 28014 ROM - also, WMPowerUser HD2 ROM My devices: HTC Prophet - 23529 Light HTC Diamond - 23529 Light HTC Leo - getting repaired (for £155 ) |
|
#8
|
||||
|
||||
|
Quote:
Now it's bouncing from all left to all right, it's hard to control. I hope you get what I mean. Maybe it's just me who can't play this game :-)
__________________
HTC Shift Windows 7 - Palm Treo 500v WM6 - HTC TyTN II WM6.1 - HTC Touch PRO WM6.1 - Samsung i780 WM6.1 - iPhone 3GS 16GB White - If it jams, force it. If it breaks it probably needed replacing anyway. -
|
|
#9
|
|||
|
|||
|
Thanks for the lightening fast update. This is much better now. Really cool. Your are on to something really good here. A few comments:
1. I agree it is a bit hard to control. configurable would be the way to go. 2. Can you make the scoreboard a bit larger? 3. Maybe a pause button and exit button? 4. Bluetooth multiplayer would be a cool feature. Based on your lightening fast work, can we expect the new version in the next 20 minutes? just kidding . I have a short attention span. |
|
#10
|
||||
|
||||
|
Quote:
![]() 1. Configurable is about 10 lines of code (it'll be registry based, I might make a config app later) 2. Scoreboard font size is one number, so that's easy. 3. Centre button on DPAD (or return on a keyboard) will pause it, although the timer in the bottom left may continue to run 4. That may take longer as I need to find a device I can test it on (I only have on Diamond, and my Prophet doesn't do gsensors..)
__________________
My ROMs: Diamond 28217/23529 + kitchen Leo 28014 ROM - also, WMPowerUser HD2 ROM My devices: HTC Prophet - 23529 Light HTC Diamond - 23529 Light HTC Leo - getting repaired (for £155 ) |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|