|
From: Juhász P. <pet...@gm...> - 2013-08-25 10:39:28
|
On Thu, 2013-08-22 at 13:39 +0200, Petr Mikulik wrote: > > Struck by sudden inspiration (and also motivated by the feel that the > > "new" control flow capabilities are not advertised enough in the > > existing demos), I wrote a small game demo, in pure gnuplot. I donate it > > for the demo suite. > > Really cool! > > Just few ideas - add demo for bind commands: > faster > slower > shape of snake's body - rectangle (snake) or circle (caterpillar) > set obj 1000+iter circle at ix-0.5, iy+0.5 size 0.5,0.5 fc rgb > "black" fs solid > > > Looking forward to Tetris in gnuplot! > > Petr I couldn't resist the challenge... It's not "real" Tetris but a variant called Xixit that I used to play a lot on my 486. (I decided against Tetris because I had doubts about the legal status of a reimplementation.) I also have doubts whether it should be included in the demo suite: the game logic is sufficiently complex that it begins to strain the limits of gnuplot. Well, theoretically, we have conditional execution, variables and eval in gnuplot, so it can do anything, but the point is whether it is sensible to do so - and if someone said this example is not sensible, I'd have to agree. That said, it's playable and actually quite addictive. Have fun, Peter Juhasz |