refactor: tsconfig paths
This commit is contained in:
parent
acbb4e9d98
commit
85a44235d3
25 changed files with 108 additions and 108 deletions
|
|
@ -1,13 +1,13 @@
|
|||
import { Terrain, type Terrain as Ground } from "../../../engine/world/Terrain"
|
||||
import { Mesh, type Mesh as Geometry } from "../../../engine/scene/Mesh"
|
||||
import type { Material } from "../../../engine/render/Material"
|
||||
import type { ActorDefinition } from "../../../engine/scene/Actor"
|
||||
import { Mob, type MobState } from "../Mob"
|
||||
import { Terrain } from "engine/world/Terrain"
|
||||
import { Mesh, type Mesh as Geometry } from "engine/scene/Mesh"
|
||||
import type { Material } from "engine/render/Material"
|
||||
import type { ActorDefinition } from "engine/scene/Actor"
|
||||
import { Mob, type MobState } from "game/actors/Mob"
|
||||
import { ellipsoid, nextRand, wanderHeading } from "./mobkit"
|
||||
|
||||
// Everything about the frog: squat, ground-bound, sits then springs a ballistic hop.
|
||||
|
||||
export type Frog = ActorDefinition<MobState, Ground>
|
||||
export type Frog = ActorDefinition<MobState, Terrain>
|
||||
|
||||
export namespace Frog {
|
||||
export function create(material: Material): Frog {
|
||||
|
|
@ -44,7 +44,7 @@ function build(mesh: Geometry): void {
|
|||
ellipsoid(mesh, -0.3, 0.2, -0.26, 0.2, 0.2, 0.26, 4, 3, 0, 0.68, 0, 1)
|
||||
}
|
||||
|
||||
function update(mob: MobState, dt: number, terrain: Ground): void {
|
||||
function update(mob: MobState, dt: number, terrain: Terrain): void {
|
||||
if (mob.grounded) {
|
||||
mob.timer -= dt
|
||||
mob.position.y = Terrain.height(terrain, mob.position.x, mob.position.z)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue