-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: hackvr-turbo
action: commit
revision:
path_from:
revision_from: 7e31b637ccf55bdc5c30cc1cd6004db559060226:
path_to:
revision_to:

git.thebackupbox.net

hackvr-turbo

git://git.thebackupbox.net/hackvr-turbo

commit 7e31b637ccf55bdc5c30cc1cd6004db559060226
Author: Felix (xq) Queißner <git@mq32.de>
Date:   Sun Jul 5 00:17:46 2020 +0200

    Improves README

diff --git a/README.md b/README.md

index 97bb50cd010a60c0a56bc57216d1b6312ed01f6a..

index ..9ac748d72f1f7d07639c31f62f91c299f551a67e 100644

--- a/README.md
+++ b/README.md
@@ -1,7 +1,32 @@
 # hackvr-turbo

-Implementation of epochs hackvr
+Implementation of [epochs HackVR](https://github.com/kkabrams/hackvr) project.

+## Current status
+
+- Basic rendering works
+- Commands implemented:
+  - `addshape`
+  - `move` (partially)
+  - `rotate` (partially)
+  - `renamegroup`
+- Std-I/O works
+
+## Controls
+
+Use *Up* and *Down* to move forward/backward, *Left* and *Right* to rotate the camera. Use *Alt* to change *Left*/*Right* to strafing.
+*W*,*A*,*S*,*D* can also be used to move the camera (strafing + forward).
+
+With *Page Up* and *Page Down* you can look up/down, using *Alt* allows to move the camera up or down.
+
+Right click with the mouse and drag to rotate the camera. Use the left mouse button to trigger a `action` output to stdout.
+
+## Quick Start
+
+Build the project (see below), then run this:
+```sh
+cat ./lib/hackvr/data/test.hackvr | ./zig-cache/bin/hackvr
+```

 ## References
 - https://github.com/kkabrams/hackvr
@@ -15,6 +40,7 @@ Provide the following packages on your system:

 Use [zig](https://ziglang.org/download/) `master` to build the project:
 ```sh
+git submodule update --init --recursive
 zig build
 ```

diff --git a/lib/hackvr/parser.zig b/lib/hackvr/parser.zig

index 1d7e355e66b33f6f128402786f408177e6c90022..

index ..faa72f25290735610965d110e06da48d1938529c 100644

--- a/lib/hackvr/parser.zig
+++ b/lib/hackvr/parser.zig
@@ -583,7 +583,7 @@ test "parser: cmd delete_group" {
 }

 test "parser: cmd delete_group" {
-    const result = (try Parser.init().parseLine("foobar renamegroup groupsel")) orelse return error.ExpectedEvent;
+    const result = (try Parser.init().parseLine("foobar renamegroup foobar groupsel")) orelse return error.ExpectedEvent;

     std.testing.expect(result == .rename_group);
     std.testing.expectEqualStrings("foobar", result.rename_group.selector.groups);

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 18:10:16 2024