move and slide

This commit is contained in:
Schluffe
2026-03-30 22:54:41 +02:00
parent ba78c98a74
commit 25d0f950e6
3 changed files with 21 additions and 6 deletions
-4
View File
@@ -1,6 +1,5 @@
import { defineEntity } from "#/engine/Entity.ts";
import { keyboardInput } from "#/engine/Keyboard.ts";
import { lerp } from "#/engine/lib/lerp";
import { pointer } from "#/engine/Pointer.ts";
import { createRect, fillRect, strokeRect } from "#/engine/Rect.ts";
import $ from "#/engine/Scene.ts";
@@ -11,15 +10,12 @@ import {
} from "#/engine/Sprite.ts";
import {
type Collider,
type Collision,
createCollider,
moveAndCollide,
moveAndSlide,
Shape,
} from "#/engine/system/physics.ts";
import {
createVector,
getDotProduct,
normalize,
scale,
type Vector,
+9
View File
@@ -12,6 +12,15 @@
}
}
},
{
"name": "portal",
"init": {
"position": {
"x": 24,
"y": 41
}
}
},
{
"name": "portal",
"init": {