Skip to content

Commit

Permalink
- add action to set scrollable speed
Browse files Browse the repository at this point in the history
- add animation.set action
- add BlendMode to sprite and ImageContainers/TexturePacks
- add color to FreeTypeFont
- add CompositeSprite
- add CompositeTexture
- add DC6 image decoder from Worldstone
- add DCC image decoder from Worldstone
- add drawable bringtofront/sendtoback actions
- add horizontalAlign to string Text
- add offsets to imagecontainers
- add palette to BitmapFontTexturePack
- add rapidjson functions to get string and string_view
- add support for diablo 2 fonts
- add support for diablo 2 palettes
- add support to linking without Diablo file format support
- always calculate Panel's draw position and size
- copy sf::text from SFML and add align code to it
- drawable.move
- fix BindableText bug
- fix video hang with diablo2 videos
- increase framerate limit
- proper align string text
- refactor BitmapFont to use vertex array (faster for big texts)
- refactor BitmapText
- refactor Image
- refactor inputEvents to support keyRelease events and combinations of input events
- refactor key press to support repeated key presses
- refactor LoadingScreen to extend Animation
- refactor player walk code
- refactor ScrollableText into generic Scrollable for any UIObject
- refactor Sprite2
- refactor text classes
- refactor TexturePacks and ImageContainers
- remove isIndexed from TexturePack (assume it is, if it has a palette)
- rename player.moveToClick to player.walkToClick
- set window size to be minimum size if lower than minimum size
- store all resources in unordered_multimap
- store songs separate from other resources
- update A*
- update Animation
- update BaseAnimation
- update gsl
- update player animation range to use TexturePacks
- update rapidjson with string_view support
- update refSize and minSize after window is open
- use string_view in ParseUtils
- use texturePacks in images/buttons
- update gamefiles
- add flare player textures for all equipped weapon types in diablo
- initial diablo 2 gamefiles (requires DIABDAT)
- update flare credits
- walk using arrow keys
  • Loading branch information
dgengin committed Jul 31, 2019
1 parent cb6871d commit ff32c34
Show file tree
Hide file tree
Showing 519 changed files with 46,342 additions and 4,466 deletions.
6 changes: 1 addition & 5 deletions .gitignore
Expand Up @@ -23,15 +23,11 @@
/DGEngine
/DIABDAT
/DIABDAT.*
/empyrean_campaign.zip
/FFMPEG*
/FFmpeg*
/gamefiles.zip
/gamefilesd.zip
/gamefilesd/res/icon.png
/gamefileshf.zip
/gamefilesd2/res/icon.png
/gamefileshf/res/icon.png
/fantasycore.zip
/hellfire
/hellfire.*
/hfmonk
Expand Down
48 changes: 36 additions & 12 deletions CMakeLists.txt
Expand Up @@ -14,6 +14,7 @@ endif()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake_modules")

option(DGENGINE_MOVIE_SUPPORT "Enable Movie support" TRUE)
option(DGENGINE_DIABLO_FORMAT_SUPPORT "Enable Diablo 1-2 file format support" TRUE)

