Skip to content

Commit f485a22

Browse files
committed
LODS
1 parent e89381b commit f485a22

22 files changed

Lines changed: 5359 additions & 2717 deletions

CMakeLists.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ set(OUTPUT_DIR ${OUTPUT_DIR}/bin)
55

66
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules/")
77

8-
if(WIN32)
9-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /bigobj")
8+
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
9+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /bigobj /fsanitize=thread")
1010
endif()
1111

12-
if(APPLE)
13-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -fsanitize=address -Wall -Wextra -Werror=return-type -pedantic -Wno-unused-parameter")
12+
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
13+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -fsanitize=thread -Wall -Wextra -Werror=return-type -pedantic -Wno-unused-parameter")
1414
endif()
1515

1616

@@ -64,7 +64,6 @@ include_directories(${FREETYPE_INCLUDE_DIR})
6464

6565

6666
add_library(STB "include/stb_image.cpp")
67-
add_library(SIMPLEXNOISE "include/SimplexNoise.cpp")
6867
# fucking glob wont work kms
6968
add_library(Lua "include/lua/src/lapi.c" "include/lua/src/lauxlib.c" "include/lua/src/lbaselib.c" "include/lua/src/lcode.c" "include/lua/src/lcorolib.c" "include/lua/src/lctype.c" "include/lua/src/ldblib.c" "include/lua/src/ldebug.c" "include/lua/src/ldo.c" "include/lua/src/ldump.c" "include/lua/src/lfunc.c" "include/lua/src/lgc.c" "include/lua/src/linit.c" "include/lua/src/liolib.c" "include/lua/src/llex.c" "include/lua/src/lmathlib.c" "include/lua/src/lmem.c" "include/lua/src/loadlib.c" "include/lua/src/lobject.c" "include/lua/src/lopcodes.c" "include/lua/src/loslib.c" "include/lua/src/lparser.c" "include/lua/src/lstate.c" "include/lua/src/lstring.c" "include/lua/src/lstrlib.c" "include/lua/src/ltable.c" "include/lua/src/ltablib.c" "include/lua/src/ltm.c" "include/lua/src/lua.c" "include/lua/src/luac.c" "include/lua/src/lundump.c" "include/lua/src/lutf8lib.c" "include/lua/src/lvm.c" "include/lua/src/lzio.c")
7069
include_directories("include/lua/src")
@@ -124,7 +123,7 @@ include/imgui/backends/imgui_impl_glfw.cpp
124123
)
125124

126125

127-
list(APPEND LINKED_LIBRARIES Lua glfw STB SIMPLEXNOISE Vulkan::Headers Jolt)
126+
list(APPEND LINKED_LIBRARIES Lua glfw STB Vulkan::Headers Jolt)
128127
if(OSX)
129128
list(APPEND LINKED_LIBRARIES ${COCOA_LIBRARY} ${IOKIT_LIBRARY})
130129
endif(OSX)

assets/scripts/load/items.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ items.pickaxe = {
6565
model = "pickaxe",
6666
material = "pickaxe",
6767
durability = 300,
68+
mine_amount = 5,
6869
offset = vec3(0.2,-0.4,-0.5),
6970
rotation = quat(-5,90,-5)
7071
}

assets/scripts/load/widgets.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ widgets.recipe_slot = {
2323

2424

2525

26-
widgets.text_default = {type = "text"}
26+
widgets.text_default = {type = "text",height = 20,spacing = 2}

assets/scripts/start.lua

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
11

2-
player:give(items.tin_ore,10)
3-
player:give(items.pickaxe,1)
4-
player:give(items.drill,1)
5-
player:give(items.furnace,1)
6-
player:give(items.thruster,5)
7-
player:give(items.cockpit,1)
8-
player:give(items.tin_plate,80)
2+
player:give(items.pickaxe,1)

assets/shaders/FastNoiseLite.glsl

Lines changed: 2257 additions & 0 deletions
Large diffs are not rendered by default.

include/FastNoise.cpp

Lines changed: 0 additions & 2247 deletions
This file was deleted.

include/FastNoise.h

Lines changed: 0 additions & 275 deletions
This file was deleted.

0 commit comments

Comments
 (0)