aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/main.zig17
-rw-r--r--src/map.zig17
-rw-r--r--src/raycast.zig17
-rw-r--r--src/renderConstants.zig17
4 files changed, 68 insertions, 0 deletions
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;