if(DGENGINE_MOVIE_SUPPORT)
find_package(FFmpeg COMPONENTS avcodec avformat avutil swscale)
Expand All @@ -33,12 +34,15 @@ set(SOURCE_FILES
src/AudioSource.h
src/BaseAnimation.cpp
src/BaseAnimation.h
src/BindableText.cpp
src/BindableText.h
src/BitmapButton.cpp
src/BitmapButton.h
src/BitmapFont.cpp
src/BitmapFont.h
src/BitmapText.cpp
src/BitmapText.h
src/BlendMode.h
src/Button.cpp
src/Button.h
src/CachedImagePack.cpp
Expand All @@ -47,6 +51,8 @@ set(SOURCE_FILES
src/Circle.h
src/CmdLineUtils.cpp
src/CmdLineUtils.h
src/CompositeTexture.cpp
src/CompositeTexture.h
src/DrawableText.h
src/Dun.cpp
src/Dun.h
Expand All @@ -70,6 +76,7 @@ set(SOURCE_FILES
src/Image.h
src/ImageUtils.cpp
src/ImageUtils.h
src/InputEvent.cpp
src/InputEvent.h
src/InputText.cpp
src/InputText.h
Expand All @@ -94,8 +101,8 @@ set(SOURCE_FILES
src/Rectangle.h
src/ResourceManager.cpp
src/ResourceManager.h
src/ScrollableText.cpp
src/ScrollableText.h
src/Scrollable.cpp
src/Scrollable.h
src/ShaderManager.cpp
src/ShaderManager.h
src/Sol.cpp
Expand All @@ -118,6 +125,7 @@ set(SOURCE_FILES
src/Variable.h
src/VarOrPredicate.h
src/Actions/ActAction.h
src/Actions/ActAnimation.h
src/Actions/ActAudio.h
src/Actions/ActButton.h
src/Actions/ActCondition.h
Expand Down Expand Up @@ -146,6 +154,7 @@ set(SOURCE_FILES
src/Actions/ActQuest.h
src/Actions/ActRandom.h
src/Actions/ActResource.h
src/Actions/ActScrollable.h
src/Actions/ActShader.h
src/Actions/ActSound.h
src/Actions/ActText.h
Expand Down Expand Up @@ -182,8 +191,6 @@ set(SOURCE_FILES
src/Game/Level.h
src/Game/LevelCell.cpp
src/Game/LevelCell.h
src/Game/LevelHelper.cpp
src/Game/LevelHelper.h
src/Game/LevelLayer.h
src/Game/LevelMap.cpp
src/Game/LevelMap.h
Expand Down Expand Up @@ -236,12 +243,6 @@ set(SOURCE_FILES
src/gsl/pointers
src/gsl/span
src/gsl/string_span
src/ImageContainers/CelBaseImageContainer.cpp
src/ImageContainers/CelBaseImageContainer.h
src/ImageContainers/CelImageContainer.cpp
src/ImageContainers/CelImageContainer.h
src/ImageContainers/Cl2ImageContainer.cpp
src/ImageContainers/Cl2ImageContainer.h
src/ImageContainers/ImageContainer.h
src/ImageContainers/SimpleImageContainer.cpp
src/ImageContainers/SimpleImageContainer.h
Expand All @@ -260,6 +261,8 @@ set(SOURCE_FILES
src/Parser/ParseButton.h
src/Parser/ParseCircle.cpp
src/Parser/ParseCircle.h
src/Parser/ParseCompositeTexture.cpp
src/Parser/ParseCompositeTexture.h
src/Parser/ParseCondition.cpp
src/Parser/ParseCondition.h
src/Parser/ParseCursor.cpp
Expand Down Expand Up @@ -301,8 +304,8 @@ set(SOURCE_FILES
src/Parser/ParseRectangle.cpp
src/Parser/ParseRectangle.h
src/Parser/ParserProperties.h
src/Parser/ParseScrollableText.cpp
src/Parser/ParseScrollableText.h
src/Parser/ParseScrollable.cpp
src/Parser/ParseScrollable.h
src/Parser/ParseSound.cpp
src/Parser/ParseSound.h
src/Parser/ParseText.cpp
Expand Down Expand Up @@ -381,6 +384,8 @@ set(SOURCE_FILES
src/rapidjson/internal/swap.h
src/rapidjson/msinttypes/inttypes.h
src/rapidjson/msinttypes/stdint.h
src/SFML/CompositeSprite.cpp
src/SFML/CompositeSprite.h
src/SFML/Image2.h
src/SFML/Music2.cpp
src/SFML/Music2.h
Expand All @@ -390,6 +395,8 @@ set(SOURCE_FILES
src/SFML/SFMLUtils.h
src/SFML/Sprite2.cpp
src/SFML/Sprite2.h
src/SFML/Text2.cpp
src/SFML/Text2.h
src/SFML/View2.cpp
src/SFML/View2.h
src/TexturePacks/BitmapFontTexturePack.cpp
Expand Down Expand Up @@ -443,6 +450,23 @@ else()
add_definitions(-DUSE_SFML_MOVIE_STUB)
endif()

if(DGENGINE_DIABLO_FORMAT_SUPPORT)
SET(SOURCE_FILES ${SOURCE_FILES}
src/Game/LevelHelper.cpp
src/Game/LevelHelper.h
src/ImageContainers/CELImageContainer.cpp
src/ImageContainers/CELImageContainer.h
src/ImageContainers/CL2ImageContainer.cpp
src/ImageContainers/CL2ImageContainer.h
src/ImageContainers/DC6ImageContainer.cpp
src/ImageContainers/DC6ImageContainer.h
src/ImageContainers/DCCImageContainer.cpp
src/ImageContainers/DCCImageContainer.h
)
else()
add_definitions(-DNO_DIABLO_FORMAT_SUPPORT)
endif()

add_executable(${PROJECT_NAME} ${SOURCE_FILES})

target_link_libraries(${PROJECT_NAME} stdc++fs)
Expand Down
7 changes: 5 additions & 2 deletions DGEngine.sln
@@ -1,14 +1,15 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2020
# Visual Studio Version 16
VisualStudioVersion = 16.0.28922.388
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DGEngine", "DGEngine.vcxproj", "{B30255A6-E921-4847-9FB1-26842AB465A4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug Clang|Win32 = Debug Clang|Win32
Debug Code Analysis|Win32 = Debug Code Analysis|Win32
Debug NoDiabloFormatSupport|Win32 = Debug NoDiabloFormatSupport|Win32
Debug NoMovie|Win32 = Debug NoMovie|Win32
Debug|Win32 = Debug|Win32
Release NoMovie|Win32 = Release NoMovie|Win32
Expand All @@ -20,6 +21,8 @@ Global
{B30255A6-E921-4847-9FB1-26842AB465A4}.Debug Clang|Win32.Build.0 = Debug Clang|Win32
{B30255A6-E921-4847-9FB1-26842AB465A4}.Debug Code Analysis|Win32.ActiveCfg = Debug Code Analysis|Win32
{B30255A6-E921-4847-9FB1-26842AB465A4}.Debug Code Analysis|Win32.Build.0 = Debug Code Analysis|Win32
{B30255A6-E921-4847-9FB1-26842AB465A4}.Debug NoDiabloFormatSupport|Win32.ActiveCfg = Debug NoDiabloFormatSupport|Win32
{B30255A6-E921-4847-9FB1-26842AB465A4}.Debug NoDiabloFormatSupport|Win32.Build.0 = Debug NoDiabloFormatSupport|Win32
{B30255A6-E921-4847-9FB1-26842AB465A4}.Debug NoMovie|Win32.ActiveCfg = Debug NoMovie|Win32
{B30255A6-E921-4847-9FB1-26842AB465A4}.Debug NoMovie|Win32.Build.0 = Debug NoMovie|Win32
{B30255A6-E921-4847-9FB1-26842AB465A4}.Debug|Win32.ActiveCfg = Debug|Win32
Expand Down

0 comments on commit ff32c34

Please sign in to comment.