News for hackers. Stuff that matters.
Re:Snake game in a data: URI by bytex64 on Friday December 09, 2011 @04:53PM (#3335801)
Sure thing. What was ww=0; trying to do? It seems to be the only place ww is referenced.
Re:Snake game in a data: URI by biot on Friday December 09, 2011 @06:48PM (#3336228)
Prior to implementing the s.length-based speed increase, I tried implementing a funkier frame-based gradual increase using a log scale. Ultimately, that proved to be not worth the effort as speeding it up in proportion to how many pellets were eaten was a more natural fit. So that variable is a leftover and should have been deleted.