here2share

Game Design Feature Explorer.html

Mar 5th, 2026 (edited)
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 14.32 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Game Design Feature Explorer</title>
  6. <style>
  7.   body {
  8.     font-family: sans-serif;
  9.     background: #111;
  10.     color: #eee;
  11.     padding: 20px;
  12.   }
  13.   .columns {
  14.     display: grid;
  15.     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  16.     column-gap: 30px;
  17.   }
  18.   .col {
  19.     padding-right: 20px;
  20.     margin-bottom: 20px;
  21.   }
  22.   .block {
  23.     margin-bottom: 20px;
  24.   }
  25.   .subcat {
  26.     display: inline-block;
  27.     padding: 8px 14px;
  28.     margin: 10px 0 4px 0;
  29.     border-radius: 6px;
  30.     cursor: pointer;
  31.     user-select: none;
  32.     background: #c94b6b;
  33.     color: #fff;
  34.     transition: background 0.2s ease, transform 0.1s ease;
  35.     font-size: 15px;
  36.   }
  37.   .subcat.yes {
  38.     background: #2f9e44;
  39.   }
  40.   .subcat:active {
  41.     transform: scale(0.97);
  42.   }
  43.   .places {
  44.     margin: 4px 0 16px 12px;
  45.     font-size: 14px;
  46.     line-height: 1.45;
  47.     opacity: 0.9;
  48.   }
  49. </style>
  50. </head>
  51. <body>
  52.  
  53. <h2>Game Design Feature Explorer</h2>
  54. <p style="opacity:0.8;font-size:13px;">Click checkboxes to select features</p>
  55.  
  56. <div id="all-blocks" style="display:none;">
  57.  
  58.   <div class="block">
  59.     <div class="subcat">Exploration</div>
  60.     <div class="places">
  61.       <label><input type="checkbox" class="feat"> Open world traversal</label><br>
  62.       <label><input type="checkbox" class="feat"> Hidden areas</label><br>
  63.       <label><input type="checkbox" class="feat"> Environmental storytelling</label><br>
  64.       <label><input type="checkbox" class="feat"> Map discovery</label><br>
  65.       <label><input type="checkbox" class="feat"> Climbing and verticality</label>
  66.     </div>
  67.   </div>
  68.  
  69.   <div class="block">
  70.     <div class="subcat">Combat</div>
  71.     <div class="places">
  72.       <label><input type="checkbox" class="feat"> Melee systems</label><br>
  73.       <label><input type="checkbox" class="feat"> Ranged combat</label><br>
  74.       <label><input type="checkbox" class="feat"> Enemy archetypes</label><br>
  75.       <label><input type="checkbox" class="feat"> Boss encounters</label><br>
  76.       <label><input type="checkbox" class="feat"> Combo mechanics</label>
  77.     </div>
  78.   </div>
  79.  
  80.   <div class="block">
  81.     <div class="subcat">Stealth</div>
  82.     <div class="places">
  83.       <label><input type="checkbox" class="feat"> Vision cones</label><br>
  84.       <label><input type="checkbox" class="feat"> Noise detection</label><br>
  85.       <label><input type="checkbox" class="feat"> Disguises</label><br>
  86.       <label><input type="checkbox" class="feat"> Takedowns</label><br>
  87.       <label><input type="checkbox" class="feat"> Light and shadow systems</label>
  88.     </div>
  89.   </div>
  90.  
  91.   <div class="block">
  92.     <div class="subcat">Puzzles</div>
  93.     <div class="places">
  94.       <label><input type="checkbox" class="feat"> Logic puzzles</label><br>
  95.       <label><input type="checkbox" class="feat"> Physics puzzles</label><br>
  96.       <label><input type="checkbox" class="feat"> Pattern recognition</label><br>
  97.       <label><input type="checkbox" class="feat"> Spatial challenges</label>
  98.     </div>
  99.   </div>
  100.  
  101.   <div class="block">
  102.     <div class="subcat">Platforming</div>
  103.     <div class="places">
  104.       <label><input type="checkbox" class="feat"> Jump timing</label><br>
  105.       <label><input type="checkbox" class="feat"> Wall climbing</label><br>
  106.       <label><input type="checkbox" class="feat"> Momentum mechanics</label><br>
  107.       <label><input type="checkbox" class="feat"> Precision challenges</label>
  108.     </div>
  109.   </div>
  110.  
  111.   <div class="block">
  112.     <div class="subcat">Vehicles</div>
  113.     <div class="places">
  114.       <label><input type="checkbox" class="feat"> Driving</label><br>
  115.       <label><input type="checkbox" class="feat"> Flying</label><br>
  116.       <label><input type="checkbox" class="feat"> Boats</label><br>
  117.       <label><input type="checkbox" class="feat"> Mounts</label><br>
  118.       <label><input type="checkbox" class="feat"> Racing mechanics</label>
  119.     </div>
  120.   </div>
  121.  
  122.   <div class="block">
  123.     <div class="subcat">Crafting</div>
  124.     <div class="places">
  125.       <label><input type="checkbox" class="feat"> Recipes</label><br>
  126.       <label><input type="checkbox" class="feat"> Resource refinement</label><br>
  127.       <label><input type="checkbox" class="feat"> Workbenches</label><br>
  128.       <label><input type="checkbox" class="feat"> Gear upgrades</label>
  129.     </div>
  130.   </div>
  131.  
  132.   <div class="block">
  133.     <div class="subcat">Economy</div>
  134.     <div class="places">
  135.       <label><input type="checkbox" class="feat"> Shops</label><br>
  136.       <label><input type="checkbox" class="feat"> Trading</label><br>
  137.       <label><input type="checkbox" class="feat"> Currency sinks</label><br>
  138.       <label><input type="checkbox" class="feat"> Supply and demand</label>
  139.     </div>
  140.   </div>
  141.  
  142.   <div class="block">
  143.     <div class="subcat">Survival Systems</div>
  144.     <div class="places">
  145.       <label><input type="checkbox" class="feat"> Hunger</label><br>
  146.       <label><input type="checkbox" class="feat"> Temperature</label><br>
  147.       <label><input type="checkbox" class="feat"> Stamina</label><br>
  148.       <label><input type="checkbox" class="feat"> Shelter</label><br>
  149.       <label><input type="checkbox" class="feat"> Environmental hazards</label>
  150.     </div>
  151.   </div>
  152.  
  153.   <div class="block">
  154.     <div class="subcat">Environment Simulation</div>
  155.     <div class="places">
  156.       <label><input type="checkbox" class="feat"> Weather</label><br>
  157.       <label><input type="checkbox" class="feat"> Day/night cycle</label><br>
  158.       <label><input type="checkbox" class="feat"> Seasons</label><br>
  159.       <label><input type="checkbox" class="feat"> Biomes</label>
  160.     </div>
  161.   </div>
  162.  
  163.   <div class="block">
  164.     <div class="subcat">AI Behavior</div>
  165.     <div class="places">
  166.       <label><input type="checkbox" class="feat"> Patrols</label><br>
  167.       <label><input type="checkbox" class="feat"> Factions</label><br>
  168.       <label><input type="checkbox" class="feat"> Social AI</label><br>
  169.       <label><input type="checkbox" class="feat"> Emergent behavior</label>
  170.     </div>
  171.   </div>
  172.  
  173.   <div class="block">
  174.     <div class="subcat">Physics</div>
  175.     <div class="places">
  176.       <label><input type="checkbox" class="feat"> Ragdolls</label><br>
  177.       <label><input type="checkbox" class="feat"> Destructibility</label><br>
  178.       <label><input type="checkbox" class="feat"> Momentum</label><br>
  179.       <label><input type="checkbox" class="feat"> Constraints</label>
  180.     </div>
  181.   </div>
  182.  
  183.   <div class="block">
  184.     <div class="subcat">Story Structure</div>
  185.     <div class="places">
  186.       <label><input type="checkbox" class="feat"> Acts</label><br>
  187.       <label><input type="checkbox" class="feat"> Branching paths</label><br>
  188.       <label><input type="checkbox" class="feat"> Linear arcs</label><br>
  189.       <label><input type="checkbox" class="feat"> Episodic content</label>
  190.     </div>
  191.   </div>
  192.  
  193.   <div class="block">
  194.     <div class="subcat">Dialogue Systems</div>
  195.     <div class="places">
  196.       <label><input type="checkbox" class="feat"> Choices</label><br>
  197.       <label><input type="checkbox" class="feat"> Persuasion</label><br>
  198.       <label><input type="checkbox" class="feat"> Companions</label><br>
  199.       <label><input type="checkbox" class="feat"> Voice acting</label>
  200.     </div>
  201.   </div>
  202.  
  203.   <div class="block">
  204.     <div class="subcat">Quests</div>
  205.     <div class="places">
  206.       <label><input type="checkbox" class="feat"> Main quests</label><br>
  207.       <label><input type="checkbox" class="feat"> Side quests</label><br>
  208.       <label><input type="checkbox" class="feat"> Dynamic tasks</label><br>
  209.       <label><input type="checkbox" class="feat"> Quest chains</label>
  210.     </div>
  211.   </div>
  212.  
  213.   <div class="block">
  214.     <div class="subcat">Worldbuilding</div>
  215.     <div class="places">
  216.       <label><input type="checkbox" class="feat"> Lore</label><br>
  217.       <label><input type="checkbox" class="feat"> Cultures</label><br>
  218.       <label><input type="checkbox" class="feat"> History</label><br>
  219.       <label><input type="checkbox" class="feat"> Factions</label>
  220.     </div>
  221.   </div>
  222.  
  223.   <div class="block">
  224.     <div class="subcat">Progression</div>
  225.     <div class="places">
  226.       <label><input type="checkbox" class="feat"> XP</label><br>
  227.       <label><input type="checkbox" class="feat"> Skill trees</label><br>
  228.       <label><input type="checkbox" class="feat"> Perks</label><br>
  229.       <label><input type="checkbox" class="feat"> Unlocks</label>
  230.     </div>
  231.   </div>
  232.  
  233.   <div class="block">
  234.     <div class="subcat">Multiplayer</div>
  235.     <div class="places">
  236.       <label><input type="checkbox" class="feat"> Co‑op</label><br>
  237.       <label><input type="checkbox" class="feat"> PvP</label><br>
  238.       <label><input type="checkbox" class="feat"> Matchmaking</label><br>
  239.       <label><input type="checkbox" class="feat"> Shared worlds</label>
  240.     </div>
  241.   </div>
  242.  
  243.   <div class="block">
  244.     <div class="subcat">Social Systems</div>
  245.     <div class="places">
  246.       <label><input type="checkbox" class="feat"> Reputation</label><br>
  247.       <label><input type="checkbox" class="feat"> Relationships</label><br>
  248.       <label><input type="checkbox" class="feat"> Guilds</label><br>
  249.       <label><input type="checkbox" class="feat"> NPC social webs</label>
  250.     </div>
  251.   </div>
  252.  
  253.   <div class="block">
  254.     <div class="subcat">Player Housing</div>
  255.     <div class="places">
  256.       <label><input type="checkbox" class="feat"> Bases</label><br>
  257.       <label><input type="checkbox" class="feat"> Decorating</label><br>
  258.       <label><input type="checkbox" class="feat"> Storage</label><br>
  259.       <label><input type="checkbox" class="feat"> Farming</label>
  260.     </div>
  261.   </div>
  262.  
  263.   <div class="block">
  264.     <div class="subcat">Customization</div>
  265.     <div class="places">
  266.       <label><input type="checkbox" class="feat"> Cosmetics</label><br>
  267.       <label><input type="checkbox" class="feat"> Loadouts</label><br>
  268.       <label><input type="checkbox" class="feat"> Character creation</label><br>
  269.       <label><input type="checkbox" class="feat"> Style variations</label>
  270.     </div>
  271.   </div>
  272.  
  273.   <div class="block">
  274.     <div class="subcat">Meta Goals</div>
  275.     <div class="places">
  276.       <label><input type="checkbox" class="feat"> Achievements</label><br>
  277.       <label><input type="checkbox" class="feat"> Challenges</label><br>
  278.       <label><input type="checkbox" class="feat"> Seasonal content</label><br>
  279.       <label><input type="checkbox" class="feat"> Long‑term progression</label>
  280.     </div>
  281.   </div>
  282.  
  283.   <div class="block">
  284.     <div class="subcat">Procedural Generation</div>
  285.     <div class="places">
  286.       <label><input type="checkbox" class="feat"> Levels</label><br>
  287.       <label><input type="checkbox" class="feat"> Maps</label><br>
  288.       <label><input type="checkbox" class="feat"> Loot</label><br>
  289.       <label><input type="checkbox" class="feat"> Quests</label>
  290.     </div>
  291.   </div>
  292.  
  293.   <div class="block">
  294.     <div class="subcat">Random Events</div>
  295.     <div class="places">
  296.       <label><input type="checkbox" class="feat"> Weather events</label><br>
  297.       <label><input type="checkbox" class="feat"> Invasions</label><br>
  298.       <label><input type="checkbox" class="feat"> Encounters</label><br>
  299.       <label><input type="checkbox" class="feat"> World shifts</label>
  300.     </div>
  301.   </div>
  302.  
  303.   <div class="block">
  304.     <div class="subcat">Dynamic Encounters</div>
  305.     <div class="places">
  306.       <label><input type="checkbox" class="feat"> AI roaming</label><br>
  307.       <label><input type="checkbox" class="feat"> Emergent fights</label><br>
  308.       <label><input type="checkbox" class="feat"> Faction clashes</label><br>
  309.       <label><input type="checkbox" class="feat"> Ambient encounters</label>
  310.     </div>
  311.   </div>
  312.  
  313.   <div class="block">
  314.     <div class="subcat">World Simulation</div>
  315.     <div class="places">
  316.       <label><input type="checkbox" class="feat"> Ecosystems</label><br>
  317.       <label><input type="checkbox" class="feat"> Population changes</label><br>
  318.       <label><input type="checkbox" class="feat"> Resource cycles</label><br>
  319.       <label><input type="checkbox" class="feat"> Territory shifts</label>
  320.     </div>
  321.   </div>
  322.  
  323. </div>
  324.  
  325. <div class="columns" id="cols"></div>
  326.  
  327. <script>
  328. window.addEventListener("DOMContentLoaded", () => {
  329.   const all = Array.from(document.querySelectorAll("#all-blocks .block"));
  330.  
  331.   const temp = document.createElement("div");
  332.   temp.style.position = "absolute";
  333.   temp.style.visibility = "hidden";
  334.   document.body.appendChild(temp);
  335.  
  336.   const measured = all.map(block => {
  337.     temp.appendChild(block.cloneNode(true));
  338.     const h = temp.lastChild.offsetHeight;
  339.     temp.removeChild(temp.lastChild);
  340.     return { block, h };
  341.   });
  342.  
  343.   measured.sort((a, b) => b.h - a.h);
  344.  
  345.   const colCount = 3;
  346.   const cols = [];
  347.   const heights = [];
  348.   for (let i = 0; i < colCount; i++) {
  349.    cols[i] = [];
  350.    heights[i] = 0;
  351.  }
  352.  
  353.  measured.forEach(item => {
  354.     const idx = heights.indexOf(Math.min(...heights));
  355.     cols[idx].push(item.block);
  356.     heights[idx] += item.h;
  357.   });
  358.  
  359.   const colData = cols.map((blocks, i) => ({
  360.     blocks,
  361.     height: heights[i]
  362.   }));
  363.  
  364.   colData.sort((a, b) => b.height - a.height);
  365.  
  366.   const orderedCols = new Array(colCount);
  367.   const midpoint = Math.floor(colCount / 2);
  368.  
  369.   orderedCols[midpoint] = colData[0].blocks;
  370.  
  371.   let offset = 1;
  372.   let side = -1;
  373.  
  374.   for (let i = 1; i < colData.length; i++) {
  375.    const pos = midpoint + (offset * side);
  376.    orderedCols[pos] = colData[i].blocks;
  377.    side *= -1;
  378.    if (side === -1) offset++;
  379.  }
  380.  
  381.  const container = document.getElementById("cols");
  382.  orderedCols.forEach(blockList => {
  383.     const c = document.createElement("div");
  384.     c.className = "col";
  385.     blockList.forEach(b => c.appendChild(b));
  386.     container.appendChild(c);
  387.   });
  388.  
  389.   function updateCategoryState(block) {
  390.     const checkboxes = block.querySelectorAll(".feat");
  391.     const subcat = block.querySelector(".subcat");
  392.  
  393.     let anyChecked = false;
  394.     checkboxes.forEach(cb => {
  395.       if (cb.checked) anyChecked = true;
  396.     });
  397.  
  398.     if (anyChecked) {
  399.       subcat.classList.add("yes");
  400.     } else {
  401.       subcat.classList.remove("yes");
  402.     }
  403.   }
  404.  
  405.   document.querySelectorAll(".block").forEach(block => {
  406.     const checkboxes = block.querySelectorAll(".feat");
  407.     checkboxes.forEach(cb => {
  408.       cb.addEventListener("change", () => updateCategoryState(block));
  409.     });
  410.   });
  411. });
  412. </script>
  413.  
  414. </body>
  415. </html>
Advertisement
Add Comment
Please, Sign In to add comment