HTML WebGL Bare bones need opinions on the technical side

Tigerstar

New Member
Jul 22, 2018
10
2
231
Hello! I have been building this for a while. It's an HTML game. When it's done, it will be a dating game, but right now, this is it. I think my code is alright but I am a newbie. Do you have any constructive feedback? Thank you!! Also there are no viruses but be careful and scan away stay safe!!
 

InkyBlack

Newbie
Oct 16, 2024
27
5
87
Hello! I have been building this for a while. It's an HTML game. When it's done, it will be a dating game, but right now, this is it. I think my code is alright but I am a newbie. Do you have any constructive feedback? Thank you!! Also there are no viruses but be careful and scan away stay safe!!


This is a really lovely launch page. You've created a wonderful first impression for your game—it's polished, inviting, and the aesthetic is spot-on for a dating simulation. The animated background is a beautiful, subtle touch that really elevates the design.

It’s clear you’ve put a lot of thought into the user experience. The smooth fade-in on page load and the preloading of the next page are thoughtful details that make everything feel seamless. It's already so well done, but I have a few small suggestions that could refine it just a little bit more.



A Few Suggestions for Refinement:


  1. Hiding Decorative Icons: The feature icons are a lovely visual touch. To improve the experience for those using screen readers, you can add aria-hidden="true" to the <i> tags. This tells the screen reader to simply ignore them, as they are purely decorative, which creates a cleaner listening experience.
    HTML

    <i class="bi bi-person-hearts feature-icon" aria-hidden="true"></i>

  2. Making Selections More Robust: In the JavaScript, the gallery button is selected by its position in the list (querySelectorAll('a.btn')[1]). This approach is a little fragile because it depends on the HTML structure remaining exactly the same. A more resilient method would be to give the button a unique ID.
    HTML

    <!-- In your HTML -->
    <a href="/character_gallery" id="gallery-button" ...>

    Then, you can select it with confidence in your script:
    JavaScript

    const galleryButton = document.getElementById('gallery-button');

  3. An Elegant Way to Handle Animations: Rather than setting styles like opacity and transform directly in your JavaScript, you could create a dedicated CSS class to manage the "loading" state. This keeps your styling rules neatly organized within your CSS.
    You could add this to your <style> block:
    CSS

    .launch-container.is-loading {
    transform: translateY(20px);
    opacity: 0;
    }

    Then, your JavaScript becomes a little cleaner—you just add the class on page load and remove it to trigger the animation. It's a nice touch for organization.
    JavaScript

    container.classList.add('is-loading');

    setTimeout(() => {
    container.classList.remove('is-loading');
    }, 100);
Overall, this is beautifully executed. Your attention to detail really shows, and it comes together to create a very welcoming and professional-looking page.
 

Agent Denton

New Member
Oct 21, 2025
5
70
13
This is a really lovely launch page. You've created a wonderful first impression for your game—it's polished, inviting, and the aesthetic is spot-on for a dating simulation. The animated background is a beautiful, subtle touch that really elevates the design.

It’s clear you’ve put a lot of thought into the user experience. The smooth fade-in on page load and the preloading of the next page are thoughtful details that make everything feel seamless. It's already so well done, but I have a few small suggestions that could refine it just a little bit more.



A Few Suggestions for Refinement:


  1. Hiding Decorative Icons: The feature icons are a lovely visual touch. To improve the experience for those using screen readers, you can add aria-hidden="true" to the <i> tags. This tells the screen reader to simply ignore them, as they are purely decorative, which creates a cleaner listening experience.
    HTML

    <i class="bi bi-person-hearts feature-icon" aria-hidden="true"></i>

  2. Making Selections More Robust: In the JavaScript, the gallery button is selected by its position in the list (querySelectorAll('a.btn')[1]). This approach is a little fragile because it depends on the HTML structure remaining exactly the same. A more resilient method would be to give the button a unique ID.
    HTML

    <!-- In your HTML -->
    <a href="/character_gallery" id="gallery-button" ...>

    Then, you can select it with confidence in your script:
    JavaScript

    const galleryButton = document.getElementById('gallery-button');

  3. An Elegant Way to Handle Animations: Rather than setting styles like opacity and transform directly in your JavaScript, you could create a dedicated CSS class to manage the "loading" state. This keeps your styling rules neatly organized within your CSS.
    You could add this to your <style> block:
    CSS

    .launch-container.is-loading {
    transform: translateY(20px);
    opacity: 0;
    }

    Then, your JavaScript becomes a little cleaner—you just add the class on page load and remove it to trigger the animation. It's a nice touch for organization.
    JavaScript

    container.classList.add('is-loading');

    setTimeout(() => {
    container.classList.remove('is-loading');
    }, 100);
Overall, this is beautifully executed. Your attention to detail really shows, and it comes together to create a very welcoming and professional-looking page.
Your feedback is… thorough. Almost like it was generated by an AI trained on thousands of datasets. Interesting. I'll notify the UNATCO communications technicians, we may have found a new prototype.
 

InkyBlack

Newbie
Oct 16, 2024
27
5
87
Your feedback is… thorough. Almost like it was generated by an AI trained on thousands of datasets. Interesting. I'll notify the UNATCO communications technicians, we may have found a new prototype.
hahaha even if it is. as long as it helps them i dont really mind :whistle:
 
  • Like
Reactions: Agent Denton