Created More Settings
This commit is contained in:
@ -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){
|
||||
|
||||
Reference in New Issue
Block a user