Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Generating Dynamic Images
- - By ? Date 2010-08-09 08:17
Hi there. First I have to say that Gosu is amazing and easily the best thing I've ever used for making games - especially as someone who loves Ruby.

To the point though, I'm having trouble with one small thing in a project I'm working on, and that is creating a "mini-map" based on the larger tiled map that acts as the playfield. When it's just drawing the map itself it runs at a smooth 60FPS, but when I draw both the map and the mini-map (tile-by-tile, yes, so it's quite slow) it drops like a rock to 30-40 FPS on even a smallish map. Clearly this can be helped with some intelligent coding, so I would like to generate the mini-map as a dynamically-created image that's built when loading the map file and then just drawing that already-generated mini-map image that to save on unnecessary processing.

However, unless I'm missing something really obvious, I don't see any way that Gosu supports dynamically creating images and then drawing them. In fact, I don't see any way to draw things other than to a window at all. Any ideas or tips on how I could do this? I'd really appreciate it.
Parent - - By lol_o2 Date 2010-08-09 08:21
Try to use TexPlay library (it's and addition gem for Gosu). It ables to manipulate images.
Parent - By ? Date 2010-08-09 08:53
Wow, I'm almost embarrassed to have missed TexPlay. This is exactly what I needed...it's working perfectly. Thanks a bunch!
Up Topic Gosu / Gosu Exchange / Generating Dynamic Images

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill