aboutsummaryrefslogtreecommitdiff
path: root/src/level.zig
diff options
context:
space:
mode:
authortslil clingman <>2021-10-12 22:33:03 -0400
committertslil clingman <>2021-10-12 22:33:03 -0400
commit7fa4ae345c8c8483c0513b21eda7b612315c1a4c (patch)
tree5587997f247ba1c5eee2cf02c5ab5e92eee9f869 /src/level.zig
parent739ae8d04c5fe4624501785b23b2e91886b3b149 (diff)
It almost works, but for some reason everything only has 3 sides...?
Diffstat (limited to 'src/level.zig')
-rw-r--r--src/level.zig9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/level.zig b/src/level.zig
index dce2a14..9f5217d 100644
--- a/src/level.zig
+++ b/src/level.zig
@@ -35,11 +35,12 @@ pub const Cell = struct {
floor_texture: u8 = 0,
ceiling_texture: u8 = 2,
- vertices: [][2]f32 = [][2]f32{
+ vertices: [5][2]f32 = [5][2]f32{
+ .{ 0, 0 },
+ .{ 0.5, 0 },
+ .{ 0.5, 0.5 },
+ .{ 0, 0.5 },
.{ 0, 0 },
- .{ 1, 0 },
- .{ 1, 1 },
- .{ 0, 1 },
},
pub const floor = Cell{};