Improve moviment !
This commit is contained in:
@@ -6,6 +6,11 @@ import { Entity } from "./entity.ts";
|
||||
|
||||
export abstract class Player extends Entity {
|
||||
name: string;
|
||||
// like minecraft's players: slabs yes, full blocks need a jump
|
||||
override step_height = 0.6;
|
||||
// more than minecraft, where it's only the tick it leaves the ground: stepping from the edge of a block onto one
|
||||
// diagonal to it drops it a little first, this lets it still step up onto that one
|
||||
override step_grace_ticks = 3;
|
||||
// undefined draws the default skin
|
||||
skin: Texture | undefined;
|
||||
// 3 pixel wide arms, for skins made for them
|
||||
|
||||
Reference in New Issue
Block a user