1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Add more tutorial videos

This commit is contained in:
tobspr
2020-05-23 13:02:02 +02:00
parent 39f67dc4c0
commit 7e146fd9ab
15 changed files with 32 additions and 15 deletions

View File

@@ -83,7 +83,7 @@ export const globalConfig = {
debug: {
/* dev:start */
// fastGameEnter: true,
fastGameEnter: true,
noArtificialDelays: true,
// disableSavegameWrite: true,
// showEntityBounds: true,

View File

@@ -1,13 +1,12 @@
import { BaseHUDPart } from "../base_hud_part";
import { makeDiv } from "../../../core/utils";
import { cachebust } from "../../../core/cachebust";
import { DynamicDomAttach } from "../dynamic_dom_attach";
import { InputReceiver } from "../../../core/input_receiver";
import { KeyActionMapper, KEYMAPPINGS } from "../../key_action_mapper";
import { tutorialGoals } from "../../tutorial_goals";
import { TrackedState } from "../../../core/tracked_state";
import { makeDiv } from "../../../core/utils";
import { KeyActionMapper, KEYMAPPINGS } from "../../key_action_mapper";
import { BaseHUDPart } from "../base_hud_part";
import { DynamicDomAttach } from "../dynamic_dom_attach";
const maxTutorialVideo = 2;
const maxTutorialVideo = 7;
export class HUDPartTutorialHints extends BaseHUDPart {
createElements(parent) {

View File

@@ -23,20 +23,21 @@ export class HUDWatermark extends BaseHUDPart {
*/
drawOverlays(parameters) {
const w = this.root.gameWidth;
const x = 280 * this.root.app.getEffectiveUiScale();
parameters.context.fillStyle = "#f77";
parameters.context.font = "bold " + this.root.app.getEffectiveUiScale() * 17 + "px GameFont";
parameters.context.textAlign = "center";
parameters.context.fillText("DEMO VERSION", w / 2, this.root.app.getEffectiveUiScale() * 35);
// parameters.context.textAlign = "center";
parameters.context.fillText("DEMO VERSION", x, this.root.app.getEffectiveUiScale() * 27);
parameters.context.font = "bold " + this.root.app.getEffectiveUiScale() * 12 + "px GameFont";
parameters.context.textAlign = "center";
// parameters.context.textAlign = "center";
parameters.context.fillText(
"Please consider to buy the full version!",
w / 2,
this.root.app.getEffectiveUiScale() * 55
x,
this.root.app.getEffectiveUiScale() * 45
);
parameters.context.textAlign = "left";
// parameters.context.textAlign = "left";
}
}