Skip to main content

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

Learned about this tool a while ago, and have been itching to use it for a long time. Just released a tiny thing using it. Had a lovely time c:

FYI, I ran into an issue where text was rendering weird on Firefox -- sometimes totally unreadable. I narrowed it down to the bottom of drawText(). Something about the combo of "globalAlpha = 0.8" and "filter = 'url(#remove-alpha)'" was causing it. I basically just did this to get around it:

if (navigator.userAgent.search("Firefox")) {
    console.log("firefox detected, failsafe to make sure text is readable");
    ctx1.globalAlpha = 1.0;
}
else {
    ctx1.globalAlpha = 0.8;
}

Everything else is the same. No clue how robust this is, but hey it works fine enough for my purposes. It does make some letters weirdly bolded, but it's better than the alternative.

Hey! Glad you like it, I'll check out the game!

The alpha filter was a fix so that the game looks right on Chrome - without it renders the text blurrily. With it in place, I believe the reason for weird rendering and totally unreadably thin lines is often nonstandard characters like am em dash or an ellipsis glyph causing subpixel spacing afterwards, if that helps at all! But if your fix to just remove it on firefox works for you then great :)

(1 edit)

I don't think I was doing anything non-standard, though maybe I was without realizing it. My little fix works fine for me, but here's what I was seeing FWIW:

With no changes to the code: 

If I remove the filter line:

With my fix:

Maybe Firefox just doesn't like that particular filter?

FWIW i almost exclusively use Firefox and don't get the issue, so it's not a global thing and is a game specific one i'm afraid...

I do see the issue even in the sample project, on the 3 "iterating downwards" lines. Strange that you don't see it though. Must be something funky on my end, though I'm not sure what. Oh well :p Thanks again for the cool engine though!!