Skip to content

Commit

Permalink
fixed lake map not generating from the launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
meszaros-lajos-gyorgy committed Feb 28, 2022
1 parent 4306b7b commit 02befad
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const compileFTS = (config) => {
outputDir,
`./game/graph/levels/level${levelIdx}/fast.fts.json`
);

const dest = path.resolve(
outputDir,
`./game/graph/levels/level${levelIdx}/fast.fts`
Expand Down
20 changes: 11 additions & 9 deletions src/electron/src/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ import fs from "fs";
import React, { useState, useEffect } from "react";
import AliasNightmare from "../projects/AliasNightmare.jsx";
import TheBackrooms from "../projects/TheBackrooms.jsx";
import TheLake from "../projects/TheLake.jsx";
import Loading from "./Loading.jsx";
import MenuItem from "./MenuItem.jsx";
import path from "path";
import seedrandom from "seedrandom";
import { ipcRenderer } from "electron";
import { cleanupCache, uninstall } from "../../../helpers.js";
import aliasNightmare from "../../../projects/alias-nightmare/index.js";
import theBackrooms from "../../../projects/the-backrooms/index.js";
import aliasNightmareGenerator from "../../../projects/alias-nightmare/index.js";
import theBackroomsGenerator from "../../../projects/the-backrooms/index.js";
import theLakeGenerator from "../../../projects/the-lake/index.js";
import { compileFTS, compileLLF, compileDLF } from "../../../compile.js";
import TheLake from "../projects/TheLake.jsx";

const generateSeed = () => Math.floor(Math.random() * 1e20);

Expand Down Expand Up @@ -100,12 +101,15 @@ const App = () => {
levelIdx: 1,
seed,
outputDir,
lootTable: [],
bumpFactor: 3,
...settings,
};

switch (project) {
case "the-backrooms":
await theBackrooms({
await theBackroomsGenerator({
...config,
percentOfLightsOn: 30,
roomDimensions: {
width: [1, 5],
Expand All @@ -129,17 +133,15 @@ const App = () => {
variant: "slow",
},
],
...config,
});
break;
case "alias-nightmare":
await aliasNightmare({
lootTable: [],
await aliasNightmareGenerator({
...config,
});
break;
case "the-lake":
await TheLake({
await theLakeGenerator({
...config,
});
break;
Expand Down Expand Up @@ -171,7 +173,7 @@ const App = () => {
checkForInstalledMaps(outputDir);
}, 100);
}, 100);
}, 100);
}, 1000);
}, 100);
};

Expand Down
2 changes: 1 addition & 1 deletion src/projects/the-lake/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const createAmikarsRock = (pos) => {
const generate = async (config) => {
const { origin } = config;

const welcomeMarker = createWelcomeMarker([500, 0, 500]);
createWelcomeMarker([500, 0, 500]);

createPlant([700, 0, 700]);
createAmikarsRock([-500, 220, 500]);
Expand Down

0 comments on commit 02befad

Please sign in to comment.