Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tile-set with A-Z letters #120

Open
felipesanches opened this issue Jun 23, 2022 · 1 comment
Open

Tile-set with A-Z letters #120

felipesanches opened this issue Jun 23, 2022 · 1 comment

Comments

@felipesanches
Copy link
Contributor

We'll need this for printing text such as in the credits screen (#94) as well as in a title screen.

@lpereira
Copy link
Contributor

lpereira commented Jun 24, 2022

I started working on this yesterday. The font tileset has to be separate from the normal tileset because we can then compress it better (1bpp bitmaps). I like the way this blog post here did it (although we might want to choose a free font, of course, but the way they do the lookup is kinda nice).

One of the things I wanna do is a GUI similar to the one in zsnes. I started this yesterday too, and I already have some routines to draw windows and text. Here's how's it looking at this point:
Screenshot from 2022-06-23 20-56-55

This window is generated by this code:

    message_box("Some dialog",
                "Hello, world\n"
                "Multi\n"
                "Line\n"
                "Text!");

If the palette looks weird is that because if there's a window open, all the colors not used by the window are darkened. The palette is restored once the window is closed.

The window looks like a Windows 95 knockoff, but I'm planning to make it look a whole lot nicer, maybe with a different color palette that doesn't scream like "database software from the 1990s". This was just easy to do to start. The font is terrible, too! Really need some proportional width font, otherwise it looks like garbage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants