softer scream and aspect ratio fix
This commit is contained in:
parent
284e144159
commit
3bcdc71efb
12
index.html
12
index.html
|
@ -33,11 +33,13 @@
|
|||
<!-- Mobile -->
|
||||
<meta name="viewport" content="width=360, user-scalable=no" id="my_viewport">
|
||||
<script>
|
||||
var ratio = screen.width/screen.height;
|
||||
if(ratio > 360/600){
|
||||
var mvp = document.getElementById('my_viewport');
|
||||
mvp.setAttribute('content','width='+Math.round(ratio*600)+', height=600, user-scalable=no');
|
||||
}
|
||||
window.addEventListener("load", function(){
|
||||
var ratio = screen.width/screen.height;
|
||||
if(ratio > 360/600){
|
||||
var mvp = document.getElementById('my_viewport');
|
||||
mvp.setAttribute('content','width='+Math.round(ratio*600)+', height=600, user-scalable=no');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
|
|
@ -168,7 +168,7 @@ function BG_Intro(){
|
|||
}
|
||||
if(!SHOWN_LOGO && ticker>=530/30){
|
||||
SHOWN_LOGO = true;
|
||||
sfx("intro_scream");
|
||||
sfx("intro_scream", {volume:0.9});
|
||||
}
|
||||
if(GAME_TRANSITION==0 && SHOWN_LOGO){
|
||||
self.logoSprite.draw(ctx);
|
||||
|
|
Loading…
Reference in New Issue