cykod / Quintus

HTML5 Game Engine
http://html5quintus.com
GNU General Public License v2.0
1.41k stars 401 forks source link

Scale To Fit is not working #175

Open donguseo opened 8 years ago

donguseo commented 8 years ago

Hi.

I'm dong-u seo.

I tried to use the function, named "scale to fit", but it looks not working in my case. This is the code I wrote.

<!DOCTYPE HTML>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>TEST</title>
    <script src='http://cdn.html5quintus.com/v0.2.0/quintus-all.min.js'></script>
    <script src='test.js'></script>
</head>
<body>
</body>
</html>
var Q = Quintus().include("Sprites, Scenes, UI, Touch, Input")
   .setup({
      width:   600, // Set the default width to 800 pixels
      height:  800, // Set the default height to 600 pixels
      scaleToFit: true // Scale the game to fit the screen of the player's device
    }).touch();

The other functions look OK for me. But the only "scale to fit" function is not working. If you know how to fix this please let me know.

Bye.

viki53 commented 8 years ago

What do you mean in doesn't work? Do you have any more details about the issue you encounter?

Also, make sure you use the latest version of Quintus, which you can get from this repo: the CDN may be out of date.

donguseo commented 8 years ago

This problem only occurs when I use the CDN version.

Did you tried the code I wrote in my previous comment? If you have tried you should have noticed what I meant. I commented scale to fit function is not working. What if it is working, when the code is called in different size of browser the canvas size should be different but it wasn't. It was same all the time.

But when I use scale to fit function with the version downloaded from github, it is working.

I write this comment because the CDN version has a problem with scale to fit function.

2015-12-30 17:42 GMT+09:00 Corentin H notifications@github.com:

What do you mean in doesn't work? Do you have any more details about the issue you encounter?

Also, make sure you use the latest version of Quintus, which you can get from this repo: the CDN may be out of date.

— Reply to this email directly or view it on GitHub https://github.com/cykod/Quintus/issues/175#issuecomment-167958224.


서동우 ( dongu0406@gmail.com)

C.P: 010-9206-3368


Drulac commented 7 years ago

I have the same issu, when i use the CDN, and when I dont use the CDN :/