Improve moviment !

This commit is contained in:
2026-09-27 15:37:09 -03:00
parent 5298ff7cf3
commit 9f47c709f1
10 changed files with 285 additions and 37 deletions
+5
View File
@@ -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