Do some more refactoring
This commit is contained in:
parent
c892ca2d01
commit
24cc572e47
29 changed files with 191 additions and 152 deletions
|
|
@ -1,10 +1,10 @@
|
|||
import { vec2 } from 'gl-matrix';
|
||||
import { BeforeRenderCommand } from '../../commands/types/before-render';
|
||||
import { CursorMoveCommand } from '../../commands/types/cursor-move-command';
|
||||
import { MoveToCommand } from '../../commands/types/move-to';
|
||||
import { ZoomCommand } from '../../commands/types/zoom';
|
||||
import { BeforeRenderCommand } from '../../drawing/commands/before-render';
|
||||
import { CursorMoveCommand } from '../../input/commands/cursor-move-command';
|
||||
import { GameObject } from '../game-object';
|
||||
import { Lamp } from './lamp';
|
||||
import { ZoomCommand } from '../../input/commands/zoom';
|
||||
import { MoveToCommand } from '../../physics/commands/move-to';
|
||||
|
||||
export class Camera extends GameObject {
|
||||
private inViewArea = 1920 * 1080 * 5;
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import { vec2 } from 'gl-matrix';
|
||||
import { KeyDownCommand } from '../../commands/types/key-down';
|
||||
import { KeyUpCommand } from '../../commands/types/key-up';
|
||||
import { MoveToCommand } from '../../commands/types/move-to';
|
||||
import { StepCommand } from '../../commands/types/step';
|
||||
import { SwipeCommand } from '../../commands/types/swipe';
|
||||
import { GameObject } from '../game-object';
|
||||
import { Camera } from './camera';
|
||||
import { StepCommand } from '../../physics/commands/step';
|
||||
import { KeyDownCommand } from '../../input/commands/key-down';
|
||||
import { KeyUpCommand } from '../../input/commands/key-up';
|
||||
import { SwipeCommand } from '../../input/commands/swipe';
|
||||
import { MoveToCommand } from '../../physics/commands/move-to';
|
||||
|
||||
export class Character extends GameObject {
|
||||
private keysDown: Set<string> = new Set();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { RenderCommand } from '../../commands/types/draw';
|
||||
import { GameObject } from '../game-object';
|
||||
import { RenderCommand } from '../../drawing/commands/render';
|
||||
|
||||
export class InfoText extends GameObject {
|
||||
constructor() {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
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/drawables/lights/circle-light';
|
||||
|
||||
const range = 2000;
|
||||
import { RenderCommand } from '../../drawing/commands/render';
|
||||
import { MoveToCommand } from '../../physics/commands/move-to';
|
||||
|
||||
export class Lamp extends GameObject {
|
||||
private light: CircleLight;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { vec2 } from 'gl-matrix';
|
||||
import { RenderCommand } from '../../commands/types/draw';
|
||||
import { TunnelShape } from '../../drawing/drawables/primitives/tunnel-shape';
|
||||
import { GameObject } from '../game-object';
|
||||
import { RenderCommand } from '../../drawing/commands/render';
|
||||
|
||||
export interface Line {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue