Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Open Source Projects
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Open Source Projects The place to discuss Basic4ppc open source applications.


Pocket Burning Sand (Open Source)


Reply
 
LinkBack Thread Tools Display Modes
  #321 (permalink)  
Old 12-18-2007, 07:04 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Noooo,
We want it 2 work for all resolutions, landscape or portrait.

So everything on the top or the left can stay hardcoded on the form

Things to the left and bottom need to be moved RELATIVE to the sreen dimensions

SO as I said, as MaxX is always set at 30 less that the screen width

Rpanel.left=MaxX will put the right panel 30 before the edge whatever Res is on
water.left = MaxX+5 will always put the icon 5 pixels right of the Rborder
sand.left=MaxX+5
Res.Top=MaxY+10
Draw.Top=MaXY+10
Draw.Left=MaxX/2 (if u want it halfway along)

Add this code, stop the program, change ur pda to landscape or landscape and rerun it to check it looks right either way!

Sub ScreenSet
water.left = MaxX+5
sand.left=MaxX+5
Res.Top=MaxY+10
Draw.Top=MaXY+10
Draw.Left=MaxX/2
Rpanel.left=MaxX
toppanel.width =(MaxX-MinX)
lowerpanel.width=(MaX-MinY)
bottomline.width=burningsands.width 'full length for the bar at bottom of screen
etc

Last edited by colin9876 : 12-18-2007 at 07:15 PM.
Reply With Quote
  #322 (permalink)  
Old 12-18-2007, 07:14 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

My PDA is WM2003... WM2003SE was the first to implement Landcape so I can't test it!
Reply With Quote
  #323 (permalink)  
Old 12-18-2007, 07:18 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default

ok just change everything above, make sure it looks right in portrait mode & post it

You will have to adjust the amount u add to MaxX (Ive put +5) to get the pixels exactly where u want
I'll test it on a few different resolutions. If uve got it looking right in one mode it should look right on all screens because all the positions are relative to MaxX and MaxY
Reply With Quote
  #324 (permalink)  
Old 12-18-2007, 07:26 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

OK... as I said I will try. Right now I have visitors over and it is starting to get late so I will continue on it tomorrow.
Reply With Quote
  #325 (permalink)  
Old 12-19-2007, 06:42 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

OK, looking at it today Iget it... am doing it now.

What I am doing to test it is setting the screensize on the compiler to landscape then previewing it and then changing it.

Sorry I didn't get it till now. I'm still pretty new to these languages... the only language i ever really learned well was QBASIC and it has changed a lot since then.
Reply With Quote
  #326 (permalink)  
Old 12-19-2007, 07:33 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

Here is the next update. It now works with all reses BUT I haven't done the sources location yet so on landcape they are still to one side... I have ran out of time but may do it tomorrow.
Reply With Quote
  #327 (permalink)  
Old 12-19-2007, 11:34 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Neil, most of it good, few issues

1) playing area is minX to maxX
set rline.left=MaxX (not maxX-2)
u will have then to set
bottomline.width=(MaxX-MinX)+4
topline.width=(MaxX-MinX)+4

2) whats that variable WAT=0 uve added?

3) set the sources x coordinates of sources to
0.25*burningsands.width
0.42*
0.58*
0.75* etc

4) Can u put the letters FPS in a static label as I mentioned before, and just add the number. We should have every speed advantage we can!

Anyway there may be a way of making everything loads faster, but Ill let u know more about that when u get v6...

Last edited by colin9876 : 12-20-2007 at 07:38 AM.
Reply With Quote
  #328 (permalink)  
Old 12-20-2007, 03:48 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

OK... here it is! Done everthing youjust said. I am getting a licence on Xmas Day so isn't long until I might be allowed to get Beta.

EDIT: I just found a glitch in the FPS thing... forogt to add one of the lefts, will repost it in a couple of minutes.

EDIT: Here is it sorted.
Attached Files
File Type: zip Pocket Burning Sand.zip (259.6 KB, 4 views)

Last edited by neilnapier : 12-20-2007 at 03:56 PM.
Reply With Quote
  #329 (permalink)  
Old 12-20-2007, 05:14 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default good progress

looks good
I get a bug sometimes on the PC when it stops drawing fixed walls etc. Have u had that?

Last edited by colin9876 : 12-20-2007 at 05:31 PM.
Reply With Quote
  #330 (permalink)  
Old 12-20-2007, 05:18 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

I will post on the front page when V3 is released.

How are you coming along with the reactions? Has AGraham answered you yet?

I haven't seen that yet no... but I haven't tried the last realese.

EDIT: When I load this I get the keyboard menu appearing at the bottom covering up the FPS draw and res. Is there a way to get rid of that.

EDIT2: Do you mean that when you are drawing wit a line then sometimes circles appear of you click wall... cause that happens to me.

Last edited by neilnapier : 12-20-2007 at 05:31 PM.
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
Pocket Chess Database JamesC Share Your Creations 3 07-27-2008 04:07 AM
Pocket Burning Sand neilnapier Questions & Help Needed 2 11-05-2007 07:53 PM
print class for pocket pc tanrikuluahmet Basic4ppc Wishlist 1 10-01-2007 09:10 AM
dzSpy - Spy and Task Manager App - Open Source dzt Share Your Creations 3 07-15-2007 05:21 AM
Pocket Outlook Object Modell sloopa Basic4ppc Wishlist 12 06-02-2007 08:05 AM


All times are GMT. The time now is 11:58 PM.


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