|
From: <pl...@pi...> - 2013-08-25 20:46:14
|
On 08/25/13 12:39, Juhász Péter wrote: > 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 > Excellent work! It may be a bit OTT but I think it is an excellent way to demonstrate the interactive possibilities of gnuplot , and after all , that's what demos are for. The fact that this does not work on wxt and qt probably should be regarded as pointing out a bug in the interactive code of those terminals. Though it would probably need someone pretty familiar with those libraries to find out why, it probably is worth noting. Now does it work on SVG or canvas ? ;) > That said, it's playable and actually quite addictive. Yes, last time I played tetris it lasted 24h ! It was great fun but I decided that's probably enough futility for one lifetime. Nice contribution. ;) |