Skip to content

Commit

Permalink
Folders added
Browse files Browse the repository at this point in the history
  • Loading branch information
StarvinXarvin committed Mar 20, 2023
1 parent 7307f1e commit 7d87bc3
Show file tree
Hide file tree
Showing 336 changed files with 105,197 additions and 0 deletions.
77 changes: 77 additions & 0 deletions DIALOGUE SYSTEM HANDOUT/HANDOUT/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib
!Game/Source/External/SDL/libx86/SDL2.lib
!Game/Source/External/SDL/libx86/SDL2main.lib
!Game/Source/External/SDL_image/libx86/SDL2_image.lib
!Game/Source/External/SDL_mixer/libx86/SDL2_mixer.lib

# Executables
*.exe
*.out
*.app

# Ignore thumbnails created by windows
Thumbs.db

# Ignore files build by Visual Studio
*.obj
*.pdb
*.aps
# *.user
# *.vcproj
# *.vcxproj*
# *.sln
*.vspscc
*_i.c
*.i
*.icf
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
*.tlog
.vs

[Bb]uild
[Bb]in
[Dd]ebug/
*.sbr
*.sdf
obj/
[R]elease/
_ReSharper*/
[Tt]est[Rr]esult*
ipch/
*.opensdf
*.db
*.opendb
packages/
67 changes: 67 additions & 0 deletions DIALOGUE SYSTEM HANDOUT/HANDOUT/CONVENTIONS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
## C++ Coding Style Conventions

Here it is a list with some of the conventions used in this project template:

Code element | Convention | Example
--- | :---: | ---
Defines | ALL_CAPS | `#define PLATFORM_DESKTOP`
Macros | ALL_CAPS | `#define MIN(a,b) (((a)<(b))?(a):(b))`
Variables | lowerCase | `int screenWidth = 0;`
Local variables | lowerCase | `Vector2 playerPosition;`
Global variables | lowerCase | `bool fullscreen = false;`
Constants | lowerCase | `const int maxValue = 8`
Pointers | MyType* pointer | `Texture2D* array;`
float values | always x.xf | `float value = 10.0f`
Operators | value1 * value2 | `int product = value * 6;`
Operators | value1 / value2 | `int division = value / 4;`
Operators | value1 + value2 | `int sum = value + 10;`
Operators | value1 - value2 | `int res = value - 5;`
Enum | TitleCase | `enum TextureFormat`
Enum members | ALL_CAPS | `UNCOMPRESSED_R8G8B8`
Struct | TitleCase | `struct Texture2D`
Struct members |lowerCase | `texture.id`
Functions | TitleCase | `InitWindow()`
Class | TitleCase | `class Player`
Class Fields | lowerCase | `Vector2 position`
Class Methods | TitleCase | `GetPosition()`
Ternary Operator | (condition)? result1 : result2 | `printf("Value is 0: %s", (value == 0)? "yes" : "no");`

- Project uses aligned braces or curly brackets:
```c
void SomeFunction()
{
// TODO: Do something here!
}
```

- Project uses **TABS** instead of 4 spaces.

- Trailing spaces MUST be avoided!

## Files and Directories Naming Conventions

- Directories will be named using `TitleCase` : `Assets/Audio/Music`

- Files will be named using `snake_case`: `main_title.png`

_NOTE: Avoid any space or special character in the files/dir naming!_

### Directories Organization:

Files should be organized by context and usage in the game, think about the loading requirements and put all the assets that need to be loaded at the same time together.

Here an example, note that some assets require to be loaded all at once while other assets require to be loaded only at initialization (gui, font).

```
Assets/Audio/Fx/long_jump.wav
Assets/Audio/Music/main_theme.ogg
Assets/Screens/Logo/logo.png
Assets/Screens/Title/title.png
Assets/Screens/Gameplay/background.png
Assets/Characters/player.png
Assets/Characters/enemy_slime.png
Assets/Common/font_arial.ttf
Assets/GUI/gui.png
```

