Skip to content

Commit

Permalink
+Window version
Browse files Browse the repository at this point in the history
~Fix many bugs;
  • Loading branch information
Korotsu committed Jun 30, 2021
0 parents commit 94a2abe
Show file tree
Hide file tree
Showing 151 changed files with 44,086 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.vs/
x64/
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Hard-Rock Tower Defense

----
## what is Hard-Rock Tower Defense?

> Hard-Rock Tower Defense is the name of the game realized by William Nardone for a student project in which they have to make a Tower Defense game like. Based on hard-rock style and music, the target of the game is everyone who love hard-rock music and want to play to a little classic tower defense game.
----
## Features
* A procedural wave generator
* Drag and Drop of turret
* Money System
* Pathfinding
* Multiple type and size of turret and enemies
* Hard-Rock Style and theme along the game

----
## Build & Run

1.Clone the git or download the .zip file.

2.extract all your files on a folder.

3.Build the game then make him run with the command :

make && ./tower

4.Rock ! <3

----
## ToDo
* Complete the level editor.
* Add more type of enemies and towers.
* Add some magical mechanics and musicals mechanics the important one named Satan's Rhythms which can impact the game with random events that can change the during of the game.
* Add more beautiful and detailed sprites.
* Animations.
* news game modes.
* High-scores.
* Tutorials.
* Game controls setting menu.
* Add some virtual sound effects in the game.
* Etc

