Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by alexandre

It would be nice if weltmeister, good as it is with the laying out of tiles, also supported layers for backgrounds and overlays too (1 layer, 1 media file, with an optional "pre-render" checkbox).

Alex

PS: image aspect ration is not 1:1, hence not possible to cheat by declaring it a 1 tile layer

1 decade ago by dominic

I think there's a misunderstanding of what the BackgroundMap's preRender mode does.

The pre-render mode draws a background map that consists of many tiles into one or more big ass images when you load the level. Now, instead of drawing a background map tile by tile, the engine draws these big ass images.

Since the pre-rendered images are (or rather should be) bigger than the tilesize, the Engine needs fewer draw operations to fill the background. At this point in time browsers are vastly faster with drawing one big ass image to a canvas, than drawing many small ones. Hence the performance improvement with the pre-render mode.

"Pre-rendering" a big ass image into another big ass image doesn't make much sense.

A "pre-render" checkbox for each layer in Weltmeister isn't a bad idea though :)


If you just want to draw a background image, not a background map, load an ig.Image and draw it. Granted, it would be more comfortable to do this in the editor, not in code. So... maybe for Impact 2.x :)

1 decade ago by alexandre

Thanks dominic. Got it.
Page 1 of 1
« first « previous next › last »