width: 100%;
height: 100%;
position: relative;
}
body {
width: 100%;
height: 100%;
position: relative;
background-color: #13141E;
overflow: hidden;
}
.ziggyLoader {
width: 100%;
height: 100%;
position: relative;
}
.container {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
flex-direction: column;
width: 100%;
height: 100%;
color: #F9FAFF;
font-family: 'Nunito',Arial,"Helvetica Neue",Helvetica,sans-serif;
font-style: normal;
font-weight: 400;
font-size: 14px;
position: absolute;
z-index: 3;
opacity: 0.5;
}
@keyframes bob {
0% {
transform: translate(0px, 0px); }
50% {
transform: translate(0px, 10.5px); }
100% {
transform: translate(0px, 0px); }
}
window.czyVariables={"countryCode":"RU","device":{"os":{"name":"Windows","version":"10"},"browser":{"name":"Edge","version":"133.0.0.0","major":"133"},"device":{},"engine":{"name":"Blink","version":"133.0.0.0"}}}Preparing your game…function loadScript(url, callback) {
var head = document.head;
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = url;
script.async = true;
script.onreadystatechange = callback;
script.onload = callback;
head.appendChild(script);
}
var options = {"loader":"unity2020","loaderOptions":{"showProgress":true,"unityLoaderUrl":"C:/Users/LocalAdmin/MX/static/js/962b15be668bc5114f6e2305562e0c45.js","unityConfigOptions":{"codeUrl":"6623c976fcd570ea7c7632bcabd13cd2.wasm.br","dataUrl":"47afacdf238bd338eccf531e71f9500d.data.br","frameworkUrl":"bf9572c66bb4a23b642fa3509dc57166.js.br"}},"thumbnail":"mx-offroad-master/20230206090722/mx-offroad-master-cover","gameName":"MX Offroad Master","gameHttps":true,"gameSlug":"mx-offroad-master","gameId":"21447","buildId":"f7c6ac4b-fa25-4a0b-a40e-38d36cbd0cd2","gameStatus":"published","showAdOnExternal":"ALWAYS","showAdOnInternal":"DEFAULT","disableEmbedding":false,"dollarRate":0.9542749609701541,"upvotes":339561,"downvotes":63669,"releaseDate":"2023-02-07","locale":"en_US","controls":{"text":"Controls\nPlayer 1\n\n WASD = move\n Space = front brake\n S = rear brake\n C = camera switch\n R = restart position\n\nPlayer 2\n\n Arrow keys = move\n R-shift = front brake\n Down arrow key = rear brake\n O= camera switch\n P = restart position\n"},"videoThumbnail":"1/mx-offroad-master-landscape-205x115_30fps.mp4","video":{"original":"https://videos.crazygames.com/mx-offroad-master/1/mx-offroad-master.mp4","sizes":[{"width":205,"height":115,"location":"https://videos.crazygames.com/mx-offroad-master/1/mx-offroad-master-landscape-205x115_30fps.mp4"},{"width":249,"height":140,"location":"https://videos.crazygames.com/mx-offroad-master/1/mx-offroad-master-landscape-249x140_30fps.mp4"},{"width":364,"height":208,"location":"https://videos.crazygames.com/mx-offroad-master/1/mx-offroad-master-landscape-364x208_30fps.mp4"},{"width":494,"height":276,"location":"https://videos.crazygames.com/mx-offroad-master/1/mx-offroad-master-landscape-494x276_30fps.mp4"},{"width":611,"height":343,"location":"https://videos.crazygames.com/mx-offroad-master/1/mx-offroad-master-landscape-611x343_30fps.mp4"}],"blurredVideo":{"width":922,"height":532,"location":"https://videos.crazygames.com/mx-offroad-master/1/mx-offroad-master-landscape-922x532_30fps_blurred.mp4"}},"sandbox":true,"totalSizeBytes":66041219,"minTimeBetweenMidrollAdsInMs":180000,"minTimeBetweenRewardedAdsInMs":5000,"noMidrollAdInFirstMinutes":3,"noRewardedAdInFirstMinutes":0,"categoryEnSlug":"driving","tagsEnSlugs":["trial","2-player","3d","racing","bike"],"isKids":false,"androidFriendly":false,"iosFriendly":false,"hasMidroll":true,"hasRewarded":true,"showExternalProviderWarning":false,"fullscreen":"ADDS_VALUE","orientation":null,"apsStorageType":"aps","userProgressionSaveMessage":"cloud","category":"Driving","categoryLink":"https://www.crazygames.com/c/driving","gameLink":"/","domainHasNoCMP":false,"source":"games"};
var SDK_READY = false;
var GF_READY = false;
var GF_LOAD_CALLED = false;
// Build GF path
var gfBuildPath = 'gameframe'
var gfDefaultVersion = '1.322'
var useLocalGF = false
var customGFHost = ''
var params = new URLSearchParams(window.location.search);
var version = params.get('v');
// Validate version param to prevent XSS
if(version) {
var versionRegex = /^\d+(.\d+)?(.\d+)?$/;
if(!versionRegex.test(version)) {
console.error('Invalid Gameframe version provided, falling back to default version');
version = null;
}
}
var gameframeJs = 'bundle.js';
if (useLocalGF) {
gameframeJs = 'bundle.js';
}
if (customGFHost) {
gameframeJs = 'bundle.js';
}
loadScript(gameframeJs, function() {
Crazygames.load(options).then(function() {
var loaderWrapper = document.getElementById('ziggyLoader');
var loaderStyles = document.getElementById('ziggyLoaderStyles');
if (loaderWrapper && loaderStyles) {
loaderWrapper.remove();
loaderStyles.remove();
}
});
});