Implemented a RTS-style camera

This commit is contained in:
Lorenzo Torres 2025-08-12 23:00:42 +02:00
parent f2fd7a3f1b
commit 68ccaf8b68
5 changed files with 57 additions and 30 deletions

View file

@ -17,7 +17,7 @@ const allocator = gpa.allocator();
var pool: ecs.Pool = undefined;
var renderer: Renderer = undefined;
var camera: rendering.Camera = .{
.position = .{ 0.0, 0.0, 5.0 },
.position = .{ 0.0, 5.0, -5.0 },
};
var input: ecs.Input = .{ .key_pressed = .{false} ** @intFromEnum(ecs.Input.KeyCode.menu) };
var resources: ecs.Resources = undefined;