aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Recherche




Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis
Visites

   visiteurs

   visiteurs en ligne

Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
forum.gifForum - iziBasic - Sujet n°1017

Forum - Forum
iziBasic - iziBasic


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

actif  Sujet n° 1017  iziBasic version 4 preview!

le 15/12/2004 @ 22:07
par aldweb

Anonyme



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
Ecrire à aldweb   Poster une réponse  Haut

[]   


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

Anonyme

visiteur
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?
  Poster une réponse  Haut

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

Anonyme

visiteur
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
Ecrire à aldweb   Poster une réponse  Haut

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

Anonyme

visiteur
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.


  Poster une réponse  Haut

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

Anonyme

visiteur
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
Ecrire à aldweb   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 



 
^ Haut ^