mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Initial support for blueprints (Buggy)
This commit is contained in:
@@ -93,7 +93,7 @@ export const globalConfig = {
|
||||
// disableZoomLimits: true,
|
||||
// showChunkBorders: true,
|
||||
// rewardsInstant: true,
|
||||
// allBuildingsUnlocked: true,
|
||||
allBuildingsUnlocked: true,
|
||||
// upgradesNoCost: true,
|
||||
// disableUnlockDialog: true,
|
||||
// disableLogicTicks: true,
|
||||
@@ -103,6 +103,8 @@ export const globalConfig = {
|
||||
// enableEntityInspector: true,
|
||||
// testAds: true,
|
||||
// disableMapOverview: true,
|
||||
disableTutorialHints: true,
|
||||
disableUpgradeNotification: true,
|
||||
/* dev:end */
|
||||
},
|
||||
|
||||
|
||||
@@ -103,6 +103,17 @@ export class Vector {
|
||||
return new Vector(this.x - other.x, this.y - other.y);
|
||||
}
|
||||
|
||||
/**
|
||||
* Subs a vector
|
||||
* @param {Vector} other
|
||||
* @returns {Vector}
|
||||
*/
|
||||
subInplace(other) {
|
||||
this.x -= other.x;
|
||||
this.y -= other.y;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Multiplies with a vector and return a new vector
|
||||
* @param {Vector} other
|
||||
|
||||
Reference in New Issue
Block a user