Created More Settings

This commit is contained in:
2025-10-29 16:39:48 -05:00
parent 210e190f11
commit c5730952f9

View File

@ -11,9 +11,32 @@ const entityTypes = {
COMET: "comet",
};
let Settings = {
var Settings = {
windowWrap: true,
physics: true,
respawn: true,
devMode: false,
maxSpeed: 1,
backgroundImage: "/media/Art/EmptySpace.png",
entityCount: 50,
emptyEntries: [],
rarity: {
"comet": .9,
"meteorite_small": 500.0,
"meteorite_large": 1000.0,
},
mass: {
"comet": 1400.0,
"meteorite_small": 500.0,
"meteorite_large": 1000.0,
},
}
function distance(entity1, entity2){
return Math.sqrt(
((entity2.x-entity1.x)*(entity2.x-entity1.x)) +
((entity2.y-entity1.y)*(entity2.y-entity1.y))
);
}
function getMass(type){