diff --git a/README.md b/README.md index bb63515..887d328 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ To generate locally use `roc docs platform/main.roc`, and then use a file server Well it isn't perfect, hot reloading can be quite nice when developing a game. For this, I suggest using the [entr](https://github.com/eradman/entr) command line tool. -In one terminal run the build command: `find . -name "*.roc" -o -name "*.zig" | entr -cc zig build -Dapp=`. +In one terminal run the build command: `find . -name "*.roc" -o -name "*.zig" | entr -ccr zig build -Dapp=`. In another terminal run wasm4: `w4 run zig-out/lib/cart.wasm --hot`. diff --git a/build_roc.zig b/build_roc.zig index 003ef75..ebbad23 100644 --- a/build_roc.zig +++ b/build_roc.zig @@ -11,15 +11,8 @@ pub fn main() !void { defer std.process.argsFree(allocator, args); // Setup buffered stdout and stderr - const stdout_file = std.io.getStdOut().writer(); - var bwout = std.io.bufferedWriter(stdout_file); - const stdout = bwout.writer(); - defer bwout.flush() catch unreachable; - - const stderr_file = std.io.getStdErr().writer(); - var bwerr = std.io.bufferedWriter(stderr_file); - const stderr = bwerr.writer(); - defer bwerr.flush() catch unreachable; + const stdout = std.io.getStdOut().writer(); + const stderr = std.io.getStdErr().writer(); // Early exit on not enough args if (args.len < 2) { diff --git a/examples/rocci-bird.roc b/examples/rocci-bird.roc index fc8ae9d..fe22490 100644 --- a/examples/rocci-bird.roc +++ b/examples/rocci-bird.roc @@ -4,7 +4,7 @@ app "rocci-bird" } imports [ w4.Task.{ Task }, - w4.W4.{ Gamepad }, + w4.W4, w4.Sprite.{ Sprite }, ] provides [main, Model] to w4