diff options
| author | tslil clingman <> | 2021-09-09 23:18:56 -0400 |
|---|---|---|
| committer | tslil clingman <> | 2021-09-09 23:29:10 -0400 |
| commit | d2f6860430f93291a52d1cdaccf6831cd57be9a5 (patch) | |
| tree | 27d7698d79e678cad961647ea6295da53b6a8a49 /src/level.zig | |
| parent | cf1eb8fc551f5f3ee3bc0054fc236ff7d201f44a (diff) | |
Added ceilings and pos_z to sprites (they can now be on the ceiling)
Diffstat (limited to 'src/level.zig')
| -rw-r--r-- | src/level.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/level.zig b/src/level.zig index 5a63ebb..610eb7b 100644 --- a/src/level.zig +++ b/src/level.zig @@ -23,13 +23,14 @@ pub const Object = struct { texture : u8, pos_x : f32, pos_y : f32, + pos_z : f32 = 0, }; pub const Cell = struct { height: f32, wall_texture: u8 = 0, floor_texture: u8 = 0, - ceiling_texture: u8 = 0, + ceiling_texture: u8 = 2, const floor = Cell{ .height = 0 }; }; |
