subspae update
This commit is contained in:
parent
f69c575078
commit
170f8b9208
|
|
@ -225,6 +225,7 @@
|
||||||
<tr><td>more_breaking.js</td><td>Allows for breaking more elements in explosions</td><td>Alice</td></tr>
|
<tr><td>more_breaking.js</td><td>Allows for breaking more elements in explosions</td><td>Alice</td></tr>
|
||||||
<tr><td>rays.js</td><td>Adds more Ray types</td><td>Alice</td></tr>
|
<tr><td>rays.js</td><td>Adds more Ray types</td><td>Alice</td></tr>
|
||||||
<tr><td>rays++.js</td><td>Adds a couple more rays</td><td>uptzik</td></tr>
|
<tr><td>rays++.js</td><td>Adds a couple more rays</td><td>uptzik</td></tr>
|
||||||
|
<tr><td>subspace.js</td><td>Adds the Subspace Tripmine from Roblox</td><td>nousernamefound</td></tr>
|
||||||
<tr><td>weapons.js</td><td>Adds varieties of different weapons </td><td>Jayd</td></tr>
|
<tr><td>weapons.js</td><td>Adds varieties of different weapons </td><td>Jayd</td></tr>
|
||||||
|
|
||||||
<!----><tr><td class="modCat" colspan="3">Food & Cooking</td></tr><!---->
|
<!----><tr><td class="modCat" colspan="3">Food & Cooking</td></tr><!---->
|
||||||
|
|
@ -301,7 +302,6 @@
|
||||||
<tr><td>random_liquids.js</td><td>Randomly generates liquids on game load</td><td>Alice</td></tr>
|
<tr><td>random_liquids.js</td><td>Randomly generates liquids on game load</td><td>Alice</td></tr>
|
||||||
<tr><td>sbmixup.js</td><td>Adds silly elements from a <a href="https://R74n.com/mix/" target="_blank">Mix-Up!</a> game</td><td>stefanblox</td>
|
<tr><td>sbmixup.js</td><td>Adds silly elements from a <a href="https://R74n.com/mix/" target="_blank">Mix-Up!</a> game</td><td>stefanblox</td>
|
||||||
<tr><td>star_wars.js</td><td>Adds various items from Star Wars by Disney</td><td>SeaPickle754</td>
|
<tr><td>star_wars.js</td><td>Adds various items from Star Wars by Disney</td><td>SeaPickle754</td>
|
||||||
<tr><td>subspace.js</td><td>Adds a Subspace Tripmine sound effect when an explosion happens</td><td>nousernamefound</td></tr>
|
|
||||||
<tr><td>sus.js</td><td>Adds an Among Us crewmate</td><td>Nv7</td></tr>
|
<tr><td>sus.js</td><td>Adds an Among Us crewmate</td><td>Nv7</td></tr>
|
||||||
<tr><td>triggerable_random_powders.js</td><td>Adds powders with different abilities, such as heating and cooling</td><td>Alice</td></tr>
|
<tr><td>triggerable_random_powders.js</td><td>Adds powders with different abilities, such as heating and cooling</td><td>Alice</td></tr>
|
||||||
<tr><td>troll.js</td><td>Adds various dumb elements that iterate randomly on the entire screen</td><td>Alice</td></tr>
|
<tr><td>troll.js</td><td>Adds various dumb elements that iterate randomly on the entire screen</td><td>Alice</td></tr>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,46 @@
|
||||||
function playSubspace() {
|
function playSubspace(file) {
|
||||||
var audio = new Audio("https://JustAGenericUsername.github.io/subspaceboom.mp3");
|
var audio = new Audio("https://JustAGenericUsername.github.io/" + file + ".mp3");
|
||||||
audio.play();
|
audio.play();
|
||||||
}
|
}
|
||||||
window.addEventListener('load', function() {
|
elements.subspace_trimpine = {
|
||||||
const oldexpfunc = explodeAt;
|
color: "#2e2430",
|
||||||
explodeAt = function(x,y,radius,fire="fire"){
|
behavior: behaviors.STURDYPOWDER,
|
||||||
oldexpfunc(x,y,radius,fire)
|
maxSize: 1,
|
||||||
playSubspace()
|
cooldown: defaultCooldown,
|
||||||
}})
|
density: 1500,
|
||||||
|
category: "weapons",
|
||||||
|
state: "solid",
|
||||||
|
properties:{
|
||||||
|
counter: 0
|
||||||
|
},
|
||||||
|
tick: function(pixel){
|
||||||
|
if (pixel.counter == 0){
|
||||||
|
playSubspace("subspaceplace")
|
||||||
|
}
|
||||||
|
if (!pixel.rgb){pixel.rgb = pixel.color.match(/\d+/g);}
|
||||||
|
if (pixel.counter >= 90 && pixel.counter < 121){
|
||||||
|
if (!pixel.a){pixel.a = 1}
|
||||||
|
pixel.a -= 0.05
|
||||||
|
pixel.color = "rgba(" + pixel.rgb[0] + "," + pixel.rgb[1] + "," + pixel.rgb[2] + "," + pixel.a + ")"
|
||||||
|
}
|
||||||
|
if (pixel.counter >= 121){
|
||||||
|
if (!isEmpty(pixel.x, pixel.y-1, true)){
|
||||||
|
let oldx = pixel.x
|
||||||
|
let oldy = pixel.y
|
||||||
|
explodeAt(pixel.x, pixel.y, 20)
|
||||||
|
playSubspace("subspaceboom")
|
||||||
|
deletePixel(pixel.x, pixel.y)
|
||||||
|
var coords = circleCoords(oldx, oldy, 25)
|
||||||
|
for (var i = 0; i < coords.length; i++){
|
||||||
|
var x = coords[i].x
|
||||||
|
var y = coords[i].y
|
||||||
|
if (!isEmpty(x, y, true)){
|
||||||
|
var newPixel = pixelMap[x][y]
|
||||||
|
newPixel.color = pixelColorPick(pixel, "#FF00FF")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pixel.counter ++
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue