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
  #121 (permalink)  
Old 12-11-2007, 03:54 PM
Junior Member
 
Join Date: Nov 2007
Posts: 12
Default

Wow guys this is going very well. I've just tried your latest version, and wow this is drawing fast. Amazing job you made all of you. I started this with neil but didnt have much time to work on it, and didnt really had a way of moving pixel fast like you did. This will be the BEST falling sand game for the pocket pc.
Continue your awesome work guys !
Reply With Quote
  #122 (permalink)  
Old 12-11-2007, 04:47 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

When adding the interface into it everything flickers every ms. Why does it do it with the interface and not without (is it due to the memory it takes up?)

EDIT: When I press cthe clear button it stops flickering but(due to me not resetting it, I know how to do that) doesn't clear anything.

It is weird that that stops it.

Last edited by neilnapier : 12-11-2007 at 04:52 PM.
Reply With Quote
  #123 (permalink)  
Old 12-11-2007, 04:49 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

Colin - the bad news from Erel is that only one dimensional arrays can be passed to a library. You will need to pass in several "parallel" arrays of rule data indexed by a unique index for a particular interaction as I assume that rule[5,6] may not be the same as rule[6,5] or is it? Maybe limit it to 9 colours plus background and make the index rule[x*10+y] leaving unused gaps in the array if fewer colours are used.

Also I see from the Bugs forum that you have found the colour rounding problem - I was going to mention that but you got there first. In itself it is not a problem. I was going to suggest that the colours are passed as an array, Background at 0, then the library can build a Color object array of exact colurs by setting and getting test pixels of each colour. The real problem would be reversing from a Color object to an array index. I'm thinking about an efficient way to do that.
Reply With Quote
  #124 (permalink)  
Old 12-11-2007, 05:02 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Neil, the flickering problem ur have with the interface version is due to an error in the filling=false code. If filling =false it constantly draws a invisible clear circle on the foreground.
Im changing all that right now so just hold on!

Im recontemplating the rules array too. It would have been my prefered method but now we already have so much of the info going with each pixel (e.g.pcolor,pspread) might be easier to have one more pchangeto() array that says which color it reacts with and what it changes to then we r done!

Last edited by colin9876 : 12-11-2007 at 05:11 PM.
Reply With Quote
  #125 (permalink)  
Old 12-11-2007, 05:15 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
one more pchangeto() array that says which color it reacts with and what it changes to then we r done!
I think that needs two more arrays - one for the reacting colour and one for the result. That would only allow one interaction per particle however.

Don't worry about how many arrays are passed, there is no limit, as far as I know, to the number of parameter that can be passed to a library. Generic rules are possible if we can find an efficient back conversion from a Color to an index.
Reply With Quote
  #126 (permalink)  
Old 12-11-2007, 05:16 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

I sorted it by putting the line:
Code:
BurningSand.FErase (0,0,BurningSand.Width, BurningSand.Height)
into the App_Start sub.

Then it stops flickering.

Also the 9 colours suggestion isn't very good. How are you supposed to mod if you can only use 9 elements max?
Reply With Quote
  #127 (permalink)  
Old 12-11-2007, 05:24 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Neil, ur obviously off there on ur interface - which is great, there are a few inefficiencies, which I can just change for u & will give a faster version.

Can u post ur latest version, with all the libs, images, and the bits uve added and I'll make the changes and zip it back to u.

P.s. Dont worry u'll have enough colors!

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

He is the new version.

Here are the glitches
The pens go over icons,
You have to pick water before wall will work
Goes down too far
Clear button doesn't clear water
I don't like the way I have created the groups.
The pen sizes don't effect Water.

Also I have noticed that I added \1.bmp as the save screen thing. This sould be changed to \Start.bmp. Just so that you don't have to make it post it then post it again.

Also, how possible do you think it would be to load a saved picture?

Last edited by neilnapier : 12-11-2007 at 06:36 PM.
Reply With Quote
  #129 (permalink)  
Old 12-11-2007, 06:03 PM
Junior Member
 
Join Date: Nov 2007
Posts: 12
Default

ImagelibEx.dll dont work on my device.
I have PPC2003 and installed the basic4ppc 5.80 on the device.
do i need to install the .net cf 2 ?
Reply With Quote
  #130 (permalink)  
Old 12-11-2007, 06:08 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

Never tried BS on my PPC since I added that, yes that is weird.
using the nonEx version as well it comes up with

Error loading Program
Line Number: 8

error description:
NullReferenceException.

Last edited by neilnapier : 12-11-2007 at 06:12 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:21 AM.


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