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

(classic) Pacman Tile Maker #1099

Closed
suborb opened this issue Feb 7, 2019 · 11 comments
Closed

(classic) Pacman Tile Maker #1099

suborb opened this issue Feb 7, 2019 · 11 comments

Comments

@suborb
Copy link
Member

suborb commented Feb 7, 2019

[From RobertK email]

The Pacman tileset is not complete and not all graphic points are available.

It would be nice if we could convert a standard 8x8 font into a ROM suitable for the Pacman hardware.

@zx70
Copy link
Member

zx70 commented Feb 15, 2019

I thought a little at it, we have few interesting configurations possible: mixed text and graphics symbols, all monochrome graphics symbols to push the resolution at the maximum possible (not much to gain, though), and low rez graphics symbols chosen in a way permitting a bit of colour shuffling. I think a simple static font including symbols on a 2x3 matrix will suffice, easy variants could provide coloured text.

zx70 added a commit that referenced this issue Feb 21, 2019
@zx70
Copy link
Member

zx70 commented Feb 21, 2019

pacman-font

This was obtained by converting FONT8.BIN (2048 bytes) still present in the 'ansi' folder in libsrc

@suborb
Copy link
Member Author

suborb commented Feb 21, 2019

@zx70 thanks for doing that, now we've got the basics we can do a bit more!

@zx70
Copy link
Member

zx70 commented Feb 21, 2019

yup, I'm extending the tool to stick the 3x2 graphics symbols in the converted font, it takes 64 characters, there's space for 2 copies encoded in different colours but I'm not sure. I wonder if it is worth to add an option to merge two fonts in a coloured one

@suborb
Copy link
Member Author

suborb commented Feb 21, 2019

Nice. I was mulling over shifting to a standard ascii range when running with a custom font.

I think we should be able to merge fonts - eg combine a udg style graphics with a text font and blocks as needed.

zx70 added a commit that referenced this issue Feb 25, 2019
@zx70
Copy link
Member

zx70 commented Feb 25, 2019

untitled

@zx70
Copy link
Member

zx70 commented Feb 25, 2019

This is only a quick and dirty test of the font, I can leave Dominic the lib part :P This new rez (with a better driver than this mockup) sould be 84x72.
The 3x2 blocky graphics characters are between 192 and 255, the conversion tool at the moment deals with fonts encoded from chr(0) to chr(191), eventual extra data is overwritten with the graphics data.

zx70 added a commit that referenced this issue Feb 25, 2019
@zx70
Copy link
Member

zx70 commented Feb 25, 2019

I put a prebuilt font in the support/pacman folder

@zx70
Copy link
Member

zx70 commented Feb 26, 2019

I just discovered one of the limits of the driver I used in the tests: the div3 table was too short to work on 84 values..

zx70 added a commit that referenced this issue Feb 26, 2019
zx70 added a commit that referenced this issue Feb 26, 2019
zx70 added a commit that referenced this issue Feb 26, 2019
zx70 added a commit that referenced this issue Feb 26, 2019
zx70 added a commit that referenced this issue Feb 26, 2019
zx70 added a commit that referenced this issue Feb 26, 2019
zx70 added a commit that referenced this issue Feb 26, 2019
zx70 added a commit that referenced this issue Feb 26, 2019
@zx70
Copy link
Member

zx70 commented Feb 26, 2019

Graphics driver updated, it now works at a slightly higher resolution (84x72) but the ROM font currently present in support/pacman must be provided.

zx70 added a commit that referenced this issue Feb 26, 2019
@zx70
Copy link
Member

zx70 commented Feb 26, 2019

New graphics driver is now ready, I wouldn't waste time and energy to provide a 4x4 font. A graphics only font covering the whole 256 characters range could push the resolution to 112*72 (4x2 pseudo-graphics character blocks), but there wouldn't be space left for text characters. I'm not touching the console driver, probably it is easier for Dom to do the magic with the new console skeleton :)

@zx70 zx70 closed this as completed Feb 26, 2019
@suborb suborb added this to Todo in z88dk 2.0 via automation May 5, 2019
@suborb suborb moved this from Todo to Done in z88dk 2.0 May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
z88dk 2.0
  
Done
Development

No branches or pull requests

2 participants