Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Derailedzack committed Mar 19, 2021
0 parents commit 190325f
Show file tree
Hide file tree
Showing 333 changed files with 175,611 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "cl.exe - Build and debug active file",
"type": "cppvsdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "externalTerminal",
"preLaunchTask": "C/C++: cl.exe build active file"
}
]
}
23 changes: 23 additions & 0 deletions Audio.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#include "Audio.h"


void Audio_Init(snd_init_func init_func)
{
}

void Audio_Open(snd_open_func open_func)
{
}

void Audio_Play(snd_play_func play_func)
{

}

void Audio_Stop(snd_stop_func stop_func)
{
}

void Audio_Close(snd_close_func close_func)
{
}
12 changes: 12 additions & 0 deletions Audio.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#pragma once
typedef void (snd_init_func)();
typedef void (snd_open_func)(const char* path);
typedef void (snd_play_func)();
typedef void(snd_stop_func)();
typedef void (snd_close_func)(const char* path);
typedef void (snd_change_func)();
void Audio_Init(snd_init_func init_func);
void Audio_Open(snd_open_func open_func);
void Audio_Play(snd_play_func play_func);
void Audio_Stop(snd_stop_func stop_func);
void Audio_Close(snd_close_func close_func);
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
cmake_minimum_required(VERSION 3.17)
project(Client_C___Version_)

set(CMAKE_C_STANDARD 99)