Use descriptive names for the files, it would be perfect if just reading the name of the file, it was possible to know what is that file and where it fits in the game.
22 changes: 22 additions & 0 deletions DIALOGUE SYSTEM HANDOUT/HANDOUT/DialogueSystemHandout.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Express 2013 for Windows Desktop
VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Game", "Game\Game.vcxproj", "{2AF9969B-F202-497B-AF30-7BEF9CE8005E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2AF9969B-F202-497B-AF30-7BEF9CE8005E}.Debug|Win32.ActiveCfg = Debug|Win32
{2AF9969B-F202-497B-AF30-7BEF9CE8005E}.Debug|Win32.Build.0 = Debug|Win32
{2AF9969B-F202-497B-AF30-7BEF9CE8005E}.Release|Win32.ActiveCfg = Release|Win32
{2AF9969B-F202-497B-AF30-7BEF9CE8005E}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
141 changes: 141 additions & 0 deletions DIALOGUE SYSTEM HANDOUT/HANDOUT/Game/Game.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{2AF9969B-F202-497B-AF30-7BEF9CE8005E}</ProjectGuid>
<RootNamespace>Development</RootNamespace>
<ProjectName>Game</ProjectName>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<IntDir>$(SolutionDir)Build\$(Configuration)\Obj\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<OutDir>$(SolutionDir)Build\$(Configuration)</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>$(SolutionDir)Build\$(Configuration)</OutDir>
<IntDir>$(SolutionDir)Build\$(Configuration)\Obj\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_ITERATOR_DEBUG_LEVEL=0;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ShowIncludes>false</ShowIncludes>
<AdditionalIncludeDirectories>$(ProjectDir)Source\External</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>SDL2.lib;SDL2main.lib;SDL2_image.lib;SDL2_mixer.lib;SDL2_ttf.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>$(ProjectDir)Source\External\SDL\libx86;$(ProjectDir)Source\External\SDL_image\libx86;$(ProjectDir)Source\External\SDL_mixer\libx86;$(ProjectDir)Source\External\Box2D\libx86\DebugLib;$(ProjectDir)Source\External\SDL_ttf\libx86</AdditionalLibraryDirectories>
</Link>
<PostBuildEvent>
<Command>copy /Y "$(SolutionDir)Build\$(Configuration)\$(ProjectName).exe" "$(SolutionDir)Output\$(ProjectName).exe"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<UseFullPaths>false</UseFullPaths>
<ShowIncludes>false</ShowIncludes>
<PreprocessorDefinitions>_ITERATOR_DEBUG_LEVEL=0;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(ProjectDir)Source\External</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<SubSystem>Console</SubSystem>
<AdditionalDependencies>SDL2.lib;SDL2main.lib;SDL2_image.lib; SDL2_mixer.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>$(ProjectDir)Source\External\SDL\libx86;$(ProjectDir)Source\External\SDL_image\libx86;$(ProjectDir)Source\External\SDL_mixer\libx86</AdditionalLibraryDirectories>
</Link>
<PostBuildEvent>
<Command>copy /Y "$(SolutionDir)Build\$(Configuration)\$(ProjectName).exe" "$(SolutionDir)Output\$(ProjectName).exe"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="Source\DialogueManager.cpp" />
<ClCompile Include="Source\GuiButton.cpp" />
<ClCompile Include="Source\GuiManager.cpp" />
<ClCompile Include="Source\Main.cpp" />
<ClCompile Include="Source\App.cpp" />
<ClCompile Include="Source\Audio.cpp" />
<ClCompile Include="Source\Input.cpp" />
<ClCompile Include="Source\Fonts.cpp" />
<ClCompile Include="Source\Scene.cpp" />
<ClCompile Include="Source\Render.cpp" />
<ClCompile Include="Source\Textures.cpp" />
<ClCompile Include="Source\Window.cpp" />
<ClInclude Include="Source\DialogueManager.h" />
<ClInclude Include="Source\GuiButton.h" />
<ClInclude Include="Source\GuiControl.h" />
<ClInclude Include="Source\GuiManager.h" />
<ClInclude Include="Source\Fonts.h" />
<ClInclude Include="Source\Queue.h" />
<ClInclude Include="Source\Scene.h" />
<ClInclude Include="Source\Audio.h" />
<ClInclude Include="Source\Input.h" />
<ClInclude Include="Source\App.h" />
<ClInclude Include="Source\Module.h" />
<ClInclude Include="Source\Render.h" />
<ClInclude Include="Source\Textures.h" />
<ClInclude Include="Source\Window.h" />
<ClInclude Include="Source\Defs.h" />
<ClInclude Include="Source\List.h" />
<ClInclude Include="Source\Log.h" />
<ClCompile Include="Source\Log.cpp" />
<ClInclude Include="Source\Point.h" />
<ClInclude Include="Source\SString.h" />
<ClInclude Include="Source\DynArray.h" />
<ClInclude Include="Source\External\PugiXml\src\pugiconfig.hpp" />
<ClInclude Include="Source\External\PugiXml\src\pugixml.hpp" />
<ClCompile Include="Source\External\PugiXml\src\pugixml.cpp" />
</ItemGroup>
<ItemGroup>
<Xml Include="..\Output\config.xml" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
79 changes: 79 additions & 0 deletions DIALOGUE SYSTEM HANDOUT/HANDOUT/Game/Game.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ClCompile Include="Source\Window.cpp" />
<ClCompile Include="Source\Textures.cpp" />
<ClCompile Include="Source\Scene.cpp" />
<ClCompile Include="Source\Render.cpp" />
<ClCompile Include="Source\Main.cpp" />
<ClCompile Include="Source\Input.cpp" />
<ClCompile Include="Source\Audio.cpp" />
<ClCompile Include="Source\App.cpp" />
<ClCompile Include="Source\Log.cpp">
<Filter>Utils</Filter>
</ClCompile>
<ClCompile Include="Source\External\PugiXml\src\pugixml.cpp">
<Filter>External\PugiXml</Filter>
</ClCompile>
<ClCompile Include="Source\GuiButton.cpp" />
<ClCompile Include="Source\GuiManager.cpp" />
<ClCompile Include="Source\DialogueManager.cpp" />
<ClCompile Include="Source\Fonts.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="Source\Window.h" />
<ClInclude Include="Source\Textures.h" />
<ClInclude Include="Source\Scene.h" />
<ClInclude Include="Source\Render.h" />
<ClInclude Include="Source\Module.h" />
<ClInclude Include="Source\Input.h" />
<ClInclude Include="Source\Audio.h" />
<ClInclude Include="Source\App.h" />
<ClInclude Include="Source\Defs.h">
<Filter>Utils</Filter>
</ClInclude>
<ClInclude Include="Source\DynArray.h">
<Filter>Utils</Filter>
</ClInclude>
<ClInclude Include="Source\List.h">
<Filter>Utils</Filter>
</ClInclude>
<ClInclude Include="Source\Log.h">
<Filter>Utils</Filter>
</ClInclude>
<ClInclude Include="Source\Point.h">
<Filter>Utils</Filter>
</ClInclude>
<ClInclude Include="Source\SString.h">
<Filter>Utils</Filter>
</ClInclude>
<ClInclude Include="Source\External\PugiXml\src\pugiconfig.hpp">
<Filter>External\PugiXml</Filter>
</ClInclude>
<ClInclude Include="Source\External\PugiXml\src\pugixml.hpp">
<Filter>External\PugiXml</Filter>
</ClInclude>
<ClInclude Include="Source\Queue.h">
<Filter>Utils</Filter>
</ClInclude>
<ClInclude Include="Source\GuiButton.h" />
<ClInclude Include="Source\GuiControl.h" />
<ClInclude Include="Source\GuiManager.h" />
<ClInclude Include="Source\DialogueManager.h" />
<ClInclude Include="Source\Fonts.h" />
</ItemGroup>
<ItemGroup>
<Filter Include="External">
<UniqueIdentifier>{83a966c7-b4bb-4eff-9c2c-3ff3c7b55a60}</UniqueIdentifier>
</Filter>
<Filter Include="Utils">
<UniqueIdentifier>{2cad778a-d356-48b0-9fee-587f1bbb187e}</UniqueIdentifier>
</Filter>
<Filter Include="External\PugiXml">
<UniqueIdentifier>{2855ff7f-53a1-413d-a75b-18b4ade921dd}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<Xml Include="..\Output\config.xml" />
</ItemGroup>
</Project>
Loading

0 comments on commit 7d87bc3

Please sign in to comment.