Make physics more fun
This commit is contained in:
parent
155e360c8e
commit
89fafeafd3
41 changed files with 511 additions and 334 deletions
|
|
@ -1,21 +1,25 @@
|
|||
import { vec2 } from 'gl-matrix';
|
||||
import { rgb255 } from './helper/rgb255';
|
||||
|
||||
export const settings = {
|
||||
lightCutoffDistance: 600,
|
||||
physicsMaxStep: 5,
|
||||
gravitationalForce: vec2.fromValues(0, -3000),
|
||||
maxVelocityX: 2000,
|
||||
maxVelocityY: 3650,
|
||||
polygonEdgeCount: 8,
|
||||
projectileSpeed: 2000,
|
||||
physicsMaxStep: 2,
|
||||
maxVelocityX: 1000,
|
||||
maxVelocityY: 1000,
|
||||
polygonEdgeCount: 7,
|
||||
maxGravityDistance: 700,
|
||||
maxGravityQ: 180,
|
||||
maxGravityStrength: 10000,
|
||||
maxAcceleration: 10000,
|
||||
projectileSpeed: 4000,
|
||||
projectileMaxBounceCount: 1,
|
||||
projectileStartOffset: 150,
|
||||
projectileCreationInterval: 500,
|
||||
projectileStartOffset: 250,
|
||||
projectileCreationInterval: 0.1,
|
||||
playerColorIndexOffset: 3,
|
||||
worldLeftEdge: -5000,
|
||||
worldRightEdge: 5000,
|
||||
backgroundGradient: [rgb255(255, 117, 129), rgb255(136, 117, 255)],
|
||||
worldTopEdge: 10000,
|
||||
worldRightEdge: 10000,
|
||||
worldLeftEdge: -10000,
|
||||
worldBottomEdge: -10000,
|
||||
backgroundGradient: [rgb255(90, 38, 43), rgb255(43, 39, 73)],
|
||||
playerColors: [
|
||||
rgb255(107, 48, 188),
|
||||
rgb255(56, 254, 220),
|
||||
|
|
@ -46,11 +50,8 @@ export const settings = {
|
|||
rgb255(114, 73, 30),
|
||||
rgb255(75, 75, 75),
|
||||
],
|
||||
maxAccelerationX: 2000000,
|
||||
maxAccelerationY: 20500,
|
||||
targetPhysicsDeltaTimeInMilliseconds: 20,
|
||||
minPhysicsSleepTime: 4,
|
||||
velocityAttenuation: 0.1,
|
||||
velocityAttenuation: 0.25,
|
||||
inViewAreaSize: 1920 * 1080 * 3,
|
||||
defaultJumpEnergy: 0.25,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue