Minor fixes
This commit is contained in:
parent
938e633e64
commit
822c2cd17b
2 changed files with 32 additions and 24 deletions
|
|
@ -62,7 +62,7 @@ export class BlobScene implements Scene {
|
|||
|
||||
const length = vec2.length([width, height]);
|
||||
|
||||
const q = (this.deltaSinceStart % 8000) / 4000;
|
||||
const q = (this.deltaSinceStart % 8000) / 4300;
|
||||
this.blob.animate(this.deltaSinceStart);
|
||||
[
|
||||
new Circle([width / 2, -length / 4], length / 2),
|
||||
|
|
|
|||
|
|
@ -51,15 +51,16 @@ export class Blob extends Drawable {
|
|||
|
||||
public readonly boundingCircleRadius = 200;
|
||||
|
||||
protected readonly headRadius = 70;
|
||||
protected readonly footRadius = 30;
|
||||
protected readonly headRadius = 50;
|
||||
protected readonly footRadius = 20;
|
||||
|
||||
private readonly headOffset = vec2.fromValues(0, 120);
|
||||
private leftFootOffset = vec2.fromValues(-30, this.footRadius);
|
||||
private rightFootOffset = vec2.fromValues(30, this.footRadius);
|
||||
private readonly headOffset = vec2.fromValues(0, 80);
|
||||
|
||||
private leftFootOffsetDefault = vec2.fromValues(-30, this.footRadius);
|
||||
private rightFootOffsetDefault = vec2.fromValues(30, this.footRadius);
|
||||
private readonly leftFootOffsetDefault = vec2.fromValues(-20, this.footRadius);
|
||||
private readonly rightFootOffsetDefault = vec2.fromValues(20, this.footRadius);
|
||||
|
||||
private leftFootOffset = vec2.create();
|
||||
private rightFootOffset = vec2.create();
|
||||
|
||||
protected boundingCircle = new Circle(vec2.create(), this.boundingCircleRadius);
|
||||
protected head = new Circle(vec2.create(), this.headRadius);
|
||||
|
|
@ -79,7 +80,7 @@ export class Blob extends Drawable {
|
|||
}
|
||||
|
||||
public animate(time: number) {
|
||||
const offset = 20;
|
||||
const offset = 15;
|
||||
const q = (time % 1000) / 500;
|
||||
|
||||
vec2.subtract(
|
||||
|
|
|
|||
Loading…
Reference in a new issue