Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Pentris - a Tetris clone

by tachyon (Chancellor)
on Aug 23, 2004 at 12:29 UTC ( #385069=note: print w/replies, xml ) Need Help??

in reply to Pentris - a Tetris clone

Very nice. A couple of comments. Default height is too large for my monitor (1152x864) so I guess you must run 1280x1024+....

I did not like the grid. Having had a quick RTFS I changed withgrid => 1 to zero. This has multiple effects, but in short it does not remove the grid and it does destroy the geometry. If you just add a return in the draw_grid() function if withdgrid => 0 then you can lose the grid but see the undesirable side effects on the geometry (rotating the blocks is interesting). The easiest way to remove the grid (and retain the geometry) is simply to make it the same as the board colour.

my $gridcolor = $NO_GRID ? '#000000' : '#FFFFFF';

The grid still gets drawn but is invisible, and all the withgrid code is redundant and can be removed. That saves fixing it ;-) I like the grid through the blocks anyway as it looks as I remember tetris looking.



Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://385069]
[Corion]: karlgoethebier: Heh - naah, I think they are just very fresh out of university. At least they seem to have hired one person as key accountant who has done enterprise consulting etc. before :)
[Corion]: erix: It wouldn't be nice of me to publically shame and name ;)
[Corion]: I'm interested in how their product actually works. It uses websockets between two non-browser components, so there are some weird technology decisions, or rather, I assume the product started out as something completely different :)
[erix]: fair enough

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2018-04-19 12:32 GMT
Find Nodes?
    Voting Booth?