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
  #241 (permalink)  
Old 12-15-2007, 10:13 AM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Default condense fn

Ive swapped over my orignonal condense function to try out Hashing methods and Im comming to the conclusion that my condense method was faster, and better.

Condense(R,G,B)=int (R /(64)) *16 + int (G /64) *4 + int(B/64)
gives 64 possible indexs in rapid time and no need for a colors table either!

Unless Im missing something theres no available Hash function that maps large RGBs uniquely to small integers that has a 1to1 reverse look up??? so might as well use this condense method with the proviso that PSB doesnt use two v similar colors

Last edited by colin9876 : 12-15-2007 at 10:42 AM.
Reply With Quote
  #242 (permalink)  
Old 12-15-2007, 11:01 AM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

I will add your update tothe front page in one second. Perhaps that source is more the sort of thing for the tap.

Yes reactions would be very good!

EDIT: You did the pensizes the same way I was doing by blue borders on the elements.
Reply With Quote
  #243 (permalink)  
Old 12-15-2007, 11:23 AM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

I will post this new one as the next update. Also don't you think that water slips too much?
Reply With Quote
  #244 (permalink)  
Old 12-15-2007, 12:52 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Default Nice

All looks great Neil! Good stuff

Re water slipping too much what do u mean? If you have the spread value less it takes longer to level out, especially on PPC. And it is water, not a highly viscous liquid??
Reply With Quote
  #245 (permalink)  
Old 12-15-2007, 03:19 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

Bit if souces when to be from the top to the bottom the water is spreading to much out and would cover the whole screen (if you look at BS water will go almost compleletly straight down with just a little bit spreading out)
Reply With Quote
  #246 (permalink)  
Old 12-15-2007, 03:26 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Default ok

so change cloud to spread =1.4 thats used for the source, but keep water as spread=2
Reply With Quote
  #247 (permalink)  
Old 12-15-2007, 03:33 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

The system that you use for cloud is different from that to BS. For this reason I am not asking for a change in that. When the tap source is implemented then water would be needed to fall down from top to bottom along with 3 other elements.



EDIT: Clear isn't working.

Last edited by neilnapier : 12-15-2007 at 03:36 PM.
Reply With Quote
  #248 (permalink)  
Old 12-15-2007, 03:41 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Default no problem,

ok add the tap icon at the top with this code

style =8


Then in the timer
if n<8000 and style =8 then
n=bh1.AddElement(n,pensize,pensize,50,50,rgb(80,80 ,230),2,1) 'first stream from (50,50)
n=bh1.AddElement(n,pensize,pensize,80,50,rgb(230,5 0,50),2,1) 'second stream from (80,50)
etc
End if

Last edited by colin9876 : 12-15-2007 at 03:56 PM.
Reply With Quote
  #249 (permalink)  
Old 12-15-2007, 03:53 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

Done, works great. I will post it once I have got an answer to this question:

How to you turn it into a toggle (ie turing it off on the next click)

EDIT: Also when it is turned on you can't create a solid object.

Last edited by neilnapier : 12-15-2007 at 03:55 PM.
Reply With Quote
  #250 (permalink)  
Old 12-15-2007, 03:57 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Default sources

to toggle say
if style<>8 then style=8 else style=1
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 06:25 PM.


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