aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig
index 2dec9be..866b831 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -85,7 +85,7 @@ pub fn main() !void {
map.cells.items[16 * 7 + 7] = level.Cell{ .height = constants.MAX_HEIGHT, .wall_texture = 1 };
map.cells.items[16 * 7 + 6] = level.Cell{ .height = constants.MAX_HEIGHT / 3, .wall_texture = 1, .floor_texture = 1 };
- try map.objects.append(level.Object{ .pos_x = 5.5, .pos_y = 7.5, .pos_z = 0, .texture = 2, .height = 1, .width = 1 });
+ try map.objects.append(level.Object{ .pos_x = 5.5, .pos_y = 7.5, .pos_z = 1, .texture = 2, .height = 1, .width = 1 });
try map.objects.append(level.Object{ .pos_x = 4, .pos_y = 8.5, .texture = 1, .height = 1, .width = 1 });
try map.objects.append(level.Object{ .pos_x = 6.5, .pos_y = 8.5, .texture = 0, .height = 1, .width = 1 });
@@ -116,6 +116,7 @@ pub fn main() !void {
// Load wall textures
var wall_textures = try sf.Texture.createFromFile("walls.png");
defer wall_textures.destroy();
+ wall_textures.setRepeated(true);
wall_textures.setSmooth(false); // looks worse => better!
var walls_sprite = try sf.Sprite.createFromTexture(wall_textures);