Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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.

cheers

tachyon


In reply to Re: Pentris - a Tetris clone by tachyon
in thread Pentris - a Tetris clone by Crian

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-25 17:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found