Unfinished webgl renderer

This commit is contained in:
2026-03-06 17:35:22 -03:00
parent e5d2a3e7e2
commit caa4c39e71
17 changed files with 464 additions and 202 deletions
+3 -2
View File
@@ -6,6 +6,7 @@ import { ClickableSprite } from "../components/clickable.ts";
import { point_inside_rec } from "$/common/utils.ts";
import { InputManager } from "../input_manager.ts";
import { Camera, screen_to_world } from "../components/camera.ts";
import { canvas } from "../renderer.ts";
export class ClickableSystem extends System {
update(world: ClientWorld, _delta: number): void {
@@ -18,8 +19,8 @@ export class ClickableSystem extends System {
mouse.x,
mouse.y,
camera,
world.canvas.width,
world.canvas.height,
canvas.width,
canvas.height,
);
for (const entity of world.get_entities()) {