From 444d57e615485c32d6f7e9e17577491725ea0007 Mon Sep 17 00:00:00 2001 From: kts of kettek Date: Sun, 30 Jan 2022 16:34:35 -0800 Subject: [PATCH] Add hints --- Engine/src/states/Menu.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Engine/src/states/Menu.ts b/Engine/src/states/Menu.ts index 054b1c2..d49fd53 100644 --- a/Engine/src/states/Menu.ts +++ b/Engine/src/states/Menu.ts @@ -6,7 +6,7 @@ import { GameState } from './Game' import { SpriteInstance } from '../shared/sprites' import { animals } from '../data/animals' import { segments } from '../shared/segments' -import { bodyTextStyle, buttonBlurStyle, buttonHoverStyle } from '../styles' +import { bodyTextStyle, buttonBlurStyle, buttonHoverStyle, smallTextStyle } from '../styles' interface MenuItem { text: PIXI.Text, @@ -90,6 +90,12 @@ export function MenuState(ctx: ContextI): StateI { let menuItems: PIXI.Text[] = [] + for (let t of ["Use the arrow keys, hjkl, or a gamepad joystick to move.", "Use ctrl, z, or a gamepad's primary buttons to attack or helplessly mewl.", "Hunt during the day and hide at night!"]) { + let el = new PIXI.Text(t, smallTextStyle()) + menuItems.push(el) + container.addChild(el) + } + { let el = new PIXI.Text('Begin the Hunt', buttonBlurStyle()) el.interactive = true @@ -100,7 +106,7 @@ export function MenuState(ctx: ContextI): StateI { el.style = buttonHoverStyle() }) el.on('pointerout', () => { - el.style = buttonHoverStyle() + el.style = buttonBlurStyle() }) menuItems.push(el) container.addChild(el)