Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

The Mojon Twins

89
Posts
1
Topics
411
Followers
247
Following
A member registered Feb 23, 2022 · View creator page →

Creator of

Recent community posts

Thanks!

Thanks, mate!

Thanks mate!

No lo habíamos visto, los revisamos.

Gracias!

Thanks for your video!!

Thanks!

Gracias amigo!

Thanks!

Está súper cuidada, un trabajo fantástico. A ver si la cargo en el +, ojalá haber tenido este juego en su día. 🙌

Enhorabuena porque es una conversión espectacular, con música en 48k y todos los detalles del Tetris de recreativa. Muchas gracias!!

Enhorabuena chicos!

Juegazo brutal!

Frame can be disabled adding ` -DDISABLE_SCREEN_FRAME ` to your compile command.

Nevermind, I got it working! 

Got the typeface as a bitmap array from https://github.com/susam/pcface/ , converted it to a C array of 256*14 bytes, and then used this to export it to a file:

int main(void) {
    int chr_width = 8; 
    int chr_height = 14; 
    int chr_baseline = 10; 
    PIXELFONT_U8 pixels [32 * 32]; 
    pixelfont_builder_t* builder = pixelfont_builder_create (
        chr_height, 
        chr_baseline,  
        chr_height,  
        NULL
    ); 
    unsigned char *ptr = PC_FACE_OLDSCHOOL_EGA_8X14_FONT_LIST;  
    for (int c = 0; c < 256; c ++) { 
        // Paint glyph 
        for (int y = 0; y < 14; y ++) { 
            unsigned char bitmap = *ptr ++; 
            for (int x = 0; x < 8; x ++) { 
                if (bitmap & (1 << (7 - x))) { 
                    pixels [x + chr_width * y] = 1; 
                } else { 
                    pixels [x + chr_width * y] = 0; 
                } 
            }
        }
        pixelfont_builder_glyph (builder, c, chr_width, pixels, chr_width, 0, chr_width);     
    } 
    pixelfont_t* pixelfont = pixelfont_builder_font (builder); 
    pixelfont_t* output = (pixelfont_t*) malloc (pixelfont->size_in_bytes); 
    memcpy (output, pixelfont, pixelfont->size_in_bytes); 
    FILE *pf = fopen ("ega14.fnt", "wb"); 
    fwrite (output, sizeof (unsigned char), pixelfont->size_in_bytes, pf); 
    fclose (pf); 
    pixelfont_builder_destroy (builder); 
}

Thanks for the prompt response! Great news about the UTF8 support. I'm doing conversions myself but this will surely come handy.

About the builder functions, I guess I have to call `pixelfont_builder_glyph` for every glyph I need to add - and pass a 32x32 bytes "bitmap" as `pixels` using 0 for BG and 1 for FG for each pixel in the glyph? top-left aligned?

Thanks again.

I'd like to add my own, possibly write a visual editor to create more - I'd like to start by adding the 8x14 EGA Hi-Res font for 640x350, 24 line display, but I'm not having luck on deciphering the format. Could you give me some pointers?

This is a great lib, I love it to bits.

Thanks, mate!

Thanks!

Graciassssssss! Ahora a ver qué tal ese Sorcerer Kid, hay ganas de catarlo!

Gracias!!!! Puedes llamarlo Cheril en el nombre raro XD

Muy sorprendente en gráficos, movimientos y jugabilidad!
Deseando más!

Muchas gracias por tus palabras!!!

Teşekkürler dostum, sonunda hep aynı şeyleri bağışlıyorsun!

Brutal!!!!

gracias!!!! Pues el nombre viene de un generador de nombres turcos que hemos programado 🤣

Gracias!

Mil gracias, amigo!!!

thanks Marco!

thanks!

Sois los putos amos ♥️

Gracias a ti por jugarlo!

Thanks mate!

Thanks!

Gracias Carlosssssss!!!

PerFect!

Thanks!

Algún día explicaremos de dónde viene el nombre de Led Baratas XD

Hablamos con murciano a ver 😁

Jajaja, seguro que te lo pasas pronto! Ya nos contarás 😀

Nos alegramos que te guste!

fantástico! En las próximas partidas fijo que te lo pasas 🙌