Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Please help test this program


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-25-2008, 04:43 AM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 164
Default Please help test this program

I've been toying with game graphics (in the few spare moments that my schedule allows) and come up with an approach to implementing old-style game graphics. Again, think vintage arcade games like Defender or Lunar Lander.

That being said, I'm asking for some help in evaluating this approach. Those of you who are willing, please test the attached program on whatever PPC device you have, and let me know how well it works.

I am expecting the following:

1.) The game graphics should automatically adjust to the size of your screen, including both QVGA and VGA devices. The program is intended to run in landscape mode; it looks a little odd in portrait. Fixing that will come later.

2.) The game graphics should scroll (relatively) smoothly. You can adjust the turn rate of the tank using the left and right keys; pressing the down key will halt the turn.

My profuse thanks for your help with this.


Gary

Attached Files
File Type: zip tank.zip (47.0 KB, 43 views)
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #2 (permalink)  
Old 03-25-2008, 05:22 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 672
Default

Hi willisgt,

aaahhhh, those were the days...
The screen definitely reminds me on playing combatzone (aka tankzone)

I've tested you code on my iPAQ rx1950 with WM5. Unfortunately I'll get an OutOfMemoryException in sub _app_start.

Just wondering: It is it possible to start both versions on the desktop. The only difference is the form size. Maybe you have not provided a device-compiled .exe?


specci48
Reply With Quote
  #3 (permalink)  
Old 03-25-2008, 06:03 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,896
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

I too got an exception on the device (Axim X30 - WM2003SE) but I don't know what sort - It just said "Exception" . The second and subseqent times it seemed to work OK.

Tip to increase possibly performance. Declare your Var_Tank and Var_Recticle arrays as doubles. This will increase the math performance by stopping a lot of conversions to/from strings although it may be that the graphics work dominates anyway.

Dim Var_Tank(3) As Double
Dim Var_Recticle(15) As Double
Reply With Quote
  #4 (permalink)  
Old 03-25-2008, 06:21 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 164
Default

I've (1) double-checked that tank-ppc.exe was compiled for the device, and tank.exe was compiled for the desktop. I have no idea why both executables will run on the desktop, but it happened for me, too.

(2) I made the changes that Andrew suggested; 'tank' and 'reticle' are now doubles. I haven't observed any boost in performance, but avoiding conversions is always a good thing!

Gary
Attached Files
File Type: zip tank.zip (48.2 KB, 23 views)
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #5 (permalink)  
Old 03-25-2008, 06:37 PM
Senior Member
 
Join Date: Jul 2007
Posts: 152
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi willisgt. I have a dell axim x50 520 mhz. Tank on mine fires right up no errors nothing. I don't remember how to put my screen into landscape but it works fine in portrait. I have a audiovox 6700 that I will try it on as soon as I get it to sync with my desktop. Till later have a good one.
__________________
Using 6.30
dennishea
Reply With Quote
  #6 (permalink)  
Old 03-25-2008, 06:56 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,896
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by willisgt View Post
I have no idea why both executables will run on the desktop, but it happened for me, too.
This is normal. Many compiled device apps will run on the desktop as well as on the device as they are marked .NET "retargetable" and the device environment is usually a sub-set of the desktop. Only device apps that needs device and Compact Framework specific libraries will not run on the desktop.
Reply With Quote
  #7 (permalink)  
Old 03-26-2008, 02:48 AM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 164
Default

Andrew, it just occurred to me - I didn't post the source code for this program. Yet somehow, you knew the name of two of the arrays.

Everyone on this forum would back me up when I say that you've got talent. But man, you've got to be practicing black magic. Or living on top of some mountain. Just don't start hurling lightning bolts down at us mere mortals, okay?

__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #8 (permalink)  
Old 03-26-2008, 08:50 AM
RandomCoder's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: UK
Posts: 487
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Works fine on my Axim X51v (VGA screen) and my HTC Kaiser (QVGA screen).
Only difference is the position of the degree markers, on the QVGA they appear under the horizon but on the VGA they appear above.
Both played smoothly with no errors.
Should I have been able to move the crosshairs up/down??

Regards,
RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD.
Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD.

"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #9 (permalink)  
Old 03-26-2008, 10:11 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,896
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by willisgt View Post
Yet somehow, you knew the name of two of the arrays.
I wondered how long it would take for the penny to drop

http://en.wikipedia.org/wiki/.NET_Reflector
Reply With Quote
  #10 (permalink)  
Old 03-26-2008, 02:38 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 164
Default

The degree markers are actually part of the background image file; at this point, it's not a problem if they appear in odd places. They won't be part of the game, anyway.

The only control I've built in so far is the rate of turn. The targeting reticle will always appear stationary in the middle of the screen.

For some idea of how this is intended to look when it's finished, see this link:http://www.youtube.com/watch?v=ghIPGXs3LAo

Absolutely no intention of this being a commercial product. I'm just trying to see if it's possible to build a game like this for PPCs. The game audio will probably be difficult...


Gary
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6

Last edited by willisgt : 03-26-2008 at 03:09 PM. Reason: 'cuz i kant spel
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to test if network is available? obrienj Questions & Help Needed 4 07-13-2008 05:53 PM
Distance-test on UTM and LAT-LON Put Claude Questions & Help Needed 1 10-16-2007 02:06 PM
Transfer to Device for test enonod Questions & Help Needed 5 10-13-2007 07:42 AM
test giannimaione Italian Forum 3 09-09-2007 03:47 PM
Installation test Big JR Questions & Help Needed 17 07-21-2007 02:43 PM


All times are GMT. The time now is 02:28 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0