Skip to main content

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

Updated the standalone file to include get_size, that was an oversight on my part since I’ve copied the CDD code from one shared file that had the definition once.

And about the demo instructions, I looked at the wrong line in my code, so jump ff_bar_demo should be the correct way.

Are you sure about that? I've just downloaded the updated file and I'm not seeing it in there.

Thanks for checking, it should be there now. I had uploaded the wrong version of the file instead, so now I changed it.

I don't know what get_size is. Did you mean to use renpy.image_size() instead? That's what I used so I could see the demo.

E.g.

Instead of:

v = renpy.Render(get_size(self.mask)[0], get_size(self.mask)[1])

I swapped it with:

v = renpy.Render(*renpy.image_size(self.mask))

(That way it only calculates the size once too)

However, this is a very slow function, so I think it would be productive if you cached it. I tried caching it and I got a significantly more responsive UI.

Other than that and some few more things... Overall, this is very well done. It's a keeper.

(1 edit)

Now that I remember... I think I've seen that function before. Is it this? https://github.com/ojii/imgsize

I remember seeing something like this when I was doing a library for image loading and handling (which is still not ready for public consumption) a couple years ago...

Nevermind. I get it now. The standalone script was fixed.

(+1)

Thanks for the observation! I’ve implemented your suggestion (now it only calculates the mask size during init)

The get_size function was actually provided by Feniks a long time ago when I asked in DevTalk and I’ve been using it since.

Would you mind if I update the bar (and other stuff that uses get_size)? Of course you’ll be mentioned in the credits as the one who suggested this change.

Nice!

Go ahead, you can use the code I gave you for this.