About | Rules and Guide | Sign In/Create Account | Write a Post
Construction1990’s Internet Montage? No!
Please excuse the site weirdness. Mike is fixing and making things.
Ludum Dare 31 — Coming December 5th-8th 2014!

  • ??? Begins: in 10 days, 5 hours, 57 minutes, 16 seconds
  • October Ends: in 11 days, 6 hours, 9 minutes, 16 seconds
  • Ludum Dare 31 begins: in 46 days, 6 hours, 57 minutes, 16 seconds
  • (FYI: Clock might be off) | Ludum Dare 31: Real World Gatherings (Now Open!)

    [ October Challenge 2014 | Resources | Submit/Edit | View All ]


    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:

    PetrisTitleScreenPetrisGameScreen

     

    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.


    All posts, images, and comments are owned by their creators.

    [cache: storing page]