Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

mergeInto(LibraryManager.library, {

    DetectPlatform: function () {

let platform = /Android|iPhone|iPod/i.test(navigator.userAgent) || 

                       (navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1) ? "Mobile" : "PC";

SendMessage('PlatformDetector', 'SetPlatform', platform);     

  },

});