Implemented a RTS-style camera
This commit is contained in:
parent
f2fd7a3f1b
commit
68ccaf8b68
5 changed files with 57 additions and 30 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue