diff options
author | Julien Dessaux | 2022-09-21 23:19:45 +0200 |
---|---|---|
committer | Julien Dessaux | 2022-09-21 23:19:45 +0200 |
commit | 8f76ba782669bc986a5e450e5a50ac84232c1323 (patch) | |
tree | 6c3b0b55437a453dabfe4f1ea5ba1d6a702dba10 /src/playfield.zig | |
parent | Fixed game reset (diff) | |
download | grenade-brothers-8f76ba782669bc986a5e450e5a50ac84232c1323.tar.gz grenade-brothers-8f76ba782669bc986a5e450e5a50ac84232c1323.tar.bz2 grenade-brothers-8f76ba782669bc986a5e450e5a50ac84232c1323.zip |
Began rewriting the game as a wasm4 cartridge
Diffstat (limited to 'src/playfield.zig')
-rw-r--r-- | src/playfield.zig | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/playfield.zig b/src/playfield.zig deleted file mode 100644 index 757ec60..0000000 --- a/src/playfield.zig +++ /dev/null @@ -1,38 +0,0 @@ -const std = @import("std"); -const spoon = @import("spoon"); - -pub fn draw(rc: *spoon.Term.RenderContext) !void { - var iter = std.mem.split(u8, field, "\n"); - var y: usize = 0; - while (iter.next()) |line| : (y += 1) { - try rc.moveCursorTo(y, 0); - _ = try rc.buffer.writer().write(line); - } -} - -const field = - \\████████████████████████████████████████████████████████████████████████████████ - \\█ ██ █ - \\████████████████████████████████████████████████████████████████████████████████ - \\█ █ - \\█ █ - \\█ █ - \\█ █ - \\█ █ - \\█ █ - \\█ █ - \\█ █ - \\█ █ - \\█ █ - \\█ ██ █ - \\█ ██ █ - \\█ ██ █ - \\█ ██ █ - \\█ ██ █ - \\█ ██ █ - \\█ ██ █ - \\█ ██ █ - \\█ ██ █ - \\█ ██ █ - \\████████████████████████████████████████████████████████████████████████████████ -; |