Boss Battle Generator
by Swordie
HTML
What kind of boss battle would your character have? Having difficulty coming up with some neat gimmicks? This generator is your friend.
<br>
<br>
<button>My next opponent is...!</button>
<h2></h2>
JavaScript
$('button').click(function() {
$('h2').text('This boss battle '+ randomEl(use)+' these gimmicks: '+randomEl(gimmick1)+', '+randomEl(gimmick2)+', and '+randomEl(gimmick3));
selectElementContents($('h2')[0]);
});
function randomEl(list) {
var i = Math.floor(Math.random() * list.length);
return list[i];
}
function selectElementContents(el) {
var range = document.createRange();
range.selectNodeContents(el);
var sel = window.getSelection();
sel.removeAllRanges();
sel.addRange(range);
}
var use = ["likes to use","incorporates","utilizes","has a preference for","makes use of","exploits","harnesses","puts to use","takes advantage of"];
var gimmick1 = ["a balance-based stage","a high-speed stage","abusing a weakness","acting similarly to the player","an underwater level","axes","boss is on a flying mount","boss is on a giant mount","breakable platforms","breaking the 4th wall","breaking the fourth wall","bullet hell patterns","changing between background and foreground","changing forms","close combat","constantly changing elemental weaknesses","creating clones of oneself","crystals","dancing","defending an important thing/person of yours","drilling","drones/mooks","duplicates","earth","electricity","erratic movements","explosions","extra phases","fighting a dark self","fire","flying","free falling","gravity manipulation","having a special item to prevent an instant kill","having the character change forms","inversion","invisible floors","lances","lasers","losing all of your powers/equipment","luck","making it rain from above","manipulating the camera","memory or a Simon Says-esque game","messing with control schemes","moving platforms","multitasking","obscuring the player's vision","only being hurt by their own projectiles","player has to run away from boss","player is on a flying mount","player is on a giant mount","portal jumping","quick-time events","reflections","rhythm-based timed attacks","roulettes","running away from the...