aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1017

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

active  Topic # 1017  iziBasic version 4 preview!

15/12/2004 @ 22:07
by aldweb

Anonymous



As a preview of iziBasic v4 and because it is Christmas time... you may download the following new software from aldweb compiled with iziBasic v4.0 beta 4.

iBChristmas.zip



@+
aldweb
Write to aldweb   Post an answer  Top

[]   


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1
--------
16/12/2004 @ 02:15
by Leonard Zajaczkowski

Anonymous

visitor
Hello.

I got your little Christmas e-card in my email, first off, I would like to thank you for the thought. Second, I would be interested in seeing the code for this little bawble, would you include it in the v4.0 release?
  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 2
--------
16/12/2004 @ 21:39
by aldweb

Anonymous

visitor
The source code is very small, thanks to iziBasic's language syntax for quick developping (and I believe that iziBasic is the only one in this case...).
So, please find a copy & paste of it here under

' iBChristmas.ibas
{CREATORID "LDXM"}
{VERSION "1.0"}
{RESOURCEFILE "iBChristmas.rsrc"}

BEGIN
S=SCREENMODES
IF S<3 THEN
M=MESSAGEBOX("Sorry, a color device is required.",0)
ELSE
S$­­=GETOSVER$­­ : S=VAL(S$­­)
GOSUB _AllOK
ENDIF
END

_AllOK:
SETFONT 1
BUTTON #1,"i",149,1,10,10
SETFONT 0
I=1 : C=COLOR(0)
T=TICKS
REPEAT
E=DOEVENTS
IF E=1 M=NOTICEBOX(1)
IF E=1000 LET P=PENDOWN : IF P=0 LET I=I+1 : COLOR C : BOXFILLED 16,18 TO 143,160 : T=T-50 : IF I=3 LET I=1
N=TICKS-T : IF N>50 LET T=TICKS : GOSUB _Animate
UNTIL E=-1
RETURN

_Animate:
J=J+1 : IF J=4 LET J=1
K=I*10+J
IF I=1 THEN
IMAGE K,28,18
ELSE
IMAGE K,16,43
ENDIF
IF S>=5 LET F=TICKS-G : IF F>1000 LET G=TICKS : PLAYWAVE 1,1024,1
RETURN


In red, the new statement of iziBasic which brings the sound feature

Optimizing a little bit this source code would make the software work in less than 20 lines of source code I guess.
But, I only had 15 minutes to develop it. So, I did it quick and dirty!

@+
aldweb
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 3
--------
19/12/2004 @ 07:01
by Leonard Zajaczkowski

Anonymous

visitor
So, if I'm reading the code right, you are using colour 0 and boxfilled to blank the screen when a pen event happens. The actual pictures are taken care of, by the image command. This means you could use the image command to display a graphic that is 160x160(full screen) pixels, correct?

There are 3 images in each animation and they are just displayed 1 at a time without any screen clearing.

Does izibasic have any type of image collision detection? Or, would I have to figure out a way to track collisions myself? As you might have guessed, I'm interested in making games.


  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 4
--------
19/12/2004 @ 22:17
by aldweb

Anonymous

visitor
Hello Leonard,

A graphic could be 160x160 pixels wide, that is correct.
I am even thinking that 320x320 could be possible, but I did not test high screen resolution images yet!

No, iziBasic does not have image collision detection.
In this iBChristmas sample program, all images superpose themselves on top of the previous one, that's all...

Cheers

@+
aldweb
Write to aldweb   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^