Devi farti uno JS script di questo tipo
var width // Largezza schermo
var height // Altezza " "
var boolScreenWidth // booleano per risoluzione >= 1024 x 768
width = parseInt(screen.width); height = parseInt(screen.height);
// Questo verifica se la risoluzione è uguale superiore o inferiore a 1024 x 768
If ( width>=1024 & height>=768 ){boolScreenWidth = True;}
Else {boolScreenWidth = False;}
Swicth (boolScreenWidth){
case True:
//Azioni per la costruzione del livello
break;
case False:
//Il livello non viene eseguito
break;
}
Ciao !

Rispondi quotando