include_directories(deps\\include\\lua\\ deps\\include\\sdl2\\ deps\\include\\gl\\)
link_directories(C:\\Users\\admin\\Downloads\\SDL2-devel-2.0.12-mingw.tar\\SDL2-devel-2.0.12-mingw\\SDL2-2.0.12\\i686-w64-mingw32\\lib C:\\Users\\admin\\Downloads\\SDL2_net-devel-2.0.1-mingw.tar\\SDL2_net-devel-2.0.1-mingw\\SDL2_net-2.0.1\\i686-w64-mingw32\\lib C:\\Users\\admin\\CLionProjects\\glad\\cmake-build-debug C:\\Users\\admin\\CLionProjects\\Lua5.4\\cmake-build-debug)
link_libraries(SDL2 SDL2_net Lua5_4 glad readline)
add_definitions(-D__OLD_CODE -DDISABLE_RENDERING -DHAVE_GLAD_H)
add_executable(${PROJECT_NAME} Main.c Main.h Audio.c Audio.h Client.c Client.h Client_log.c Client_log.h ClientLoader.h CuteSound.c CuteSound.h DirectSndAudio.h Entity.c Entity.h EntityCollisionTest.c EntityCollisionTest.h EntityLoader.c EntityLoader.h EntityState.c EntityState.h EntityUtils.c EntityUtils.h EntityUtilsLoader.h GameState.c GameState.h GameStateLoader.h GDIDisplay.c GDIDisplay.h GLWarpper.c GLWarpper.h INIConfig.c INIConfig.h Inventory.c Inventory.h ItemLUA.c ItemLUA.h LevelLoader.c LevelLoader.h LuaGameState.c LuaGameState.h LuaUtils.c LuaUtils.h Modloader.c Modloader.h OrgFile.h Player.c Player.h Render.h RenderDebug.c RenderDebug.h RenderEntities.c RenderEntities.h RenderUI.c RenderUI.h Script.c Script.h ScriptLoader.h SDL2_Window.c SDL2_Window.h SDLSound.c SDLSound.h SoundLoader.h test_item.c test_item.h TestLevel.c TestLevel.h UserdataTest.c UserdataTest.h Window.c Window.h WindowLoader.c WindowLoader.h SDL2_Inventory.c SDL2_Inventory.h nuklear.h clist.c clist.h cute_c2.h CommandInt.c CommandInt.h)
224 changes: 224 additions & 0 deletions Client(C Version).cbp
Original file line number Diff line number Diff line change
@@ -0,0 +1,224 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Client(C Version)" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/Client(C Version)" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
<Add option="-DOLD_CODE" />
<Add option="-DHAVE_GLAD_H" />
<Add option="-DDISABLE_RENDERING" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin/Release/Client(C Version)" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
<Add directory="deps/include/lua" />
<Add directory="deps/include/sdl2" />
<Add directory="deps/include/gl/glad" />
<Add directory="deps/include/gl" />
<Add directory="deps/include" />
</Compiler>
<Linker>
<Add option="-lreadline -lgdi32 -lglad -lSDL2.dll -lSDL2_net -llua5 -lsetupapi -lhid -lole32 -loleaut32 -lglew" />
<Add directory="deps/libs" />
</Linker>
<Unit filename="Audio.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="Audio.h" />
<Unit filename="CMakeLists.txt" />
<Unit filename="Client(C Version).cbp" />
<Unit filename="Client.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="Client.h" />
<Unit filename="ClientLoader.h" />
<Unit filename="Client_log.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="Client_log.h" />
<Unit filename="CommandInt.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="CommandInt.h" />
<Unit filename="Config.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="Config.h" />
<Unit filename="CuteSound.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="CuteSound.h" />
<Unit filename="DirectSndAudio.h" />
<Unit filename="Entity.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="Entity.h" />
<Unit filename="EntityCollisionTest.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="EntityCollisionTest.h" />
<Unit filename="EntityLoader.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="EntityLoader.h" />
<Unit filename="EntityState.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="EntityState.h" />
<Unit filename="EntityUtils.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="EntityUtils.h" />
<Unit filename="EntityUtilsLoader.h" />
<Unit filename="FastNoiseLite.h" />
<Unit filename="GDIDisplay.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="GDIDisplay.h" />
<Unit filename="GLWarpper.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="GLWarpper.h" />
<Unit filename="GameState.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="GameState.h" />
<Unit filename="GameStateLoader.h" />
<Unit filename="INIConfig.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="INIConfig.h" />
<Unit filename="Inventory.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="Inventory.h" />
<Unit filename="ItemLUA.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="LevelLoader.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="LevelLoader.h" />
<Unit filename="LuaGameState.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="LuaGameState.h" />
<Unit filename="LuaUtils.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="LuaUtils.h" />
<Unit filename="Main.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="Main.h" />
<Unit filename="Modloader.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="Modloader.h" />
<Unit filename="Note" />
<Unit filename="OptionsDLG.cpp" />
<Unit filename="OptionsDLG.h" />
<Unit filename="OrgFile.h" />
<Unit filename="Player.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="Player.h" />
<Unit filename="Render.h" />
<Unit filename="RenderDebug.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="RenderDebug.h" />
<Unit filename="RenderEntities.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="RenderEntities.h" />
<Unit filename="RenderUI.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="RenderUI.h" />
<Unit filename="SDL2_Inventory.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="SDL2_Inventory.h" />
<Unit filename="SDL2_Window.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="SDL2_Window.h" />
<Unit filename="SDLSound.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="SDLSound.h" />
<Unit filename="Script.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="Script.h" />
<Unit filename="ScriptLoader.h" />
<Unit filename="SoundLoader.h" />
<Unit filename="TestLevel.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="TestLevel.h" />
<Unit filename="UIutils.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="UIutils.h" />
<Unit filename="UserdataTest.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="UserdataTest.h" />
<Unit filename="Window.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="Window.h" />
<Unit filename="WindowLoader.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="WindowLoader.h" />
<Unit filename="clist.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="clist.h" />
<Unit filename="cute_c2.h" />
<Unit filename="itemLUA.h" />
<Unit filename="nuklear.h" />
<Unit filename="scripts/Test.s" />
<Unit filename="test_item.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="test_item.h" />
<Unit filename="ui_test.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="ui_test.h" />
<Unit filename="wxsmith/OptionsDLG.wxs" />
<Extensions>
<wxsmith version="1">
<resources>
<wxDialog wxs="wxsmith/OptionsDLG.wxs" src="OptionsDLG.cpp" hdr="OptionsDLG.h" fwddecl="0" i18n="1" name="OptionsDLG" language="CPP" />
</resources>
</wxsmith>
</Extensions>
</Project>
</CodeBlocks_project_file>
92 changes: 92 additions & 0 deletions Client(C Version).cscope_file_list
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\LuaUtils.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\EntityLoader.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Config.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\OrgFile.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\GameStateLoader.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\itemLUA.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Client.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\ScriptLoader.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\EntityUtils.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\SDL2_Inventory.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\INIConfig.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\wxsmith\OptionsDLG.wxs"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\GLWarpper.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Client.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Script.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Inventory.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\scripts\Test.s"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\EntityUtils.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Client(C Version).cbp"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Note"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Window.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\RenderEntities.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\CMakeLists.txt"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\test_item.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\GameState.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\RenderDebug.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Main.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\EntityUtilsLoader.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Config.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\SDL2_Window.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\ItemLUA.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\nuklear.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Audio.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Window.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\EntityState.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\SDL2_Window.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\OptionsDLG.cpp"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\WindowLoader.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Entity.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Client_log.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\RenderDebug.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\LuaGameState.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Entity.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\ClientLoader.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\INIConfig.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\WindowLoader.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Render.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\cute_c2.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\EntityLoader.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Player.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\test_item.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Modloader.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\ui_test.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\GDIDisplay.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\CuteSound.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\RenderUI.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\LevelLoader.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Script.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\TestLevel.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\EntityCollisionTest.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\SDLSound.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Main.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\ui_test.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\clist.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\FastNoiseLite.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\CommandInt.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\RenderUI.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\LevelLoader.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\GDIDisplay.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Client_log.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\SDL2_Inventory.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Inventory.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\clist.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\SoundLoader.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\EntityState.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\DirectSndAudio.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\RenderEntities.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\LuaGameState.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\GameState.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\CuteSound.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\SDLSound.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\LuaUtils.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\TestLevel.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\EntityCollisionTest.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Audio.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Modloader.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\UserdataTest.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\Player.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\CommandInt.h"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\UserdataTest.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\GLWarpper.c"
"C:\Users\admin\Downloads\CodeblocksProjects\Client(C Version)\OptionsDLG.h"
Loading

0 comments on commit 190325f

Please sign in to comment.