mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Switch to steam
This commit is contained in:
parent
1dee6a6aa2
commit
a2ee16589f
@ -237,7 +237,7 @@ module.exports = ({
|
||||
pattern: /globalConfig\.beltSpeedItemsPerSecond/g,
|
||||
replacement: () => "2.0",
|
||||
},
|
||||
{ pattern: /globalConfig\.itemSpacingOnBelts/g, replacement: () => "0.8" },
|
||||
{ pattern: /globalConfig\.itemSpacingOnBelts/g, replacement: () => "0.63" },
|
||||
{ pattern: /globalConfig\.debug/g, replacement: () => "''" },
|
||||
],
|
||||
}),
|
||||
|
@ -1,6 +1,6 @@
|
||||
#ingame_HUD_Watermark {
|
||||
position: absolute;
|
||||
background: uiResource("get_on_itch_io.svg") center center / contain no-repeat;
|
||||
background: uiResource("get_on_steam.png") center center / contain no-repeat;
|
||||
@include S(width, 110px);
|
||||
@include S(height, 40px);
|
||||
@include S(top, 10px);
|
||||
|
@ -103,9 +103,9 @@
|
||||
|
||||
.steamLink {
|
||||
width: 100%;
|
||||
@include S(height, 50px);
|
||||
@include S(height, 40px);
|
||||
|
||||
background: uiResource("get_on_itch_io.svg") center center / contain no-repeat;
|
||||
background: uiResource("get_on_steam.png") center center / contain no-repeat;
|
||||
overflow: hidden;
|
||||
display: block;
|
||||
text-indent: -999em;
|
||||
|
@ -30,7 +30,7 @@
|
||||
width: 200px;
|
||||
height: 80px;
|
||||
min-height: 40px;
|
||||
background: uiResource("get_on_itch_io.svg") center center / contain no-repeat;
|
||||
background: uiResource("get_on_steam.png") center center / contain no-repeat;
|
||||
overflow: hidden;
|
||||
display: block;
|
||||
text-indent: -999em;
|
||||
|
@ -1,4 +1,13 @@
|
||||
export const CHANGELOG = [
|
||||
{
|
||||
version: "1.1.8",
|
||||
date: "07.06.2020",
|
||||
entries: [
|
||||
"You can now purchase the standalone on steam! <a href='https://steam.shapez.io' target='blank'>View steam page</a>",
|
||||
"Added ability to create markers in the demo, but only two.",
|
||||
"Contest #01 has ended! I'll now work through the entries, select the 5 I like most and present them to the community to vote for!",
|
||||
],
|
||||
},
|
||||
{
|
||||
version: "1.1.7",
|
||||
date: "04.06.2020",
|
||||
|
@ -15,8 +15,7 @@ export const THIRDPARTY_URLS = {
|
||||
discord: "https://discord.gg/HN7EVzV",
|
||||
github: "https://github.com/tobspr/shapez.io",
|
||||
|
||||
// standaloneStorePage: "https://steam.shapez.io",
|
||||
standaloneStorePage: "https://tobspr.itch.io/shapez.io",
|
||||
standaloneStorePage: "https://store.steampowered.com/app/1318690/shapezio/",
|
||||
};
|
||||
|
||||
export const globalConfig = {
|
||||
@ -45,8 +44,8 @@ export const globalConfig = {
|
||||
|
||||
// Belt speeds
|
||||
// NOTICE: Update webpack.production.config too!
|
||||
beltSpeedItemsPerSecond: 1,
|
||||
itemSpacingOnBelts: 0.63,
|
||||
beltSpeedItemsPerSecond: 2,
|
||||
itemSpacingOnBelts: 0.8,
|
||||
minerSpeedItemsPerSecond: 0, // COMPUTED
|
||||
|
||||
undergroundBeltMaxTilesByTier: [5, 8],
|
||||
@ -83,7 +82,7 @@ export const globalConfig = {
|
||||
|
||||
debug: {
|
||||
/* dev:start */
|
||||
// fastGameEnter: true,
|
||||
fastGameEnter: true,
|
||||
// noArtificialDelays: true,
|
||||
// disableSavegameWrite: true,
|
||||
// showEntityBounds: true,
|
||||
|
@ -13,7 +13,7 @@ export class HUDWatermark extends BaseHUDPart {
|
||||
}
|
||||
|
||||
onWatermarkClick() {
|
||||
this.root.app.analytics.trackUiClick("watermark_click");
|
||||
this.root.app.analytics.trackUiClick("watermark_click_2");
|
||||
this.root.app.platformWrapper.openExternalLink(THIRDPARTY_URLS.standaloneStorePage);
|
||||
}
|
||||
|
||||
|
@ -133,11 +133,6 @@ export class HUDWaypoints extends BaseHUDPart {
|
||||
* @param {Vector=} worldPos Override the world pos, otherwise it is the camera position
|
||||
*/
|
||||
requestCreateMarker(worldPos = null) {
|
||||
if (IS_DEMO) {
|
||||
this.root.hud.parts.dialogs.showFeatureRestrictionInfo(T.demo.features.creatingMarkers);
|
||||
return;
|
||||
}
|
||||
|
||||
const markerNameInput = new FormElementInput({
|
||||
id: "markerName",
|
||||
label: null,
|
||||
@ -157,6 +152,11 @@ export class HUDWaypoints extends BaseHUDPart {
|
||||
const center = worldPos || this.root.camera.center;
|
||||
|
||||
dialog.buttonSignals.ok.add(() => {
|
||||
if (IS_DEMO && this.waypoints.length > 2) {
|
||||
this.root.hud.parts.dialogs.showFeatureRestrictionInfo("", T.dialogs.markerDemoLimit.desc);
|
||||
return;
|
||||
}
|
||||
|
||||
this.waypoints.push({
|
||||
label: markerNameInput.getValue(),
|
||||
center: { x: center.x, y: center.y },
|
||||
|
@ -27,7 +27,8 @@ export class MainMenuState extends GameState {
|
||||
<a href="#" class="steamLink" target="_blank">Get the shapez.io standalone!</a>
|
||||
`;
|
||||
|
||||
return `
|
||||
return (
|
||||
`
|
||||
|
||||
<button class="settingsButton"></button>
|
||||
|
||||
@ -57,13 +58,20 @@ export class MainMenuState extends GameState {
|
||||
|
||||
<div class="sideContainer">
|
||||
${IS_DEMO ? `<div class="standaloneBanner">${bannerHtml}</div>` : ""}
|
||||
|
||||
<div class="contest">
|
||||
<h3>${T.mainMenu.contests.contest_01_03062020.title}</h3>
|
||||
<p>${T.mainMenu.contests.contest_01_03062020.desc}</p>
|
||||
` +
|
||||
/*<p>${T.mainMenu.contests.contest_01_03062020.desc}</p>
|
||||
<button class="styledButton participateContest">${
|
||||
T.mainMenu.contests.showInfo
|
||||
}</button>
|
||||
}</button>*/
|
||||
|
||||
`
|
||||
<p>${T.mainMenu.contests.contestOver}</p>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="mainContainer">
|
||||
@ -104,7 +112,8 @@ export class MainMenuState extends GameState {
|
||||
<div class="author">Made by <a class="producerLink" target="_blank">Tobias Springer</a></div>
|
||||
|
||||
</div>
|
||||
`;
|
||||
`
|
||||
);
|
||||
}
|
||||
|
||||
requestImportSavegame() {
|
||||
@ -220,7 +229,10 @@ export class MainMenuState extends GameState {
|
||||
this.trackClicks(qs(".settingsButton"), this.onSettingsButtonClicked);
|
||||
this.trackClicks(qs(".changelog"), this.onChangelogClicked);
|
||||
|
||||
this.trackClicks(qs(".participateContest"), this.onContestClicked);
|
||||
const contestButton = qs(".participateContest");
|
||||
if (contestButton) {
|
||||
this.trackClicks(contestButton, this.onContestClicked);
|
||||
}
|
||||
|
||||
if (G_IS_STANDALONE) {
|
||||
this.trackClicks(qs(".exitAppButton"), this.onExitAppButtonClicked);
|
||||
@ -256,7 +268,7 @@ export class MainMenuState extends GameState {
|
||||
}
|
||||
|
||||
onSteamLinkClicked() {
|
||||
this.app.analytics.trackUiClick("main_menu_steam_link");
|
||||
this.app.analytics.trackUiClick("main_menu_steam_link_2");
|
||||
this.app.platformWrapper.openExternalLink(THIRDPARTY_URLS.standaloneStorePage);
|
||||
return false;
|
||||
}
|
||||
|
@ -13,11 +13,11 @@ export class MobileWarningState extends GameState {
|
||||
<img class="logo" src="${cachebust("res/logo.png")}" alt="shapez.io Logo">
|
||||
|
||||
<p>
|
||||
I'm sorry, but shapez.io is not yet available on mobile devices!
|
||||
(There is also no estimate when this will change, but feel to make a contribution! It's
|
||||
<a href="https://github.com/tobspr/shapez.io" target="_blank">open source</a>!)</p>
|
||||
I'm sorry, but shapez.io is not available on mobile devices yet!
|
||||
There is also no estimate when this will change, but feel to make a contribution! It's
|
||||
<a href="https://github.com/tobspr/shapez.io" target="_blank">open source</a>!</p>
|
||||
|
||||
<p>If you want to play on your computer, you can also get the standalone on itch.io:</p>
|
||||
<p>If you want to play on your computer, you can also get the standalone on steam:</p>
|
||||
|
||||
|
||||
<a href="${
|
||||
|
@ -103,6 +103,7 @@ mainMenu:
|
||||
I'm looking forward to seeing your awesome creations!
|
||||
|
||||
showInfo: View
|
||||
contestOver: This contest has ended - Join the discord to get noticed about new contests!
|
||||
|
||||
dialogs:
|
||||
buttons:
|
||||
@ -218,6 +219,9 @@ dialogs:
|
||||
title: New Marker
|
||||
desc: Give it a meaningful name
|
||||
|
||||
markerDemoLimit:
|
||||
desc: You can only create two custom markers in the demo. Get the standalone for unlimited markers!
|
||||
|
||||
ingame:
|
||||
# This is shown in the top left corner and displays useful keybindings in
|
||||
# every situation
|
||||
@ -669,6 +673,5 @@ demo:
|
||||
importingGames: Importing savegames
|
||||
oneGameLimit: Limited to one savegame
|
||||
customizeKeybindings: Customizing Keybindings
|
||||
creatingMarkers: Create custom markers
|
||||
|
||||
settingNotAvailable: Not available in the demo.
|
||||
|
Loading…
Reference in New Issue
Block a user