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
  #1 (permalink)  
Old 11-23-2007, 05:23 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Talking Pocket Burning Sand (Open Source)

Pocket Burning Sand (Open Source)

OK... well the title speaks for itself. I have been working on a portable BS. Burning Sand is an application which is a physics toy. You have elements that interact with each other. To find more information on it go to here

I posted this on the Falling Sand Game forum so perople that I have gave thanks to may not be members here. due to the fact that it has not gained much publicity there I posted it here.

It is far from complete and I am quite a noob at the language myself. I only learnt the coding last week.

What I decided to do was make it open source so that people could contribute parts of the coding so hopefully it would be finished quicker and more efficiently.

BS Alpha Version 1
BS Interface created.
Drag Implemented.
PenSize Created.
Clear and Wall created.
Clear Screen works!
Added Filled Circle Pen
Added Circle Pen
Added Vertical Pen
Added Horizontal Pen
Element Indicator (using) created
Groups created

BS Alpha Version 2
Pause
Liquids, Solids & Gases
Reversable Gravity
Groups
Borders for elements
Much Faster
Reversable Gravity glitch sorted
Sources Created


If anyone feels that any of it should be rewritten feel free to do so. (I actually suggest trying to sort some of the stuff or even try different methods.)

Downloads

Pocket BS Alpha Version 0.01
Pocket BS Alpha Version 0.03
Pocket BS Alpha Version 0.045
Pocket BS Alpha Version 0.05
Pocket BS Alpha Version 0.06
Pocket BS Alpha Version 0.07
Pocket BS Alpha Version 2.15
Pocket BS Alpha Version 2.86


Thanks To...
Sieben
JoeMaximum
bbq
Erel
dzt
Colin9876
AGraham

Thanks for reading and I hope you will contribute.

Last edited by neilnapier : 12-15-2007 at 03:31 PM.
Reply With Quote
  #2 (permalink)  
Old 11-27-2007, 07:17 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Default

I really like the idea of the program & would like to contribute.

I loaded it but no sand seems to move yet? (not near a PC so not able to try that version yet)

How many points do u need the sand to start from?
How many grains of sand
How do they interact?

I guess you just have to have an array of sand(x,y) coordinates and move one at a time. Might be slow if u have more than say 50 grains of sand?
Reply With Quote
  #3 (permalink)  
Old 11-27-2007, 07:58 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

I have not been able to create liquids or solids yet. There are minor glitches that I have fixed but I have not updated this yet because I am wanting to have more things done in each version.

Once Liquid and gases work I will be hoping to make a config (like the pc version made by max nagl AKA Sieben) so that it is moddable.

Thanks for offering to contribute.
Reply With Quote
  #4 (permalink)  
Old 11-27-2007, 08:07 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Default

Ok I'll work on it.
Is it water that is supposed to flow or sand.
Whats the tap icon supposed to do.
Does the liquid start from the top or do u set the starting point?
Reply With Quote
  #5 (permalink)  
Old 11-27-2007, 09:02 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

I suggest you type in Max Nagl to google and on the first result there is a page called Burning Sand 1. Click that and download it (also Burning Sand 2 has the tap but I feel that it is nesisary to add)

The tap is a sources toggle. This means that when the toggle is on, then 4 different lines of liquids fall down from the top... something like this

Once liquids and gases are implemented no new elements will be added but instead a config will be worked on (a txt file) that will instruct the program, so that elements can be made and added. the mod code will be done like this
Code:
Element Nature Plant 0 255 0 0 1 1 1 0 Clear 0 File img\Plant.bmp
This is a clone of Burning Sand 1 (with some feature of BS2)

EDIT: Also in the new version that I am working on, mouse over has been removed because it does not work with a PDA as you can't hover.

Last edited by neilnapier : 11-28-2007 at 03:33 PM.
Reply With Quote
  #6 (permalink)  
Old 11-28-2007, 07:49 AM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Default

BS coming along - should be able to post my demo tomorrow.
Had a really clever idea, the colour of the objects on the screen will determine the interactions with the liquid.
For example different lines which all look black could be drawn in colours RGB(1,0,0),RGB (0,1,0)...(0,0,1)(1,1,0)(2,0,0) etc and this saves storing the properties of the things on the screen, just need to look at the pixel colour
I need someones help on RGB function
1) if I do
hit=form1.getpixel(x,y+1) 'look at the color of the thing uve hit one pixel belowu
how do I get the RGB componets of the value hit

2) How do I delare hit as a double in the Global area - will just hit=RGB(0,0,0) automatically set it to the double variable type?
Reply With Quote
  #7 (permalink)  
Old 11-28-2007, 08:55 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,560
Default

1) See the GetRGB method.
2) Regular variables in Basic4ppc are do not have a type.
You could just write hit = RGB(0,0,0) and later use hit in a calculation.
Reply With Quote
  #8 (permalink)  
Old 11-28-2007, 10:07 AM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Default

Thanks
Its good it doesnt need types. The only reason I thought it would have to be a double or something is becasue when I did
textbox1.text=hit
it displayed -1 on a white pixel so I thought it must be out of range??
Reply With Quote
  #9 (permalink)  
Old 11-28-2007, 12:37 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,560
Default

Colors always return negative numbers.
-1 is black (or maybe white).
Reply With Quote
  #10 (permalink)  
Old 11-28-2007, 05:44 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

Good to know that people are willing to help!!! Once you make your update then i will edit yours with my minor glitch sorts. Also you can remove the mouse over indictaor before you post it because on a PPC there is no way to hover the pen over an element.

I was originally planning to have individual colours as elements because I could not think of any other way it could work.
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 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
open a text file with Word mwaite Questions & Help Needed 6 06-16-2007 09:03 AM
SQLite Open Close - how often? sloopa Questions & Help Needed 3 05-01-2007 02:01 PM


All times are GMT. The time now is 09:50 AM.


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