Make physics more fun

This commit is contained in:
schmelczerandras 2020-10-16 11:48:52 +02:00
parent 155e360c8e
commit 89fafeafd3
41 changed files with 511 additions and 334 deletions

View file

@ -1,10 +1,11 @@
import { vec2 } from 'gl-matrix';
import { Circle, CircleLight, Renderer } from 'sdf-2d';
import { CircleLight, Renderer } from 'sdf-2d';
import { Id, ProjectileBase, rgb } from 'shared';
import { ViewObject } from './view-object';
import { Circle } from '../shapes/circle';
export class ProjectileView extends ProjectileBase implements ViewObject {
private circle: Circle;
private circle: InstanceType<typeof Circle>;
private light: CircleLight;
constructor(id: Id, center: vec2, radius: number) {