Day night cycle
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import type { Client } from "$/client/client.ts";
|
||||
import { DebugUI } from "$/client/debug_ui.ts";
|
||||
import { format_clock } from "$/common/time.ts";
|
||||
|
||||
// f3: every entity's fields, editable
|
||||
export class DebugOverlay {
|
||||
render(client: Client) {
|
||||
DebugUI.begin("Entities", 10, 10, 300);
|
||||
DebugUI.text(`${format_clock(client.level.time)} (tick ${client.level.time})`);
|
||||
DebugUI.separator();
|
||||
|
||||
for (const entity of client.level.entities.values()) {
|
||||
if (DebugUI.collapsing_header(`${entity.constructor.name} - ${entity.id}`)) {
|
||||
|
||||
Reference in New Issue
Block a user