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
  #201 (permalink)  
Old 12-13-2007, 07:46 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default

We can have a clear pen which does remove liquids in my next version, by having it as a mod rule that pixels die if they hit the clear pen.

For the moment, we can have an icon that removes all liquids but keeps the solids. If u want that I'll tell u what to code?

For now can u please
1) Set style=3 (in the Globals rather than =1, nicer to start of with the joined up line)
2) set those icons at the right height in the form (so u dont need the code at runtime)
3) Set all the Dims (8192) 'thats multiples of 8K
4) add the line
if n>8170 then Return
just before the line n=bh1.AddElement .... in the main loop

This will stop it running out of Memory. I notice the version of PocketSand u told me about limits u to about 8000 pixels aswell, its also a good way of stopping it getting ridiculously slow

Then Zip it all up to me! Thanks

Last edited by colin9876 : 12-13-2007 at 07:55 PM.
Reply With Quote
  #202 (permalink)  
Old 12-13-2007, 08:05 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

If you are making a update I will wait until you release it. Once slight problem though. It would no be a good idea to have when something interacts with clear then it dies because the background (black) IS clear.
Reply With Quote
  #203 (permalink)  
Old 12-13-2007, 08:12 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Dont worry the clear pen will plant very dark grey pixels(appear black) that react with all other pixels, then die themselves

Can u do 1 to 4 above plus

5) New Globals
MinX=27
MinY=27

6) and change then 26,27 in the bh1.new line to MinY,MinX (in that order because its Top,Left)
7) and change the 26, 25 in first line of main loop to MinX, MinY
if down = false OR x<MinX or x>MaxX or Y<MinY ....

Last edited by colin9876 : 12-13-2007 at 08:15 PM.
Reply With Quote
  #204 (permalink)  
Old 12-13-2007, 08:21 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

Will do. Also I forogt to tell you, in BS if you want to create a reaction with every element all you need to use is the element All.

Also incase you didn't know weight and interaction rates go from approximately 0 to 32000 (ish) when it comes to reactions and -32000 to 32000 in weight terms. All others go up to about 10.
Reply With Quote
  #205 (permalink)  
Old 12-13-2007, 08:39 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

I have done everything you have requested but befroe I release it I have one or two questions to ask.

1. Can I change the 7 pixels at once thing to 20 (I already have on mine i'm just wondering if it would make it too slow for PPC)

2. I suggest changing the pensize/2 rule to Pensize*2 instead for lines because it makes a better size.

3. Do you know how to sort the gravity glitch that causes new elements to fall at there original direction while having the same element created previously falling the opposite direction. the gravity swapper should swap new elements gravity too.
Reply With Quote
  #206 (permalink)  
Old 12-13-2007, 08:42 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default

1) No keep it at 7 please for PPC (after all thats what this program is supposed to be for)

2) definately not 2*Pensize - again too big for PPC. If u want to use Pensize then thats an ok compromise (its currently only half pensize!)

Last edited by colin9876 : 12-13-2007 at 08:53 PM.
Reply With Quote
  #207 (permalink)  
Old 12-13-2007, 08:50 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default Reverse fix

If u want the reverse to work on new elements we need a
Global
reverse=1

everytime a gravity is set in the elements button code add *reverse
e.g. gravity=0.8*reverse

Then in reverse button add code lines
reverse=-reverse
gravity=-gravity

Last edited by colin9876 : 12-14-2007 at 01:01 PM.
Reply With Quote
  #208 (permalink)  
Old 12-13-2007, 08:54 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

There you go.

Not added the gravity thing because didnt see your post. I have been on the computer for hours now so I think I will have a break and come back tomorrow, so see ya!
Attached Files
File Type: zip fgkih.zip (55.6 KB, 5 views)
Reply With Quote
  #209 (permalink)  
Old 12-13-2007, 09:01 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default Great

Nice EXE. Can u post the v2.16 Source code too so I can carry on adding to it - thanks.
Reply With Quote
  #210 (permalink)  
Old 12-13-2007, 09:42 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

OK... here you go.

This time I really am going off.
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
Personal Pocket PC Wiki tsteward Open Source Projects 121 11-29-2008 09:06 AM
Tippy v.1.0 [open source] N1c0_ds Share Your Creations 4 11-20-2008 10:08 PM
Another Pocket Wiki digitaldon37 Open Source Projects 1 09-17-2008 11:01 AM
Pocket Burning Sand neilnapier Questions & Help Needed 2 11-05-2007 08:53 PM
dzSpy - Spy and Task Manager App - Open Source dzt Share Your Creations 3 07-15-2007 06:21 AM


All times are GMT. The time now is 05:12 AM.


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