Porting Dragon Quest to the C64 (Part 3)

C64 screen with a broken message window

After the Switch to Bitmap

Last time, I switched the screen over to bitmap mode to bring the look closer to the Famicom version. The map graphics got much prettier, but the hard part came after that.

The Message Windows Wouldn't Behave

What tripped me up was the message windows. In Dragon Quest, windows constantly open and close on top of the map: when you talk to people, when you pick a command, during battles.

In the bitmap version, only part of the screen was in multicolor: the map was multicolor and the text was hi-res. Multicolor gives you more colors but halves the horizontal resolution. Hi-res lets you draw finer detail, but only two colors per 8×8 cell. Because I was mixing the two on one screen, I just couldn't get the window opening and closing to work. I fixed it, checked it on real hardware, and fixed it again, over and over, but it never became stable.

Here are two examples. Parts of the window drop out, leaving the frame and text broken.

C64 screen with a broken message window
Broken window, example 1
C64 screen with the middle of the status window missing
Broken window, example 2

Going All Hi-Res

So I made a bold call: drop the partial multicolor and make the whole screen hi-res. From v0.37 on it's the hi-res version, and I've already rebuilt it many times today.

With the whole screen in one display mode, the window handling became much simpler. Colors take more care, but in some ways hi-res actually makes it easier to reproduce the Famicom version's fine pixel art and text.

Here's a comparison of the same spots. On the left is v0.36 in multicolor; on the right is v0.37, all hi-res.

Forest and castle floor compared: multicolor v0.36 on the left, hi-res v0.37 on the right
Left: multicolor (v0.36) / Right: hi-res (v0.37)

Multicolor could even show the brown of the tree trunks, but hi-res allows only two colors per cell, so there are fewer colors. In exchange, the pixels are finer and the shapes of the trees and stones are much crisper.

Back to Speed

Now that the display mode has settled, I'm working on speed again.

One part is how fast the message windows open and close. In Dragon Quest, windows snap open and snap shut, and that feels great. If they drag, you notice it while playing.

The other is walking speed. In Part 2 I wrote that the hero now walks at almost the same speed as on the Famicom, but bitmap mode has to rewrite far more data than character mode, so changing the display mode meant tuning it all over again.

Getting both the look and the speed close to the Famicom version: that's the biggest hurdle right now. More next time.

コメント

制限付き HTML

  • 使用できるHTMLタグ: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • 行と段落は自動的に折り返されます。
  • ウェブページのアドレスとメールアドレスは自動的にリンクに変換されます。