Petris Update

Posted by
October 19th, 2011 6:46 pm

I’m currently trying to get Indievania to host my game, Petris. Over the last week I’ve implemented Marathon, Timed, and a 20 Line mode for Petris. Also the ability to save scores to a text file. Here’s the title and game screen:



Issues: I’ve got two things I’m worried about. 1-The blocks while playing the game don’t line up perfectly. 2-I use Java’s graphics to draw text, which makes it not look the greatest…

Goals: I plan on fixing the block issue in the near future, and try to learn bitmap text drawing. Also, maybe flesh out the bg music(wrote it myself). It’s 2 short parts that play over and over and might make other people go crazy. If people want the ability to switch polyominoe sets, I’ll try that too.

One Response to “Petris Update”

  1. digital_sorceress says:

    The way the blocks don’t line up looks consistent across rows and columns, so is probably due to game coordinates and screen coordinates not lining up.
    If the window can be resized, there will be problems with pixel graphics not being drawn in the right place.

    If you insist on working in pixel graphics, then measure everything in pixels and work in those, not in custom coordinates. Also, either:
    (i) Fix the size of the window so it can’t be resized.
    (ii) Make the window resize in integer factors (x1, x2, x3 etc) Disable antialiasing. Use nearest-neighbour for drawing.

Leave a Reply

You must be logged in to post a comment.

[cache: storing page]