mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Cleanup first game experience
This commit is contained in:
parent
d09a593f81
commit
5cd4dba54a
@ -13,6 +13,7 @@
|
|||||||
"prettier-all": "prettier --write src/**/*.* && prettier --write gulp/**/*.*",
|
"prettier-all": "prettier --write src/**/*.* && prettier --write gulp/**/*.*",
|
||||||
"publishOnItchWindows": "butler push tmp_standalone_files/shapez.io-standalone-win32-x64 tobspr/shapezio:windows --userversion-file version",
|
"publishOnItchWindows": "butler push tmp_standalone_files/shapez.io-standalone-win32-x64 tobspr/shapezio:windows --userversion-file version",
|
||||||
"publishOnItchLinux": "butler push tmp_standalone_files/shapez.io-standalone-linux-x64 tobspr/shapezio:linux-experimental --userversion-file version",
|
"publishOnItchLinux": "butler push tmp_standalone_files/shapez.io-standalone-linux-x64 tobspr/shapezio:linux-experimental --userversion-file version",
|
||||||
|
"publishOnItch": "yarn publishOnItchWindows && yarn publishOnItchLinux",
|
||||||
"publishOnSteam": "cd gulp/steampipe && ./upload.bat",
|
"publishOnSteam": "cd gulp/steampipe && ./upload.bat",
|
||||||
"publishStandalone": "yarn publishOnItch && yarn publishOnSteam",
|
"publishStandalone": "yarn publishOnItch && yarn publishOnSteam",
|
||||||
"publishWeb": "cd gulp && yarn main.deploy.prod",
|
"publishWeb": "cd gulp && yarn main.deploy.prod",
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 695 B |
Binary file not shown.
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.1 KiB |
@ -41,8 +41,8 @@
|
|||||||
background: center center / 70% no-repeat;
|
background: center center / 70% no-repeat;
|
||||||
|
|
||||||
&:not(.unlocked) {
|
&:not(.unlocked) {
|
||||||
@include S(width, 30px);
|
@include S(width, 20px);
|
||||||
opacity: 0.8;
|
opacity: 0.15;
|
||||||
background-image: none !important;
|
background-image: none !important;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
|
@ -83,7 +83,7 @@ export const globalConfig = {
|
|||||||
|
|
||||||
debug: {
|
debug: {
|
||||||
/* dev:start */
|
/* dev:start */
|
||||||
// fastGameEnter: true,
|
fastGameEnter: true,
|
||||||
// noArtificialDelays: true,
|
// noArtificialDelays: true,
|
||||||
// disableSavegameWrite: true,
|
// disableSavegameWrite: true,
|
||||||
// showEntityBounds: true,
|
// showEntityBounds: true,
|
||||||
@ -93,8 +93,8 @@ export const globalConfig = {
|
|||||||
// disableZoomLimits: true,
|
// disableZoomLimits: true,
|
||||||
// showChunkBorders: true,
|
// showChunkBorders: true,
|
||||||
// rewardsInstant: true,
|
// rewardsInstant: true,
|
||||||
allBuildingsUnlocked: true,
|
// allBuildingsUnlocked: true,
|
||||||
blueprintsNoCost: true,
|
// blueprintsNoCost: true,
|
||||||
// upgradesNoCost: true,
|
// upgradesNoCost: true,
|
||||||
// disableUnlockDialog: true,
|
// disableUnlockDialog: true,
|
||||||
// disableLogicTicks: true,
|
// disableLogicTicks: true,
|
||||||
@ -104,7 +104,7 @@ export const globalConfig = {
|
|||||||
// enableEntityInspector: true,
|
// enableEntityInspector: true,
|
||||||
// testAds: true,
|
// testAds: true,
|
||||||
// disableMapOverview: true,
|
// disableMapOverview: true,
|
||||||
disableTutorialHints: true,
|
// disableTutorialHints: true,
|
||||||
disableUpgradeNotification: true,
|
disableUpgradeNotification: true,
|
||||||
// instantBelts: true,
|
// instantBelts: true,
|
||||||
// instantProcessors: true,
|
// instantProcessors: true,
|
||||||
|
@ -23,10 +23,6 @@ export class HUDKeybindingOverlay extends BaseHUDPart {
|
|||||||
"ingame_HUD_KeybindingOverlay",
|
"ingame_HUD_KeybindingOverlay",
|
||||||
[],
|
[],
|
||||||
`
|
`
|
||||||
<div class="binding">
|
|
||||||
<code class="keybinding">${getKeycode(KEYMAPPINGS.navigation.createMarker)}</code>
|
|
||||||
<label>${T.ingame.keybindingsOverlay.createMarker}</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="binding">
|
<div class="binding">
|
||||||
<code class="keybinding leftMouse noPlacementOnly"></code><i class="noPlacementOnly"></i>
|
<code class="keybinding leftMouse noPlacementOnly"></code><i class="noPlacementOnly"></i>
|
||||||
|
@ -55,15 +55,6 @@ export class HUDPartTutorialHints extends BaseHUDPart {
|
|||||||
this.domAttach = new DynamicDomAttach(this.root, this.element);
|
this.domAttach = new DynamicDomAttach(this.root, this.element);
|
||||||
|
|
||||||
this.currentShownLevel = new TrackedState(this.updateVideoUrl, this);
|
this.currentShownLevel = new TrackedState(this.updateVideoUrl, this);
|
||||||
|
|
||||||
this.root.signals.postLoadHook.add(() => {
|
|
||||||
if (this.root.hubGoals.level === 1 && !(G_IS_DEV && globalConfig.debug.disableTutorialHints)) {
|
|
||||||
this.root.hud.parts.dialogs.showInfo(
|
|
||||||
T.dialogs.hintDescription.title,
|
|
||||||
T.dialogs.hintDescription.desc
|
|
||||||
);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
updateVideoUrl(level) {
|
updateVideoUrl(level) {
|
||||||
|
@ -375,19 +375,6 @@ export class MainMenuState extends GameState {
|
|||||||
this.moveToState("SettingsState");
|
this.moveToState("SettingsState");
|
||||||
}
|
}
|
||||||
|
|
||||||
doStartNewGame() {
|
|
||||||
this.app.analytics.trackUiClick("startgame");
|
|
||||||
|
|
||||||
this.app.adProvider.showVideoAd().then(() => {
|
|
||||||
const savegame = this.app.savegameMgr.createNewSavegame();
|
|
||||||
|
|
||||||
this.moveToState("InGameState", {
|
|
||||||
savegame,
|
|
||||||
});
|
|
||||||
this.app.analytics.trackUiClick("startgame_adcomplete");
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
onPlayButtonClicked() {
|
onPlayButtonClicked() {
|
||||||
if (
|
if (
|
||||||
IS_DEMO &&
|
IS_DEMO &&
|
||||||
@ -399,17 +386,15 @@ export class MainMenuState extends GameState {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_DEMO) {
|
this.app.analytics.trackUiClick("startgame");
|
||||||
this.app.analytics.trackUiClick("startgame_pre_show");
|
this.app.adProvider.showVideoAd().then(() => {
|
||||||
const { ok } = this.dialogs.showWarning(
|
const savegame = this.app.savegameMgr.createNewSavegame();
|
||||||
T.dialogs.demoExplanation.title,
|
|
||||||
T.dialogs.demoExplanation.desc
|
|
||||||
);
|
|
||||||
ok.add(() => this.doStartNewGame());
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.doStartNewGame();
|
this.moveToState("InGameState", {
|
||||||
|
savegame,
|
||||||
|
});
|
||||||
|
this.app.analytics.trackUiClick("startgame_adcomplete");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
onLeave() {
|
onLeave() {
|
||||||
|
@ -159,10 +159,6 @@ dialogs:
|
|||||||
title: Update available
|
title: Update available
|
||||||
desc: There is an update for this game available!
|
desc: There is an update for this game available!
|
||||||
|
|
||||||
demoExplanation:
|
|
||||||
title: Notice from the Developer
|
|
||||||
desc: I am developing this game in my free time, and I hope you enjoy it! If you do, please consider to buy the standalone version!
|
|
||||||
|
|
||||||
oneSavegameLimit:
|
oneSavegameLimit:
|
||||||
title: Limited savegames
|
title: Limited savegames
|
||||||
desc: You can only have one savegame at a time in the demo version. Please remove the existing one or get the standalone!
|
desc: You can only have one savegame at a time in the demo version. Please remove the existing one or get the standalone!
|
||||||
|
Loading…
Reference in New Issue
Block a user