Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
0.4 prep
Browse files Browse the repository at this point in the history
  • Loading branch information
swift502 committed Sep 4, 2020
1 parent b298815 commit b913698
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 335 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<p align="center">
<a href="https://jblaha.art/sketchbook"><img src="https://i.imgur.com/Y5YLgWR.png"></a>
<a href="https://jblaha.art/sketchbook"><img src="./src/img/thumbnail.png"></a>
<br>
Play it <a href="https://jblaha.art/sketchbook">here</a>!
<a href="https://jblaha.art/sketchbook">Launch in-browser demo</a>
<br>
</p>

Expand Down
Binary file removed build/assets/blade_alpha.jpg
Binary file not shown.
Binary file removed build/assets/blade_diffuse.jpg
Binary file not shown.
4 changes: 2 additions & 2 deletions build/sketchbook.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/types/characters/character_ai/FollowPath.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { PathNode } from '../../world/PathNode';
export declare class FollowPath extends FollowTarget implements ICharacterAI {
nodeRadius: number;
reverse: boolean;
private staleTimer;
private targetNode;
constructor(firstNode: PathNode, nodeRadius: number);
update(timeStep: number): void;
Expand Down
12 changes: 0 additions & 12 deletions build/types/world/Grass.d.ts

This file was deleted.

12 changes: 6 additions & 6 deletions build/types/world/World.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ import * as THREE from 'three';
import * as CANNON from 'cannon';
import { CameraOperator } from '../core/CameraOperator';
import { Stats } from '../../lib/utils/Stats';
import { CannonDebugRenderer } from '../../lib/cannon/CannonDebugRenderer';
import { InputManager } from '../core/InputManager';
import { Character } from '../characters/Character';
import { LoadingManager } from '../core/LoadingManager';
import { InfoStack } from '../core/InfoStack';
import { IWorldEntity } from '../interfaces/IWorldEntity';
import { Sky } from './Sky';
import { IUpdatable } from '../interfaces/IUpdatable';
import { Character } from '../characters/Character';
import { Path } from './Path';
import { LoadingManager } from '../core/LoadingManager';
import { CannonDebugRenderer } from '../../lib/cannon/CannonDebugRenderer';
import { Vehicle } from '../vehicles/Vehicle';
import { Scenario } from './Scenario';
import { InfoStack } from '../core/InfoStack';
import { IUpdatable } from '../interfaces/IUpdatable';
import { Sky } from './Sky';
export declare class World {
renderer: THREE.WebGLRenderer;
camera: THREE.PerspectiveCamera;
Expand Down
Binary file added src/img/thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
311 changes: 0 additions & 311 deletions src/lib/utils/perlin.js

This file was deleted.

4 changes: 2 additions & 2 deletions src/ts/characters/character_ai/FollowPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export class FollowPath extends FollowTarget implements ICharacterAI
this.character.controlledObject.triggerAction('throttle', false);
}

if (speed < 1) this.staleTimer += timeStep;
if (speed < 1 || (this.character.controlledObject as unknown as Vehicle).rayCastVehicle.numWheelsOnGround === 0) this.staleTimer += timeStep;
else this.staleTimer = 0;
if (this.staleTimer > 3)
if (this.staleTimer > 5)
{
let worldPos = new THREE.Vector3();
this.targetNode.object.getWorldPosition(worldPos);
Expand Down

0 comments on commit b913698

Please sign in to comment.