aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2022-08-17 07:36:10 +0200
committerJulien Dessaux2022-08-17 07:36:10 +0200
commit8159efd43714e9775fadf006893c8056d5605d25 (patch)
tree781ac6d6265210b12cc5475bf31c1b91916a4e25
parentImplemented the jump command (diff)
downloadgrenade-brothers-8159efd43714e9775fadf006893c8056d5605d25.tar.gz
grenade-brothers-8159efd43714e9775fadf006893c8056d5605d25.tar.bz2
grenade-brothers-8159efd43714e9775fadf006893c8056d5605d25.zip
Fixed playfield symetry
-rw-r--r--src/brothers.zig4
-rw-r--r--src/playfield.zig22
2 files changed, 13 insertions, 13 deletions
diff --git a/src/brothers.zig b/src/brothers.zig
index 1b34a6b..7aaf7de 100644
--- a/src/brothers.zig
+++ b/src/brothers.zig
@@ -8,8 +8,8 @@ pub const Side = enum(u1) {
const startingX = [2]f64{ 15, 60 };
const colors = [2]spoon.Attribute.Colour{ .blue, .red };
-const leftLimit = [2]f64{ 1, 40 };
-const rightLimit = [2]f64{ 33, 74 }; // (38, 79) minus a brother's width
+const leftLimit = [2]f64{ 1, 41 };
+const rightLimit = [2]f64{ 34, 74 }; // (38, 79) minus a brother's width
pub const Brother = struct {
side: Side,
diff --git a/src/playfield.zig b/src/playfield.zig
index 3878323..757ec60 100644
--- a/src/playfield.zig
+++ b/src/playfield.zig
@@ -12,7 +12,7 @@ pub fn draw(rc: *spoon.Term.RenderContext) !void {
const field =
\\████████████████████████████████████████████████████████████████████████████████
- \\█ ██ █
+ \\█ ██ █
\\████████████████████████████████████████████████████████████████████████████████
\\█ █
\\█ █
@@ -24,15 +24,15 @@ const field =
\\█ █
\\█ █
\\█ █
- \\█ ██ █
- \\█ ██ █
- \\█ ██ █
- \\█ ██ █
- \\█ ██ █
- \\█ ██ █
- \\█ ██ █
- \\█ ██ █
- \\█ ██ █
- \\█ ██ █
+ \\█ ██ █
+ \\█ ██ █
+ \\█ ██ █
+ \\█ ██ █
+ \\█ ██ █
+ \\█ ██ █
+ \\█ ██ █
+ \\█ ██ █
+ \\█ ██ █
+ \\█ ██ █
\\████████████████████████████████████████████████████████████████████████████████
;