POV-Ray : Newsgroups : povray.binaries.animations : Re: Snake! WIP : Re: Snake! WIP Server Time
19 Jul 2024 08:20:00 EDT (-0400)
  Re: Snake! WIP  
From: Dave Vogt
Date: 23 Sep 2003 14:50:13
Message: <4tg641-hv6.ln1@control-alt-del.ch>
Dave Vogt wrote:

> Sure: move the three declares to below the while loop, change
> the indexes from 0..2 to 100..102, and change a[i+3] to a[i] and
> clock-i-3 to clock-i. That should be it.

Oh, I forgot: you gotta change the values of the new a[100] to
a[102] too, so they apply to the new head position.



-- 
Dave "tPassive" Vogt| ruby -e "n=gets.to_i;a=(2..n).to_a;a.each{
Linux  user  #225040| |x|puts x;(x*2).step(n,x){|j|a.delete j}}"
____________________|_____________________________             |
PGP Key: http://control-alt-del.ch/public_key.asc \____________/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.