Home | Rules and Guide | Sign In/Create Account | Write a Post | Reddit | #LD48 | #ludumdare on irc.afternet.org (Info)

Ludum Dare 30 — August 22nd-25th 2014 – 9 PM EST — Theme: ??? (VOTE NOW!)
  • Ludum Dare 30 Begins: in 1 hour, 23 minutes, 21 seconds
  • [ Real World Gatherings | Ludum Deals | Warmup Weekend (Games) | MiniLD #53 | Wallpaper (1) (2) (3) | Mailing List ]

    Join us on Twitter and IRC (#ludumdare on afternet.org) for the Theme Announcement!

    FYI: This website becomes unusable for +/- 20 minutes at Theme Announcement time, because you’re awesome :D


    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]