From acc0777de1e13272b77730a1fbdf965c4a9c6d83 Mon Sep 17 00:00:00 2001 From: Dominic DiTaranto Date: Fri, 2 Jan 2026 13:57:35 -0500 Subject: [PATCH] adding help button --- assets/css/style.css | 12 ++++++++++-- assets/js/app.js | 1 + assets/js/controls.js | 5 +++++ index.html | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 assets/js/controls.js diff --git a/assets/css/style.css b/assets/css/style.css index 442a6cc..92b0d0c 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -103,7 +103,7 @@ canvas { padding: 20px; } -#contact, #maomao { +#contact, #maomao, #help { background: #a3acbe; position: relative; height: inherit; @@ -113,6 +113,8 @@ canvas { padding: 10px; overflow: auto!important; } + + .prompt-container { display: flex; align-items: center; @@ -369,6 +371,12 @@ button:hover { left: 0px; } +#help-button { + position: absolute; + bottom: -28px; + right: 0px; +} + #on-screen-controller-button { background-color: #ededed; font-size: 16.9px; @@ -380,7 +388,7 @@ button:hover { margin-right: 2px; position: absolute; bottom: -28px; - right: 0px; + right: 100px; } #on-screen-controller-button:hover { diff --git a/assets/js/app.js b/assets/js/app.js index 72ae904..9dc8251 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -18,6 +18,7 @@ canvas.height = canvas.width var audio = null var contact = new Contact() +var controls = new Controls() var maomao = new Maomao() var terminal = new Terminal() var games = new Games() diff --git a/assets/js/controls.js b/assets/js/controls.js new file mode 100644 index 0000000..26c8c6e --- /dev/null +++ b/assets/js/controls.js @@ -0,0 +1,5 @@ +class Controls extends Window { + constructor() { + super('help') + } +} diff --git a/index.html b/index.html index 91e6693..043783c 100644 --- a/index.html +++ b/index.html @@ -18,6 +18,7 @@ + @@ -47,6 +48,7 @@ + @@ -142,6 +144,38 @@ + +
+
+
+ ❓ Help +
+
+ +
+
+
+
+
+ Movement:
+ There are multiple methods of movement: +
    +
  • WASD
  • +
  • Arrow Keys
  • +
  • VIM Keys [HJKL]
  • +
  • Point and Click
  • +
+ Interaction:
+
    +
  • Enter Key - Use Enter Key to interact
  • +
  • Click - Use your mouse to click to interact
  • +
+ Quick Access:
+ Use the buttons at the top of the screen to view my portfolio, resume, contact info, or play the games I have made. +
+
+
+