mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Add support for different building variants
This commit is contained in:
@@ -28,7 +28,8 @@ export const globalConfig = {
|
||||
physicsDeltaSeconds: 0,
|
||||
|
||||
// Update physics at N fps, independent of rendering
|
||||
physicsUpdateRate: 55,
|
||||
// physicsUpdateRate: 55,
|
||||
physicsUpdateRate: 120,
|
||||
|
||||
// Map
|
||||
mapChunkSize: 32,
|
||||
@@ -47,6 +48,7 @@ export const globalConfig = {
|
||||
cutter: 1 / 4,
|
||||
rotater: 1 / 1,
|
||||
painter: 1 / 3,
|
||||
painterDouble: 1 / 3,
|
||||
mixer: 1 / 2,
|
||||
stacker: 1 / 5,
|
||||
},
|
||||
@@ -71,7 +73,7 @@ export const globalConfig = {
|
||||
|
||||
debug: {
|
||||
/* dev:start */
|
||||
// fastGameEnter: true,
|
||||
fastGameEnter: true,
|
||||
noArtificialDelays: true,
|
||||
// disableSavegameWrite: true,
|
||||
showEntityBounds: false,
|
||||
|
||||
@@ -750,15 +750,6 @@ export function checkTimerExpired(now, lastTick, tickRate) {
|
||||
* Returns if the game supports this browser
|
||||
*/
|
||||
export function isSupportedBrowser() {
|
||||
if (navigator.userAgent.toLowerCase().indexOf("firefox") >= 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return isSupportedBrowserForMultiplayer();
|
||||
}
|
||||
|
||||
// https://stackoverflow.com/questions/4565112/javascript-how-to-find-out-if-the-user-browser-is-chrome/13348618#13348618
|
||||
export function isSupportedBrowserForMultiplayer() {
|
||||
// please note,
|
||||
// that IE11 now returns undefined again for window.chrome
|
||||
// and new Opera 30 outputs true for window.chrome
|
||||
@@ -776,7 +767,6 @@ export function isSupportedBrowserForMultiplayer() {
|
||||
var winNav = window.navigator;
|
||||
var vendorName = winNav.vendor;
|
||||
// @ts-ignore
|
||||
var isOpera = typeof window.opr !== "undefined";
|
||||
var isIEedge = winNav.userAgent.indexOf("Edge") > -1;
|
||||
var isIOSChrome = winNav.userAgent.match("CriOS");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user