aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortslil clingman <>2021-09-01 13:05:40 -0400
committertslil clingman <>2021-09-01 13:05:40 -0400
commitdae5c3d1e9bdbabf94f79960b2fca9a5f47b7ac0 (patch)
treeaad58caa906db869accdab2166fd5bc16cfd8869
parent6a2d132873ce7b40405a3dc000a12539fffd969b (diff)
Licensing stuff
-rw-r--r--README.md17
-rwxr-xr-xsrc/main.zig17
-rw-r--r--src/map.zig17
-rw-r--r--src/raycast.zig17
-rw-r--r--src/renderConstants.zig17
5 files changed, 85 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5cea861..ed1af7a 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,20 @@
+# ZiRC
+
+Learning Zig by building a Raycasting engine (of sorts). Work in
+progress.
+
+## Build
+
+Ensure you have a recent version of Zig (tested on
+`0.9.0-dev.866+6a6e2cd64`), and the `csfml` library somewhere we your
+linker can find it. Then run
+
+`zig build`
+
+followed by
+
+`zig build run`
+
## License
GPLv3+
diff --git a/src/main.zig b/src/main.zig
index 2b5f7f2..e912b5f 100755
--- a/src/main.zig
+++ b/src/main.zig
@@ -1,3 +1,20 @@
+// ZiRC, a Zig raycaster for fun
+//
+// Copyright (C) 2021, tslil clingman
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const sf = struct {
pub usingnamespace @import("sfml");
pub usingnamespace graphics;
diff --git a/src/map.zig b/src/map.zig
index d9b4496..8093e21 100644
--- a/src/map.zig
+++ b/src/map.zig
@@ -1,3 +1,20 @@
+// This file is part of ZiRC
+//
+// Copyright (C) 2021, tslil clingman
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const std = @import("std");
// Let's pretend that our units are meters
diff --git a/src/raycast.zig b/src/raycast.zig
index 47377a5..dec6b46 100644
--- a/src/raycast.zig
+++ b/src/raycast.zig
@@ -1,3 +1,20 @@
+// This file is part of ZiRC
+//
+// Copyright (C) 2021, tslil clingman
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const std = @import("std");
const RenderWindow = @import("sfml").graphics.RenderWindow;
diff --git a/src/renderConstants.zig b/src/renderConstants.zig
index 12bce07..aa477ee 100644
--- a/src/renderConstants.zig
+++ b/src/renderConstants.zig
@@ -1,3 +1,20 @@
+// This file is part of ZiRC
+//
+// Copyright (C) 2021, tslil clingman
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
pub const planeWidth = 320;
pub const planeHeight = 240;