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.
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.