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

Neil there were some horrendous inefficiencies like Textboxes being filled with same text in the middle of the main loop. Anyway it probably got in a mess because of the way it evolved.

Im still working on it but heres a improved version

Can u find me a Sand icon from somewhere and swap it with the tap one and then zip it back to me?
Attached Files
File Type: sbp OpenSourceEfficient.sbp (5.1 KB, 6 views)
Reply With Quote
  #142 (permalink)  
Old 12-11-2007, 06:55 PM
Junior Member
 
Join Date: Nov 2007
Posts: 12
Default

Here is the complete folder zipped. Dunno if this will correct your problem. This work on my PDA.

Here is a sand, salt, oil and fire icon. in bmp.
Attached Files
File Type: zip ICONS.zip (5.7 KB, 5 views)

Last edited by JoeMaximum : 12-11-2007 at 07:00 PM.
Reply With Quote
  #143 (permalink)  
Old 12-11-2007, 07:00 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default Agrahams Hash!

Is a hash table something that maps big numbers down to small ones? Sounds a bit mathsy for my brain

How can a large number e.g.255x255x255 possibilites be mapped down to 1,2,3 etc is a quick time?
Reply With Quote
  #144 (permalink)  
Old 12-11-2007, 07:19 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by colin9876 View Post
Is a hash table something that maps big numbers down to small ones? Sounds a bit mathsy for my brain

How can a large number e.g.255x255x255 possibilites be mapped down to 1,2,3 etc is a quick time?
Tust me it can! You don't need to know the details anyway, you just use it. It is one of the collection classes provided in the .NET Framework. I won't even try to explain this. Google for ".NET hashtable"
Reply With Quote
  #145 (permalink)  
Old 12-11-2007, 07:34 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

Once liquids and gases are perfected, along with interactions then moddability is the next issue. So there is no need to do lots of elements now.

Also I have noticed thatit only takes about 1/5th of the screen to be liquid to slow the game to a near stop. I know it has been made amazingly fast compared to the original but does anyone have ay ideas of improving it (not necissary but just asking)
Reply With Quote
  #146 (permalink)  
Old 12-11-2007, 07:47 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

If you want to see all the icons, look at my attachment. I have altered all the icons of BS2 using a resizing program.
Reply With Quote
  #147 (permalink)  
Old 12-11-2007, 07:54 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default First Hash now Speed lol!

Neil I have a cunning plan to speed things up - pixels that are stuck or moving v slowly will go into a secondary list that is only updates every second, while the fewer fast moving ones will be in the primary ticker.

Anyway can u do me a favour. Ive added the sand icon.
Can u compile this into a device EXE for me, and zip it back - Im not on a pc here so cant do it - Thanks
Ive made it more streamlined and am interested to see how much faster it is compiled
Attached Files
File Type: sbp PBSv2.1.sbp (4.9 KB, 5 views)

Last edited by colin9876 : 12-11-2007 at 07:57 PM.
Reply With Quote
  #148 (permalink)  
Old 12-11-2007, 08:00 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

Here you go... All nice and compiled.

EDIT: Didn't see your last post... will re do that.

EDIT2: Done.

EDIT3: Is their a way to change density and Weight of the liquids so the fall through the less dense and fall faster?

Last edited by neilnapier : 12-11-2007 at 08:11 PM.
Reply With Quote
  #149 (permalink)  
Old 12-11-2007, 08:23 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

Sorry about the double post but: Would using a newer version of BASIC4PPC (ie 5 or 5.8) effect the speed of the program.

Also Erel are you just the admin of this or are you the creator of the program as you seem to know more about the functions than anyone else.
Reply With Quote
  #150 (permalink)  
Old 12-11-2007, 08:55 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default thanks

Thanks Neil, Yes eventually there will be two more parameters in the library
pgravity() will be added to the y coordinate rather than just 1. So u could have -1 for gasses going up, 1 for falling material, and say 0.5 for slow falling material.

I will ask AGraham for this when weve finalised how the collision parameter will be done. So just hold on for that one.

Anyway got the whole thing much faster by having two arrays. Pixels get moved to the slow/static array if they havent moved. I check the oldest (nth) pixel before and after a call to the bithandler and move it to the slow array if the x&y didnt change

The slow array gets moved every 5th tick.

By the way, how did u get on re working out if u have a C# compiler that can do dlls? Im interested to know what software AGraham uses - maybe we could get the same one as him?

Last edited by colin9876 : 12-11-2007 at 09:14 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
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:07 AM.


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