Improve movement
This commit is contained in:
parent
7e188c2b9a
commit
c9eae3adeb
16 changed files with 227 additions and 279 deletions
|
|
@ -4,14 +4,11 @@ import { Command } from '../command';
|
|||
|
||||
@serializable
|
||||
export class MoveActionCommand extends Command {
|
||||
public constructor(
|
||||
public readonly direction: vec2,
|
||||
public readonly isCharacterRelative: boolean,
|
||||
) {
|
||||
public constructor(public readonly direction: vec2) {
|
||||
super();
|
||||
}
|
||||
|
||||
public toArray(): Array<any> {
|
||||
return [this.direction, this.isCharacterRelative];
|
||||
return [this.direction];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,10 +12,11 @@ const redPlanetColor = redColorDim;
|
|||
|
||||
export const settings = {
|
||||
lightCutoffDistance: 600,
|
||||
physicsMaxStep: 8,
|
||||
maxVelocityX: 1000,
|
||||
maxVelocityY: 1000,
|
||||
radiusSteps: 500,
|
||||
gravityScalingForProjectiles: 5,
|
||||
spawnDespawnTime: 0.7,
|
||||
worldRadius: 10000,
|
||||
objectsOnCircleLength: 0.002,
|
||||
planetEdgeCount: 7,
|
||||
|
|
@ -23,19 +24,19 @@ export const settings = {
|
|||
loseControlTimeInSeconds: 24,
|
||||
planetPointGenerationInterval: 1.5,
|
||||
planetPointGenerationValue: 1,
|
||||
maxGravityDistance: 700,
|
||||
maxGravityQ: 180,
|
||||
maxGravityDistance: 800,
|
||||
maxGravityQ: 10000,
|
||||
planetControlThreshold: 0.2,
|
||||
playerMaxHealth: 100,
|
||||
maxGravityStrength: 10000,
|
||||
maxAcceleration: 10000,
|
||||
maxGravityStrength: 20000,
|
||||
maxAcceleration: 60000,
|
||||
playerMaxStrength: 80,
|
||||
endGameDeltaScaling: 4,
|
||||
playerDiedTimeout: 5,
|
||||
playerStrengthRegenerationPerSeconds: 60,
|
||||
playerStrengthRegenerationPerSeconds: 80,
|
||||
projectileMaxStrength: 40,
|
||||
projectileSpeed: 4000,
|
||||
projectileMaxBounceCount: 1,
|
||||
projectileMaxBounceCount: 2,
|
||||
projectileTimeout: 3,
|
||||
projectileFadeSpeed: 20,
|
||||
projectileCreationInterval: 0.1,
|
||||
|
|
@ -45,6 +46,7 @@ export const settings = {
|
|||
declaPlanetColor,
|
||||
npcNames: [
|
||||
'Adam',
|
||||
'Andrew',
|
||||
'Clarence',
|
||||
'Elliot',
|
||||
'Elmer',
|
||||
|
|
@ -66,7 +68,6 @@ export const settings = {
|
|||
'Niles',
|
||||
'Oliver',
|
||||
'Blaise',
|
||||
'Andrew',
|
||||
'Opie',
|
||||
'Ryan',
|
||||
'Toby',
|
||||
|
|
@ -112,6 +113,5 @@ export const settings = {
|
|||
paletteDim: [declaColorDim, neutralColor, redColorDim],
|
||||
targetPhysicsDeltaTimeInMilliseconds: 20,
|
||||
minPhysicsSleepTime: 4,
|
||||
velocityAttenuation: 0.25,
|
||||
inViewAreaSize: 1920 * 1080 * 3,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue