游戏名设计在线生成
```html
body {
fontfamily: Arial, sansserif;
backgroundcolor: f4f4f4;
margin: 0;
padding: 0;
display: flex;
justifycontent: center;
alignitems: center;
height: 100vh;
}
.container {
textalign: center;
}
h1 {
color: 333;
}
generatedName {
fontsize: 24px;
color: 007bff;
marginbottom: 20px;
}
button {
backgroundcolor: 007bff;
color: fff;
border: none;
padding: 10px 20px;
fontsize: 16px;
cursor: pointer;
borderradius: 5px;
transition: backgroundcolor 0.3s ease;
}
button:hover {
backgroundcolor: 0056b3;
}
Online Game Name Generator
Click the button below to generate a unique game name!
function generateName() {
// Array of adjectives and nouns to generate game names
var adjectives = ["Epic", "Mystic", "Legendary", "Furious", "Inferno", "Cosmic", "Phantom", "Divine", "Savage", "Shadow"];
var nouns = ["Warriors", "Legends", "Heroes", "Empire", "Dynasty", "Rebels", "Champions", "Swords", "Quest", "Riders"];
// Randomly select an adjective and a noun
var randomAdjective = adjectives[Math.floor(Math.random() * adjectives.length)];
var randomNoun = nouns[Math.floor(Math.random() * nouns.length)];
// Generate the game name by combining the adjective and noun
var generatedName = randomAdjective " " randomNoun;
// Display the generated name
document.getElementById("generatedName").innerText = generatedName;
}