Improve gameplay
This commit is contained in:
parent
e02a5b264c
commit
7c76b16d13
53 changed files with 1084 additions and 404 deletions
|
|
@ -1,55 +1,47 @@
|
|||
import { rgb } from './helper/rgb';
|
||||
import { rgb255 } from './helper/rgb255';
|
||||
|
||||
const declaColor = rgb255(181, 138, 255);
|
||||
const redColor = rgb255(255, 138, 138);
|
||||
const declaPlanetColor = rgb(0, 0, 3);
|
||||
const redPlanetColor = rgb(3, 0, 0);
|
||||
|
||||
export const settings = {
|
||||
lightCutoffDistance: 600,
|
||||
physicsMaxStep: 2,
|
||||
maxVelocityX: 1000,
|
||||
maxVelocityY: 1000,
|
||||
polygonEdgeCount: 7,
|
||||
planetEdgeCount: 7,
|
||||
takeControlTimeInSeconds: 10,
|
||||
maxGravityDistance: 700,
|
||||
maxGravityQ: 180,
|
||||
planetControlThreshold: 0.2,
|
||||
playerMaxHealth: 100,
|
||||
maxGravityStrength: 10000,
|
||||
maxAcceleration: 10000,
|
||||
playerMaxStrength: 80,
|
||||
playerDiedTimeout: 5,
|
||||
playerStrengthRegenerationPerSeconds: 40,
|
||||
projectileMaxStrength: 40,
|
||||
projectileSpeed: 4000,
|
||||
projectileMaxBounceCount: 1,
|
||||
projectileStartOffset: 250,
|
||||
projectileTimeout: 3,
|
||||
projectileFadeSpeed: 20,
|
||||
projectileStartOffset: 150,
|
||||
projectileCreationInterval: 0.1,
|
||||
playerColorIndexOffset: 3,
|
||||
worldTopEdge: 10000,
|
||||
worldRightEdge: 10000,
|
||||
worldLeftEdge: -10000,
|
||||
worldBottomEdge: -10000,
|
||||
worldTopEdge: 3000,
|
||||
worldRightEdge: 3000,
|
||||
worldLeftEdge: -3000,
|
||||
worldBottomEdge: -3000,
|
||||
backgroundGradient: [rgb255(90, 38, 43), rgb255(43, 39, 73)],
|
||||
playerColors: [
|
||||
rgb255(107, 48, 188),
|
||||
rgb255(56, 254, 220),
|
||||
rgb255(197, 17, 17),
|
||||
rgb255(24, 24, 24),
|
||||
rgb255(245, 245, 88),
|
||||
rgb255(80, 239, 58),
|
||||
rgb255(18, 127, 45),
|
||||
rgb255(240, 125, 13),
|
||||
rgb255(214, 227, 241),
|
||||
rgb255(0, 161, 161),
|
||||
rgb255(250, 161, 151),
|
||||
rgb255(235, 84, 185),
|
||||
rgb255(114, 73, 30),
|
||||
rgb255(75, 75, 75),
|
||||
rgb255(107, 48, 188),
|
||||
rgb255(56, 254, 220),
|
||||
rgb255(197, 17, 17),
|
||||
rgb255(24, 24, 24),
|
||||
rgb255(245, 245, 88),
|
||||
rgb255(80, 239, 58),
|
||||
rgb255(18, 127, 45),
|
||||
rgb255(240, 125, 13),
|
||||
rgb255(214, 227, 241),
|
||||
rgb255(0, 161, 161),
|
||||
rgb255(250, 161, 151),
|
||||
rgb255(235, 84, 185),
|
||||
rgb255(114, 73, 30),
|
||||
rgb255(75, 75, 75),
|
||||
],
|
||||
declaColor,
|
||||
declaPlanetColor,
|
||||
redColor,
|
||||
redPlanetColor,
|
||||
declaIndex: 0,
|
||||
redIndex: 1,
|
||||
palette: [declaColor, redColor],
|
||||
targetPhysicsDeltaTimeInMilliseconds: 20,
|
||||
minPhysicsSleepTime: 4,
|
||||
velocityAttenuation: 0.25,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue