-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented
sk_config
module parsing Lua files
- Loading branch information
1 parent
b4849d7
commit b0c634a
Showing
14 changed files
with
308 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "vendor/raylib"] | ||
path = vendor/raylib | ||
url = https://github.com/raysan5/raylib | ||
[submodule "vendor/lua"] | ||
path = vendor/lua | ||
url = https://github.com/lua/lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
-- | ||
-- GNU Sparky --- A 5v5 character-based libre tactical shooter | ||
-- Copyright (C) 2024 Wasym A. Alonso | ||
-- | ||
-- This file is part of Sparky. | ||
-- | ||
-- Sparky 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. | ||
-- | ||
-- Sparky 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 Sparky. If not, see <http://www.gnu.org/licenses/>. | ||
-- | ||
|
||
|
||
local MOUSE_BUTTON_LEFT = 0 | ||
local KEY_SPACE = 32 | ||
local KEY_A = 65 | ||
local KEY_D = 68 | ||
local KEY_E = 69 | ||
local KEY_Q = 81 | ||
local KEY_R = 82 | ||
local KEY_S = 83 | ||
local KEY_W = 87 | ||
|
||
Crosshair = { | ||
radius = 2.5 | ||
} | ||
|
||
Video = { | ||
win_width = 1280, | ||
win_height = 720, | ||
fps_limit = 144 | ||
} | ||
|
||
General = { | ||
fov = 60, | ||
mouse_sensitivity = 0.05 | ||
} | ||
|
||
Controls = { | ||
move_forward = KEY_W, | ||
move_backwards = KEY_S, | ||
move_left = KEY_A, | ||
move_right = KEY_D, | ||
peek_left = KEY_Q, | ||
peek_right = KEY_E, | ||
jump = KEY_SPACE, | ||
shoot = MOUSE_BUTTON_LEFT, | ||
reload = KEY_R | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.