Render in NDC

This commit is contained in:
schmelczerandras 2020-08-18 22:36:30 +02:00
parent 40a660b7cb
commit 05682dd2d5
16 changed files with 106 additions and 82 deletions

View file

@ -15,11 +15,8 @@ import { Lamp } from './lamp';
export class Character extends GameObject {
private keysDown: Set<string> = new Set();
private light = new Lamp(vec2.create(), 40, vec3.fromValues(0.67, 0.0, 0.33), 2);
private shape = new DrawableBlob(vec2.create());
private static speed = 1.5;
constructor(private game: IGame) {