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 wands

I've created my game on a resolution of 1300 by 700. It works on desktop obviously.

But is there anyway to scale it to fit another size completely without making changes to the my game code.

Example 1024 by 768 instead?

I've tried to scale it down to 0.5 but everything just went haywired.

I've tried to look at CSS but does not work or did I do something wrong

1 decade ago by Joncom

When setting scale in Impact, always use an integer, or else things will look bad.

// Shrink canvas to half size via "CSS" style property.
document.getElementById('canvas').style.zoom=0.5;

1 decade ago by wands

Works! But some stuffs are screwed up in my game. Thanks for your help as always.

I'll work on fixing those problems
Page 1 of 1
« first « previous next › last »