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

@ -4,11 +4,14 @@ import { Command } from '../command';
@serializable
export class MoveActionCommand extends Command {
public constructor(public readonly direction: vec2) {
public constructor(
public readonly direction: vec2,
public readonly isCharacterRelative: boolean,
) {
super();
}
public toArray(): Array<any> {
return [this.direction];
return [this.direction, this.isCharacterRelative];
}
}