diff options
| -rw-r--r-- | README.md | 17 | ||||
| -rwxr-xr-x | src/main.zig | 17 | ||||
| -rw-r--r-- | src/map.zig | 17 | ||||
| -rw-r--r-- | src/raycast.zig | 17 | ||||
| -rw-r--r-- | src/renderConstants.zig | 17 |
5 files changed, 85 insertions, 0 deletions
@@ -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; |