----
## Status
**Under development.**
Binary file added SDL2.dll
Binary file not shown.
Binary file added SDL2_image.dll
Binary file not shown.
Binary file added SDL2_mixer.dll
Binary file not shown.
Binary file added SDL2_ttf.dll
Binary file not shown.
31 changes: 31 additions & 0 deletions TowerDefense.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31424.327
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TowerDefense", "TowerDefense.vcxproj", "{CFF88A65-4927-495F-B2AB-3BB08ED89211}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CFF88A65-4927-495F-B2AB-3BB08ED89211}.Debug|x64.ActiveCfg = Debug|x64
{CFF88A65-4927-495F-B2AB-3BB08ED89211}.Debug|x64.Build.0 = Debug|x64
{CFF88A65-4927-495F-B2AB-3BB08ED89211}.Debug|x86.ActiveCfg = Debug|Win32
{CFF88A65-4927-495F-B2AB-3BB08ED89211}.Debug|x86.Build.0 = Debug|Win32
{CFF88A65-4927-495F-B2AB-3BB08ED89211}.Release|x64.ActiveCfg = Release|x64
{CFF88A65-4927-495F-B2AB-3BB08ED89211}.Release|x64.Build.0 = Release|x64
{CFF88A65-4927-495F-B2AB-3BB08ED89211}.Release|x86.ActiveCfg = Release|Win32
{CFF88A65-4927-495F-B2AB-3BB08ED89211}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A98719CD-19F2-4D66-9C22-A7846A07AA1A}
EndGlobalSection
EndGlobal
182 changes: 182 additions & 0 deletions TowerDefense.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" 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>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\Blueprints.cpp" />
<ClCompile Include="src\Death_screen.cpp" />
<ClCompile Include="src\Game.cpp" />
<ClCompile Include="src\int_to_alpha.cpp" />
<ClCompile Include="src\main_process.cpp" />
<ClCompile Include="src\my_maths.cpp" />
<ClCompile Include="src\my_put_char.cpp" />
<ClCompile Include="src\my_put_string.cpp" />
<ClCompile Include="src\string_length.cpp" />
<ClCompile Include="src\Title_screen.cpp" />
<ClCompile Include="src\TowerDefense.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="include\alpha_to_number.h" />
<ClInclude Include="include\Blueprints.h" />
<ClInclude Include="include\Death_screen.h" />
<ClInclude Include="include\Game.h" />
<ClInclude Include="include\int_to_alpha.h" />
<ClInclude Include="include\main_process.h" />
<ClInclude Include="include\my_maths.h" />
<ClInclude Include="include\my_put_char.h" />
<ClInclude Include="include\my_put_string.h" />
<ClInclude Include="include\string_length.h" />
<ClInclude Include="include\Title_screen.h" />
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>16.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{cff88a65-4927-495f-b2ab-3bb08ed89211}</ProjectGuid>
<RootNamespace>TowerDefense</RootNamespace>
<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>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</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>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<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|x64'">
<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'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>$(SolutionDir)\include;$(SolutionDir)\third_party\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(SolutionDir)\third_party\libs;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>$(SolutionDir)third_party\libs\SDL2.lib;$(SolutionDir)third_party\libs\SDL2_image.lib;$(SolutionDir)third_party\libs\SDL2_mixer.lib;$(SolutionDir)third_party\libs\SDL2_ttf.lib;$(SolutionDir)third_party\libs\SDL2main.lib;$(SolutionDir)third_party\libs\SDL2test.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>$(SolutionDir)\include;$(SolutionDir)\third_party\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(SolutionDir)\third_party\libs;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>$(SolutionDir)third_party\libs\SDL2.lib;$(SolutionDir)third_party\libs\SDL2_image.lib;$(SolutionDir)third_party\libs\SDL2_mixer.lib;$(SolutionDir)third_party\libs\SDL2_ttf.lib;$(SolutionDir)third_party\libs\SDL2main.lib;$(SolutionDir)third_party\libs\SDL2test.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>$(SolutionDir)\include;$(SolutionDir)\third_party\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(SolutionDir)\third_party\libs;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>$(SolutionDir)third_party\libs\SDL2.lib;$(SolutionDir)third_party\libs\SDL2_image.lib;$(SolutionDir)third_party\libs\SDL2_mixer.lib;$(SolutionDir)third_party\libs\SDL2_ttf.lib;$(SolutionDir)third_party\libs\SDL2main.lib;$(SolutionDir)third_party\libs\SDL2test.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>$(SolutionDir)\include;$(SolutionDir)\third_party\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(SolutionDir)\third_party\libs;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>$(SolutionDir)third_party\libs\SDL2.lib;$(SolutionDir)third_party\libs\SDL2_image.lib;$(SolutionDir)third_party\libs\SDL2_mixer.lib;$(SolutionDir)third_party\libs\SDL2_ttf.lib;$(SolutionDir)third_party\libs\SDL2main.lib;$(SolutionDir)third_party\libs\SDL2test.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
87 changes: 87 additions & 0 deletions TowerDefense.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Fichiers sources">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Fichiers d%27en-tête">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Fichiers de ressources">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\Death_screen.cpp">
<Filter>Fichiers sources</Filter>
</ClCompile>
<ClCompile Include="src\Game.cpp">
<Filter>Fichiers sources</Filter>
</ClCompile>
<ClCompile Include="src\int_to_alpha.cpp">
<Filter>Fichiers sources</Filter>
</ClCompile>
<ClCompile Include="src\main_process.cpp">
<Filter>Fichiers sources</Filter>
</ClCompile>
<ClCompile Include="src\my_maths.cpp">
<Filter>Fichiers sources</Filter>
</ClCompile>
<ClCompile Include="src\my_put_char.cpp">
<Filter>Fichiers sources</Filter>
</ClCompile>
<ClCompile Include="src\my_put_string.cpp">
<Filter>Fichiers sources</Filter>
</ClCompile>
<ClCompile Include="src\string_length.cpp">
<Filter>Fichiers sources</Filter>
</ClCompile>
<ClCompile Include="src\TowerDefense.cpp">
<Filter>Fichiers sources</Filter>
</ClCompile>
<ClCompile Include="src\Blueprints.cpp">
<Filter>Fichiers sources</Filter>
</ClCompile>
<ClCompile Include="src\Title_screen.cpp">
<Filter>Fichiers sources</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="include\alpha_to_number.h">
<Filter>Fichiers d%27en-tête</Filter>
</ClInclude>
<ClInclude Include="include\Blueprints.h">
<Filter>Fichiers d%27en-tête</Filter>
</ClInclude>
<ClInclude Include="include\Death_screen.h">
<Filter>Fichiers d%27en-tête</Filter>
</ClInclude>
<ClInclude Include="include\Game.h">
<Filter>Fichiers d%27en-tête</Filter>
</ClInclude>
<ClInclude Include="include\int_to_alpha.h">
<Filter>Fichiers d%27en-tête</Filter>
</ClInclude>
<ClInclude Include="include\main_process.h">
<Filter>Fichiers d%27en-tête</Filter>
</ClInclude>
<ClInclude Include="include\my_maths.h">
<Filter>Fichiers d%27en-tête</Filter>
</ClInclude>
<ClInclude Include="include\my_put_char.h">
<Filter>Fichiers d%27en-tête</Filter>
</ClInclude>
<ClInclude Include="include\my_put_string.h">
<Filter>Fichiers d%27en-tête</Filter>
</ClInclude>
<ClInclude Include="include\string_length.h">
<Filter>Fichiers d%27en-tête</Filter>
</ClInclude>
<ClInclude Include="include\Title_screen.h">
<Filter>Fichiers d%27en-tête</Filter>
</ClInclude>
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions TowerDefense.vcxproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
</Project>
17 changes: 17 additions & 0 deletions include/Blueprints.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#if !defined(BLUEPRINTS_H)
#define BLUEPRINTS_H

#include <string>
#include <vector>
#include <SDL_rect.h>

namespace shape
{
std::string get_map_list_blueprint();
std::vector<float> get_sword_blueprint();
std::vector<float> get_shield_blueprint();
std::vector<float> get_cross_blueprint();
} // namespace shape


#endif // BLUEPRINTS_H
11 changes: 11 additions & 0 deletions include/Death_screen.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#ifndef DEATH_SCREEN_H
#define DEATH_SCREEN_H
#include "main_process.h"

void print_wawe_number_reach(screen* screen);

void text_init_d(screen* sc);

void death_screen(screen* sc, Time* t);

#endif
Loading

0 comments on commit 94a2abe

Please sign in to comment.