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 Yami

Does anyone know how to turn off canvas percentage scaling using plugin impact++?

I am able to set the game width and height with no issue but it still extends the background canvas to a set percentage of your browser. I found it in the core config files but see no way to disable it. If you delete the function no image will be drawn.

You can pick an arbitrary percentage but I want to be able to force it to always show my set pixel width regardless of someones resolution.


These are the sets in the core config file. I am not able to find any way to disable this or be able to specify pixel values instead of browser percentage.

ig.CONFIG.CANVAS_HEIGHT_PCT = 1;
ig.CONFIG.CANVAS_WIDTH_PCT = 1;

Any help would be greatly appreciate I have poked around for 3 hours in the files with no luck.

1 decade ago by Yami

I figured it out. Incase anyone else runs into this:

Under the core folder game.js their is a resize function(). I didnt want to deal with any downstream from deleting it so i just commented out the call inside leaving an empty shell function that does nothing.
Page 1 of 1
« first « previous next › last »