Ninjadoodle Posted October 30, 2014 Share Posted October 30, 2014 Hi guys I'm trying to show my game through an iFrame (on my website) and everything works fine, apart from one thing. Since, the website is mainly for use on a pc, I would like to load the game at max @4x. The problem is that my iFrame is only 640x480, and the game renders at lower resolution. Is there a way I can get @4x through a smaller iFrame? Thank you heaps in advance! Quote Link to comment Share on other sites More sharing options...
enpu Posted October 30, 2014 Share Posted October 30, 2014 What was your game's base resolution? Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted October 30, 2014 Author Share Posted October 30, 2014 Hi @enpu My games base is 480x320. My old Flash games were (640x480), so I designed my website around that. I want to show the game 640px wide, inside an iFrame, but hopefully load the assets @4x (since I'm on a retina screen). Sorry if this is confusing! Quote Link to comment Share on other sites More sharing options...
enpu Posted October 30, 2014 Share Posted October 30, 2014 Hmm, that would need some work on the engine code, will take a look at that asap Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted October 31, 2014 Author Share Posted October 31, 2014 Hi @enpu Thank you for looking into this I've noticed that if you load the game in a small window, the engine uses the windows size to work out whether it should use @2x, @4x etc assets. I was wondering whether it would be possible to have the engine use the maximum display size (as in the resolution of the machine you're on), this way it would always load hi-res assets on desktops and appropriate assets on mobiles? Is this something that would work? Thank you again! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.