|
|
|||||||
Thursday, May 15, 2003 break on cls color w/n srnd(@msecs) $t=5 $greenies = 15 $greenie = marray("$greenies,2") for $i=0 to $greenies $greenie[$i][0] = rnd(24) $greenie[$i][1] = rnd(78) next $blankies = 15 $blankie = marray("$blankies,2") for $i=0 to ubound($blankie) $blankie[$i][0] = rnd(24) $blankie[$i][1] = rnd(78) next $=setoption("hidecursor","on") while not kbhit() for $i = 0 to $greenies color g/n $c=rnd(100)+100 if $c=7 or $c=149 $c=150 endif if $greenie[$i][0] at($greenie[$i][0],$greenie[$i][1]) chr($c) endif if $greenie[$i][0] < 23 $greenie[$i][0] = $greenie[$i][0] + 1 color w+/n at($greenie[$i][0],$greenie[$i][1]) chr($c) else $greenie[$i][0] = rnd(5) $greenie[$i][1] = rnd(78) endif delay($t) next for $i = 0 to $blankies color w/n at($blankie[$i][0],$blankie[$i][1]) " " $blankie[$i][0]=$blankie[$i][0]+1 if $blankie[$i][0] = 24 $blankie[$i][0]=0 $blankie[$i][1]=rnd(78) endif delay($t) next color w/n delay($t) loop get$ cls exit 1 function delay($n) $ticks = @ticks +$n while @ticks < $ticks loop endfunction FUNCTION MArray($ind, OPTIONAL $ptr) IF Ubound($ind) < 1 $ind =Split($ind,",") ENDIF REDIM $MArray[$ind[$ptr]] IF $ptr < Ubound($ind) $MArray[0] =MArray($ind,$ptr+1) DIM $L FOR $L = 1 TO Ubound($MArray) $MArray[$L]=$MArray[0] NEXT ENDIF ENDFUNCTION Code by Shawn Tassie with one minor mod. [ 14. April 2003, 11:06: Message edited by: NTDOC ] |
||||||||
|
|
|||||||
Doc ? I expected at least a kixform if I ever saw that mentioned again Whazzup ? |
||||||||
|
|
|||||||
LOL... The new one is coming. I'll let Shawn work on a KF model. |
||||||||
|
|
|||||||
Huh ! Quite quiet after that reply ... I guess all are hiding behind their keyboards hacking some Matrix code emulators for Kforms |
||||||||
|
|
|||||||
The Matrix Reloaded Can't wait to go see it. Here is the link to the original code by Shawn Tassie. There is no spoon The Matrix Reloaded - Official Website 60MB QuickTime preview movie for Matrix Reloaded |
||||||||
|
|
|||||||
DOC, Can't wait either |
||||||||
|
|
|||||||
Any of you KIX-FORMS Masters come up with a new, revised edition that works with KiXforms? |
||||||||
|
|
|||||||
Got (as stated yesterday) problems with the OnResize property without which it would not be nice ... Other code is in progress [ 15. April 2003, 12:10: Message edited by: jpols ] |
||||||||
|
|
|||||||
eh? on resize? damn, hit the gas and make it fullscreen. |
||||||||
|
|
|||||||
This script was written before multi-demensional arrays and the sleep() command was implemented, could use a redeux. By the way, looking forward to sequel as well. To be honest, think The Matrix is my favorite movie of all time. [ 15. April 2003, 14:04: Message edited by: Shawn ] |
||||||||
|
|
|||||||
sleep() command? |
||||||||
|
|
|||||||
Sorry, meant to say "the millisecond sleep function". |
||||||||
|
|
|||||||
Is this a new Sleep() UDF? |
||||||||
|
|
|||||||
Matrix.kix uses the Jochen-built Delay UDF: function delay($n) $ticks = @ticks +$n while @ticks < $ticks loop endfunction |
||||||||
|
|
|||||||
This one : Delay() (It was in the times before Ruud was too annoyed by my requests and changed sleep to accept cdbl values ) |
||||||||
|
|
|||||||
Shawn, What does it take to get you to byte? We are trying to flame you for the use of parens. Sleep is a command despite what Lonk says. It is not a function and thus does not require parens unless of course you need to force precedence. quote:I thought only MCA overuses parens. |
||||||||
|
|
|||||||
Hey, actually running a nice Matrix Screen Saver ... It's here and it's free {see how I ship around the cliffs of flaming Shawn ? } [ 15. April 2003, 14:37: Message edited by: jpols ] |
||||||||
|
|
|||||||
You want one with full source code available? You can run it as the desktop background (wallpaper) or as a screensaver. http://zmatrix.sourceforge.net/ http://zmatrix.sourceforge.net/index.html#Preview Cheers! Kent |
||||||||
|
|
|||||||
Even better !!! |
||||||||
|
|
|||||||
Better indeed |
||||||||
|
|
|||||||
Ok, nearly done, only have to find out why it stops displaying after 4 or 5 seconds However, don't expect too much please as I can't rebuild what the sourceforge guys did (not only because there is no support for Desktop Mode in Kforms [yet?] ) [ 15. April 2003, 22:10: Message edited by: jpols ] |
||||||||
|
|
|||||||
Have some first approach posted here : There is no spoon ... continued Thought that KiXforms.org would fit better |
||||||||
|
|
|||||||
Jochen, Please see post. http://www.kixforms.org/forum/viewtopic.php?p=726#726 Code currently not working for me. |
||||||||
|
|
|||||||
Just hahaha |
||||||||
|
|
|||||||
Mats, you obvioulsy have that private release build ? For all others who want to see the Girl with the Red Dress : You can either wait untill Shawn releases the next Beta (some minor glitches to iron out, but hoepfully this weekend) or I may mail it to you ... Sorry for the irritation |
||||||||
|
|
|||||||
BTW... New version at - http://zmatrix.sourceforge.net/ quote:Kent |