|
From: sfeam (E. Merritt) <eam...@gm...> - 2013-08-25 17:29:19
|
On Sunday, 25 August 2013, 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! The other excellent feature of such demos is that they exercise parts of the program that don't otherwise get a lot of coverage in testing. The failure of "nibbles" on qt or wxt provided a convenient diagnostic tool for identifying and repairing a fundamental limitation on our mousing implementation. So this week's gnuplot is that much better than last weeks, and all because of nibbles :-) (which now, by the way, works fine on both qt and wxt). Ethan > > > > 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 > > |