Refactor rendering
This commit is contained in:
parent
9b47d56d8f
commit
c892ca2d01
38 changed files with 511 additions and 429 deletions
|
|
@ -2,7 +2,7 @@ import { vec2, vec3 } from 'gl-matrix';
|
|||
import { RenderCommand } from '../../commands/types/draw';
|
||||
import { MoveToCommand } from '../../commands/types/move-to';
|
||||
import { GameObject } from '../game-object';
|
||||
import { CircleLight } from '../../drawing/lights/circle-light';
|
||||
import { CircleLight } from '../../drawing/drawables/lights/circle-light';
|
||||
|
||||
const range = 2000;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { vec2 } from 'gl-matrix';
|
||||
import { RenderCommand } from '../../commands/types/draw';
|
||||
import { TunnelShape } from '../../drawing/primitives/tunnel-shape';
|
||||
import { TunnelShape } from '../../drawing/drawables/primitives/tunnel-shape';
|
||||
import { GameObject } from '../game-object';
|
||||
|
||||
export interface Line {}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ export const createDungeon = (objects: ObjectContainer) => {
|
|||
new Tunnel(previousEnd, currentEnd, previousRadius, currentToRadius)
|
||||
);
|
||||
|
||||
if (deltaHeight > 0 && Math.random() > 0.8) {
|
||||
/*if (deltaHeight > 0 && Math.random() > 0.8) {
|
||||
objects.addObject(
|
||||
new Lamp(
|
||||
currentEnd,
|
||||
|
|
@ -30,7 +30,7 @@ export const createDungeon = (objects: ObjectContainer) => {
|
|||
1
|
||||
)
|
||||
);
|
||||
}
|
||||
}*/
|
||||
|
||||
previousEnd = currentEnd;
|
||||
previousRadius = currentToRadius;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue