Skip to content

Commit

Permalink
added gif of Astroids
Browse files Browse the repository at this point in the history
  • Loading branch information
Y0L042 committed Jun 17, 2024
1 parent 9774ed9 commit af88290
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 53 deletions.
13 changes: 6 additions & 7 deletions Duin/Duin.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>dnpch.h</PrecompiledHeaderFile>
<WarningLevel>Level3</WarningLevel>
<PreprocessorDefinitions>DN_PLATFORM_WINDOWS;DN_BUILD_DLL;IMGUI_IMPL_OPENGL_LOADER_GLAD;DN_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>DN_PLATFORM_WINDOWS;DN_BUILD_DLL;IMGUI_IMPL_OPENGL_LOADER_GLAD;SUPPORT_GIF_RECORDING;DN_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>src;vendor\patches\include;vendor\spdlog\include;vendor\raylib5\include;vendor\raylib5\src;vendor\raylib-cpp\include;vendor\imgui;vendor\rlgui;vendor\entt\single_include;vendor\fmt\include;vendor\cdt\CDT\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<Optimization>Disabled</Optimization>
Expand All @@ -104,7 +104,7 @@ IF EXIST ..\bin\Debug-windows-x86_64\Duin\Duin.dll\ (xcopy /Q /E /Y /I ..\bin\De
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>dnpch.h</PrecompiledHeaderFile>
<WarningLevel>Level3</WarningLevel>
<PreprocessorDefinitions>DN_PLATFORM_WINDOWS;DN_BUILD_DLL;IMGUI_IMPL_OPENGL_LOADER_GLAD;DN_RELEASE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>DN_PLATFORM_WINDOWS;DN_BUILD_DLL;IMGUI_IMPL_OPENGL_LOADER_GLAD;SUPPORT_GIF_RECORDING;DN_RELEASE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>src;vendor\patches\include;vendor\spdlog\include;vendor\raylib5\include;vendor\raylib5\src;vendor\raylib-cpp\include;vendor\imgui;vendor\rlgui;vendor\entt\single_include;vendor\fmt\include;vendor\cdt\CDT\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<Optimization>Full</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
Expand Down Expand Up @@ -134,7 +134,7 @@ IF EXIST ..\bin\Release-windows-x86_64\Duin\Duin.dll\ (xcopy /Q /E /Y /I ..\bin\
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>dnpch.h</PrecompiledHeaderFile>
<WarningLevel>Level3</WarningLevel>
<PreprocessorDefinitions>DN_PLATFORM_WINDOWS;DN_BUILD_DLL;IMGUI_IMPL_OPENGL_LOADER_GLAD;DN_DIST;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>DN_PLATFORM_WINDOWS;DN_BUILD_DLL;IMGUI_IMPL_OPENGL_LOADER_GLAD;SUPPORT_GIF_RECORDING;DN_DIST;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>src;vendor\patches\include;vendor\spdlog\include;vendor\raylib5\include;vendor\raylib5\src;vendor\raylib-cpp\include;vendor\imgui;vendor\rlgui;vendor\entt\single_include;vendor\fmt\include;vendor\cdt\CDT\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<Optimization>Full</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
Expand Down Expand Up @@ -167,6 +167,7 @@ IF EXIST ..\bin\Dist-windows-x86_64\Duin\Duin.dll\ (xcopy /Q /E /Y /I ..\bin\Dis
<ClInclude Include="src\Duin\Assets\AssetStructs.h" />
<ClInclude Include="src\Duin\Assets\GUID.h" />
<ClInclude Include="src\Duin\Assets\Image.h" />
<ClInclude Include="src\Duin\Assets\Particle2D.h" />
<ClInclude Include="src\Duin\Assets\Sprite2D.h" />
<ClInclude Include="src\Duin\Assets\Texture.h" />
<ClInclude Include="src\Duin\Core\Application.h" />
Expand All @@ -189,8 +190,8 @@ IF EXIST ..\bin\Dist-windows-x86_64\Duin\Duin.dll\ (xcopy /Q /E /Y /I ..\bin\Dis
<ClInclude Include="src\Duin\Core\Maths\src\Vector2.h" />
<ClInclude Include="src\Duin\Core\Maths\src\Vector3.h" />
<ClInclude Include="src\Duin\Core\Scene\Object.h" />
<ClInclude Include="src\Duin\Core\Scene\SharedRef.h" />
<ClInclude Include="src\Duin\Core\Scene\SceneManager.h" />
<ClInclude Include="src\Duin\Core\Scene\SharedRef.h" />
<ClInclude Include="src\Duin\Core\Signal.h" />
<ClInclude Include="src\Duin\Core\Structures\Delaunay.h" />
<ClInclude Include="src\Duin\Core\Structures\QuadTree.h" />
Expand All @@ -202,11 +203,9 @@ IF EXIST ..\bin\Dist-windows-x86_64\Duin\Duin.dll\ (xcopy /Q /E /Y /I ..\bin\Dis
<ClInclude Include="src\Duin\EntryPoint.h" />
<ClInclude Include="src\Duin\Events\InputEvent.h" />
<ClInclude Include="src\Duin\Events\InputMap.h" />
<ClInclude Include="src\Duin\Assets\Particle2D.h" />
<ClInclude Include="src\Duin\Object\Blackboard.h" />
<ClInclude Include="src\Duin\Object\Node.h" />
<ClInclude Include="src\dnpch.h" />
<ClInclude Include="vendor\patches\include\RLWrapper.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\Duin\Assets\AnimatedSprite2D.cpp" />
Expand All @@ -224,8 +223,8 @@ IF EXIST ..\bin\Dist-windows-x86_64\Duin\Duin.dll\ (xcopy /Q /E /Y /I ..\bin\Dis
<ClCompile Include="src\Duin\Core\Debug\Profiler.cpp" />
<ClCompile Include="src\Duin\Core\Maths\DuinMaths.cpp" />
<ClCompile Include="src\Duin\Core\Scene\Object.cpp" />
<ClCompile Include="src\Duin\Core\Scene\SharedRef.cpp" />
<ClCompile Include="src\Duin\Core\Scene\SceneManager.cpp" />
<ClCompile Include="src\Duin\Core\Scene\SharedRef.cpp" />
<ClCompile Include="src\Duin\Core\Structures\Delaunay.cpp" />
<ClCompile Include="src\Duin\Core\Structures\QuadTree.cpp" />
<ClCompile Include="src\Duin\Core\UUID.cpp" />
Expand Down
112 changes: 74 additions & 38 deletions Duin/Duin.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<Filter Include="Duin">
<UniqueIdentifier>{F558847C-E18F-850D-8A7C-6B107692010F}</UniqueIdentifier>
</Filter>
<Filter Include="Duin\Assets">
<UniqueIdentifier>{375A243E-A30F-9D33-2C04-970A98B89337}</UniqueIdentifier>
</Filter>
<Filter Include="Duin\Core">
<UniqueIdentifier>{6D5EF473-D9C8-A8EA-2207-5A908EB0863F}</UniqueIdentifier>
</Filter>
Expand All @@ -28,24 +31,39 @@
<Filter Include="Duin\Events">
<UniqueIdentifier>{39BFA747-A574-203D-2E69-1A149A1D1741}</UniqueIdentifier>
</Filter>
<Filter Include="Duin\Graphics">
<UniqueIdentifier>{D504F86B-41C5-73A2-0A00-BD1F767FB87E}</UniqueIdentifier>
</Filter>
<Filter Include="Duin\Object">
<UniqueIdentifier>{DB00945D-47B6-0C53-D0AA-062A3C5F0357}</UniqueIdentifier>
</Filter>
<Filter Include="Duin\Object\Node">
<UniqueIdentifier>{70EC6CFC-5CE5-8B4E-8517-71D3716F6B5A}</UniqueIdentifier>
</Filter>
<Filter Include="Duin\Object\Node\Node2D">
<UniqueIdentifier>{1B41ED37-8778-35CF-9082-99F2FC385CC8}</UniqueIdentifier>
</Filter>
<Filter Include="Duin\Object\Node\Node3D">
<UniqueIdentifier>{3C41ED37-A878-35CF-B182-99F21D395CC8}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\Duin.h" />
<ClInclude Include="src\Duin\Assets\AnimatedSprite2D.h">
<Filter>Duin\Assets</Filter>
</ClInclude>
<ClInclude Include="src\Duin\Assets\Asset.h">
<Filter>Duin\Assets</Filter>
</ClInclude>
<ClInclude Include="src\Duin\Assets\AssetManager.h">
<Filter>Duin\Assets</Filter>
</ClInclude>
<ClInclude Include="src\Duin\Assets\AssetStructs.h">
<Filter>Duin\Assets</Filter>
</ClInclude>
<ClInclude Include="src\Duin\Assets\GUID.h">
<Filter>Duin\Assets</Filter>
</ClInclude>
<ClInclude Include="src\Duin\Assets\Image.h">
<Filter>Duin\Assets</Filter>
</ClInclude>
<ClInclude Include="src\Duin\Assets\Particle2D.h">
<Filter>Duin\Assets</Filter>
</ClInclude>
<ClInclude Include="src\Duin\Assets\Sprite2D.h">
<Filter>Duin\Assets</Filter>
</ClInclude>
<ClInclude Include="src\Duin\Assets\Texture.h">
<Filter>Duin\Assets</Filter>
</ClInclude>
<ClInclude Include="src\Duin\Core\Application.h">
<Filter>Duin\Core</Filter>
</ClInclude>
Expand Down Expand Up @@ -85,6 +103,9 @@
<ClInclude Include="src\Duin\Core\Maths\src\Quaternion.h">
<Filter>Duin\Core\Maths\src</Filter>
</ClInclude>
<ClInclude Include="src\Duin\Core\Maths\src\Random.h">
<Filter>Duin\Core\Maths\src</Filter>
</ClInclude>
<ClInclude Include="src\Duin\Core\Maths\src\Rectangle.h">
<Filter>Duin\Core\Maths\src</Filter>
</ClInclude>
Expand All @@ -100,9 +121,15 @@
<ClInclude Include="src\Duin\Core\Maths\src\Vector3.h">
<Filter>Duin\Core\Maths\src</Filter>
</ClInclude>
<ClInclude Include="src\Duin\Core\Scene\Object.h">
<Filter>Duin\Core\Scene</Filter>
</ClInclude>
<ClInclude Include="src\Duin\Core\Scene\SceneManager.h">
<Filter>Duin\Core\Scene</Filter>
</ClInclude>
<ClInclude Include="src\Duin\Core\Scene\SharedRef.h">
<Filter>Duin\Core\Scene</Filter>
</ClInclude>
<ClInclude Include="src\Duin\Core\Signal.h">
<Filter>Duin\Core</Filter>
</ClInclude>
Expand Down Expand Up @@ -140,24 +167,38 @@
<Filter>Duin\Object</Filter>
</ClInclude>
<ClInclude Include="src\Duin\Object\Node.h">
<Filter>Duin\Object\Node</Filter>
<Filter>Duin\Object</Filter>
</ClInclude>
<ClInclude Include="src\dnpch.h" />
<ClInclude Include="src\Duin\Assets\Particle2D.h" />
<ClInclude Include="src\Duin\Assets\AssetManager.h" />
<ClInclude Include="src\Duin\Assets\AssetStructs.h" />
<ClInclude Include="src\Duin\Assets\GUID.h" />
<ClInclude Include="src\Duin\Assets\Image.h" />
<ClInclude Include="src\Duin\Core\Scene\Object.h" />
<ClInclude Include="src\Duin\Core\Scene\SharedRef.h" />
<ClInclude Include="src\Duin\Assets\AnimatedSprite2D.h" />
<ClInclude Include="src\Duin\Assets\Sprite2D.h" />
<ClInclude Include="src\Duin\Assets\Texture.h" />
<ClInclude Include="src\Duin\Assets\Asset.h" />
<ClInclude Include="vendor\patches\include\RLWrapper.h" />
<ClInclude Include="src\Duin\Core\Maths\src\Random.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\Duin\Assets\AnimatedSprite2D.cpp">
<Filter>Duin\Assets</Filter>
</ClCompile>
<ClCompile Include="src\Duin\Assets\Asset.cpp">
<Filter>Duin\Assets</Filter>
</ClCompile>
<ClCompile Include="src\Duin\Assets\AssetManager.cpp">
<Filter>Duin\Assets</Filter>
</ClCompile>
<ClCompile Include="src\Duin\Assets\AssetStructs.cpp">
<Filter>Duin\Assets</Filter>
</ClCompile>
<ClCompile Include="src\Duin\Assets\GUID.cpp">
<Filter>Duin\Assets</Filter>
</ClCompile>
<ClCompile Include="src\Duin\Assets\Image.cpp">
<Filter>Duin\Assets</Filter>
</ClCompile>
<ClCompile Include="src\Duin\Assets\Particle2D.cpp">
<Filter>Duin\Assets</Filter>
</ClCompile>
<ClCompile Include="src\Duin\Assets\Sprite2D.cpp">
<Filter>Duin\Assets</Filter>
</ClCompile>
<ClCompile Include="src\Duin\Assets\Texture.cpp">
<Filter>Duin\Assets</Filter>
</ClCompile>
<ClCompile Include="src\Duin\Core\Application.cpp">
<Filter>Duin\Core</Filter>
</ClCompile>
Expand All @@ -173,9 +214,15 @@
<ClCompile Include="src\Duin\Core\Maths\DuinMaths.cpp">
<Filter>Duin\Core\Maths</Filter>
</ClCompile>
<ClCompile Include="src\Duin\Core\Scene\Object.cpp">
<Filter>Duin\Core\Scene</Filter>
</ClCompile>
<ClCompile Include="src\Duin\Core\Scene\SceneManager.cpp">
<Filter>Duin\Core\Scene</Filter>
</ClCompile>
<ClCompile Include="src\Duin\Core\Scene\SharedRef.cpp">
<Filter>Duin\Core\Scene</Filter>
</ClCompile>
<ClCompile Include="src\Duin\Core\Structures\Delaunay.cpp">
<Filter>Duin\Core\Structures</Filter>
</ClCompile>
Expand All @@ -201,19 +248,8 @@
<Filter>Duin\Object</Filter>
</ClCompile>
<ClCompile Include="src\Duin\Object\Node.cpp">
<Filter>Duin\Object\Node</Filter>
<Filter>Duin\Object</Filter>
</ClCompile>
<ClCompile Include="src\dnpch.cpp" />
<ClCompile Include="src\Duin\Assets\AssetManager.cpp" />
<ClCompile Include="src\Duin\Assets\AssetStructs.cpp" />
<ClCompile Include="src\Duin\Assets\GUID.cpp" />
<ClCompile Include="src\Duin\Assets\Image.cpp" />
<ClCompile Include="src\Duin\Core\Scene\Object.cpp" />
<ClCompile Include="src\Duin\Core\Scene\SharedRef.cpp" />
<ClCompile Include="src\Duin\Assets\AnimatedSprite2D.cpp" />
<ClCompile Include="src\Duin\Assets\Sprite2D.cpp" />
<ClCompile Include="src\Duin\Assets\Particle2D.cpp" />
<ClCompile Include="src\Duin\Assets\Texture.cpp" />
<ClCompile Include="src\Duin\Assets\Asset.cpp" />
</ItemGroup>
</Project>
Binary file added Duin/docs/assets/astroids_boids_01.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions ExampleProjects/Astroids/Astroids.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<PreprocessorDefinitions>DN_PLATFORM_WINDOWS;DN_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>DN_PLATFORM_WINDOWS;SUPPORT_GIF_RECORDING;DN_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\Duin\src;..\..\Duin\vendor\patches\include;..\..\Duin\vendor\spdlog\include;..\..\Duin\vendor\raylib5\include;..\..\Duin\vendor\raylib5\src;..\..\Duin\vendor\raylib-cpp\include;..\..\Duin\vendor\imgui;..\..\Duin\vendor\rlgui;..\..\Duin\vendor\entt\single_include;..\..\Duin\vendor\fmt\include;..\..\Duin\vendor\cdt\CDT\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<Optimization>Disabled</Optimization>
Expand All @@ -96,7 +96,7 @@
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<PreprocessorDefinitions>DN_PLATFORM_WINDOWS;DN_RELEASE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>DN_PLATFORM_WINDOWS;SUPPORT_GIF_RECORDING;DN_RELEASE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\Duin\src;..\..\Duin\vendor\patches\include;..\..\Duin\vendor\spdlog\include;..\..\Duin\vendor\raylib5\include;..\..\Duin\vendor\raylib5\src;..\..\Duin\vendor\raylib-cpp\include;..\..\Duin\vendor\imgui;..\..\Duin\vendor\rlgui;..\..\Duin\vendor\entt\single_include;..\..\Duin\vendor\fmt\include;..\..\Duin\vendor\cdt\CDT\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<Optimization>Full</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
Expand All @@ -119,7 +119,7 @@
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<PreprocessorDefinitions>DN_PLATFORM_WINDOWS;DN_DIST;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>DN_PLATFORM_WINDOWS;SUPPORT_GIF_RECORDING;DN_DIST;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\Duin\src;..\..\Duin\vendor\patches\include;..\..\Duin\vendor\spdlog\include;..\..\Duin\vendor\raylib5\include;..\..\Duin\vendor\raylib5\src;..\..\Duin\vendor\raylib-cpp\include;..\..\Duin\vendor\imgui;..\..\Duin\vendor\rlgui;..\..\Duin\vendor\entt\single_include;..\..\Duin\vendor\fmt\include;..\..\Duin\vendor\cdt\CDT\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<Optimization>Full</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
Expand Down
16 changes: 11 additions & 5 deletions ExampleProjects/Astroids/Astroids.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,23 @@
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\Player.h" />
<ClInclude Include="src\Components\Handlers.h" />
<ClInclude Include="src\Components\Components.h" />
<ClInclude Include="src\AstroidCluster.h" />
<ClInclude Include="src\Components\Components.h">
<Filter>Components</Filter>
</ClInclude>
<ClInclude Include="src\Components\Handlers.h">
<Filter>Components</Filter>
</ClInclude>
<ClInclude Include="src\Player.h" />
<ClInclude Include="src\PlayerBoids.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\AstroidCluster.cpp" />
<ClCompile Include="src\Astroids.cpp" />
<ClCompile Include="src\Components\Handlers.cpp">
<Filter>Components</Filter>
</ClCompile>
<ClCompile Include="src\Player.cpp" />
<ClCompile Include="src\AstroidCluster.cpp" />
<ClCompile Include="src\PlayerBoids.cpp" />
<ClCompile Include="src\Components\Handlers.cpp" />
</ItemGroup>
</Project>
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ A small, simple C++ game engine. The goal is to have a small, simple game engine

I wanted an engine, without all the UI, tooling, and extra features that most engines have. While those features can be extremely useful, as someone who likes a code-first approach, most of those features went unused.

![Astroids with Boids](./Duin/docs/assets/astroids_boids_01.gif)

[Documentation](https://y0l042.github.io/DuinEngine/)


Expand Down
2 changes: 2 additions & 0 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ project "Duin"
"DN_PLATFORM_WINDOWS",
"DN_BUILD_DLL",
"IMGUI_IMPL_OPENGL_LOADER_GLAD", --necessary?
"SUPPORT_GIF_RECORDING",
}

postbuildcommands
Expand Down Expand Up @@ -287,6 +288,7 @@ project "Astroids"
defines(global_defines)
defines
{
"SUPPORT_GIF_RECORDING",
}

links(global_links)
Expand Down

0 comments on commit af88290

Please sign in to comment.