diff --git a/README.md b/README.md index 11612718..3ecf7382 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,25 @@ # Easy2D -Easy2D 为 C++ 初学者提供 Windows 桌面游戏的开发框架,简单易学,容易上手。你只需要为游戏场景中的每一个元素设置它们的属性,Easy2D 就可以自动处理它们,让一切变得井然有序。 +## Introduction +Easy2D is a open-source 2D C++ game engine, only support win32 platform. +Easy2D-Core is a game irrelevant lib that provide a lot useful tools can be used in other projects. I made a lot wheels to make cpp simpler to use. +Easy2D is still under heavy developing. I write it and use it to developy my own tiny games. +More docs and examples will be added later. -中文官网:[www.easy2d.cn](http://www.easy2d.cn) \ No newline at end of file +## Features +* Scene management +* Transitions between scenes +* Actions behaviours +* Buttons and menus +* Texture atlas support +* Audio support +* Custom data storage +* Direct2D based + +## Next plan +* Physical engine +* Particle system + +## Contact +* Website: www.easy2d.cn +* QQ Group: 608406540 diff --git a/core/Node/ENode.cpp b/core/Node/ENode.cpp index 15e83c30..01890067 100644 --- a/core/Node/ENode.cpp +++ b/core/Node/ENode.cpp @@ -97,8 +97,8 @@ void e2d::ENode::_update() { this->_sortChildren(); - UINT size = m_vChildren.size(); - UINT i; + size_t size = m_vChildren.size(); + size_t i; for (i = 0; i < size; i++) { auto child = m_vChildren[i]; @@ -597,7 +597,7 @@ std::vector& e2d::ENode::getChildren() return m_vChildren; } -UINT e2d::ENode::getChildrenCount() const +size_t e2d::ENode::getChildrenCount() const { return m_vChildren.size(); } @@ -636,8 +636,8 @@ bool e2d::ENode::removeChild(ENode * child) if (child) { - UINT size = m_vChildren.size(); - for (UINT i = 0; i < size; i++) + size_t size = m_vChildren.size(); + for (size_t i = 0; i < size; i++) { if (m_vChildren[i] == child) { @@ -668,8 +668,8 @@ void e2d::ENode::removeChild(const EString & childName) // Hash ֵ unsigned int hash = childName.hash(); - UINT size = m_vChildren.size(); - for (UINT i = 0; i < size; i++) + size_t size = m_vChildren.size(); + for (size_t i = 0; i < size; i++) { auto child = m_vChildren[i]; if (child->m_nHashName == hash && child->m_sName == childName) diff --git a/project/vs2017/Easy2D.sln b/project/vs2017/Easy2D.sln index 41abced5..c4734e48 100644 --- a/project/vs2017/Easy2D.sln +++ b/project/vs2017/Easy2D.sln @@ -1,26 +1,19 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.26730.12 +VisualStudioVersion = 15.0.27004.2009 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Easy2D", "Easy2D.vcxproj", "{FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}" 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 - {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|x64.ActiveCfg = Debug|x64 - {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|x64.Build.0 = Debug|x64 - {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|x64.Deploy.0 = Debug|x64 {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|x86.ActiveCfg = Debug|Win32 {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|x86.Build.0 = Debug|Win32 {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|x86.Deploy.0 = Debug|Win32 - {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Release|x64.ActiveCfg = Release|x64 - {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Release|x64.Build.0 = Release|x64 {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Release|x86.ActiveCfg = Release|Win32 {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Release|x86.Build.0 = Release|Win32 EndGlobalSection diff --git a/project/vs2017/Easy2D.vcxproj b/project/vs2017/Easy2D.vcxproj index fc4ec006..06645478 100644 --- a/project/vs2017/Easy2D.vcxproj +++ b/project/vs2017/Easy2D.vcxproj @@ -49,6 +49,7 @@ false false Unicode + v141