Commit Graph

313 Commits

Author SHA1 Message Date
Nomango 084671fa1c 使用工厂方法模式管理对象 2018-05-17 12:22:52 +08:00
Nomango 012c7aad50 细节调整 2018-05-15 23:59:58 +08:00
Nomango 2c13083c09 细节优化 2018-05-14 22:51:40 +08:00
Nomango 6d45a70ff2 将Game::createMutex函数整合到Game::init中 2018-05-14 00:57:16 +08:00
Nomango d125e5cf5b 修复无效的动作倒转 2018-05-14 00:36:01 +08:00
Nomango 2528e41a58 细节调整 2018-05-10 20:23:32 +08:00
Nomango b5e6650566 Window类增加弹窗功能;修复Action重置时间处的Bug 2018-05-10 18:18:02 +08:00
Nomango 77d064a0c4 移除va_list和std::initializer_list两种添加多个对象的方法,统一为std::vector 2018-05-10 17:02:18 +08:00
Nomango 01882e73d4 性能优化 2018-05-10 14:16:36 +08:00
Nomango 50825ba00d 增加JumpBy和JumpTo动作 2018-05-10 14:03:54 +08:00
Nomango f66a56e028 新增Animate类;细节调整 2018-05-10 00:58:43 +08:00
Nomango 4a62b2a5bf 细节调整;去除Transition构造器 2018-05-09 00:34:15 +08:00
Nomango 83a90fcb0e Action类重命名;去除Action构造器 2018-05-08 20:03:29 +08:00
Nomango f9181a2080 细节调整 2018-05-08 17:40:36 +08:00
Nomango a18ff4295d 细节调整 2018-05-08 11:37:11 +08:00
Nomango 718b1b1a1a 增加Node::setPosFixed方法,使节点坐标固定 2018-05-07 17:15:57 +08:00
Nomango fe9d155779 增加Window::setCursor函数修改鼠标指针样式;鼠标移入按钮时自动变换样式 2018-05-07 17:03:59 +08:00
Nomango 6336c979c9 函数参数中的String替换为const String& 2018-05-07 15:48:06 +08:00
Haibo d311461a48 修复窗口设置过大时不显示窗口的BUG 2018-05-05 22:58:35 +08:00
Haibo 24dbd42970 不再自动关闭控制台;不再禁用Circle和Ellipse的修改宽高函数;同步工程文件。 2018-05-03 22:21:01 +08:00
Nomango 6797570015 增加字符串相关操作 2018-05-01 17:19:55 +08:00
Nomango 904218e74d 新增Action生成器和Transition生成器 2018-04-30 16:49:44 +08:00
Nomango 69f6172fa0 增加从程序资源读取音乐的功能 2018-04-27 17:27:05 +08:00
Nomango 2eb845a4df 重做Music类,去除MusicManager 2018-04-27 17:07:47 +08:00
Nomango 264a85b80e 增加从资源加载图片的功能;修复可以手动修改窗口大小的Bug; 2018-04-27 00:16:14 +08:00
Nomango fca3ba9f25 增加Path类初始化 2018-04-26 21:47:56 +08:00
Nomango 245a6c6e71 将部分枚举类型替换为强枚举类型 2018-04-24 21:22:34 +08:00
Nomango 52bfa595ad 从master上移除vs2010支持 2018-04-24 20:22:41 +08:00
Nomango 47b63b70b3 VS project配置更新 2018-04-24 18:23:03 +08:00
Nomango da08f33a02 监听器重做 2018-04-24 13:28:21 +08:00
Nomango f5185f5630 Game初始化失败时自动回收资源;Music类初始化过程修改;节点二维矩阵转换方法修改 2018-04-24 10:35:58 +08:00
Nomango 0614701a30 Timer定时器类重做 2018-04-24 09:02:06 +08:00
Nomango 04920b6b06 VS2010、2012、2013项目配置更新 2018-04-23 17:59:46 +08:00
Nomango 927d019838 更新 e2dmacros.h 2018-04-23 00:05:57 +08:00
Nomango 8439c09976 判断节点是否碰撞及点是否在节点内时,不再判断其子节点 2018-04-22 17:08:41 +08:00
Nomango d6e2ca919b 调整渲染FPS时的细节 2018-04-22 16:14:04 +08:00
Nomango e318679d3d 增加伪函数类Function 2018-04-22 15:52:46 +08:00
Nomango 6578751de4 Text部分方法命名改动 2018-04-22 14:08:29 +08:00
Nomango 40ad1c7282 增加颜色类,包含rgba四个属性 2018-04-22 13:15:57 +08:00
Nomango eb8b7e5f7e 增加Text描边功能(包括描边颜色、线宽、相交线样式) 2018-04-22 00:33:20 +08:00
Nomango f215632e60 添加CustomTextRenderer类,用于实现文字描边功能 2018-04-21 23:09:59 +08:00
Nomango 6d7550608c 更改所有头文件名称 2018-04-21 21:24:46 +08:00
Nomango c8abe14a8d 增加NodeProperty结构体,可以直接获取和设置节点的所有属性 2018-04-21 18:42:07 +08:00
Nomango b2e655226b 修复了无法完全回收游戏资源的问题 2018-04-21 18:22:01 +08:00
Nomango afc17339b1 修复未释放用于显示FPS的TextFormat的bug 2018-04-21 00:47:40 +08:00
Nomango 3d00ae7189 Game::start增加bool参数,为true时自动在游戏结束时回收资源 2018-04-21 00:46:26 +08:00
Nomango afb24f7a32 修复一些细节问题 2018-04-19 17:18:44 +08:00
Nomango 08f57430d3 struct Point and struct Size overloaded operator - 2018-04-17 13:26:50 +08:00
Nomango 3fe75c7325 new feature: show fps 2018-04-17 11:41:33 +08:00
Nomango 9ac4acb50e resorm class Transition 2018-04-17 01:11:56 +08:00
Nomango c135168491 Modify some functions in class Game and Window 2018-04-13 00:39:27 +08:00
Nomango 48ae177f1d bug fixed 2018-04-09 18:41:56 +08:00
Nomango ead3e52cef new feature: use Text::getLineCount to get the number of rows 2018-04-09 01:07:49 +08:00
Nomango 15e039f278 refactor functions 2018-04-06 11:31:24 +08:00
Nomango fff3e8c370 bug fixed 2018-04-03 11:12:30 +08:00
Nomango 3794cef124 update action functions 2018-04-03 09:34:38 +08:00
Nomango b1dcc466f3 update project files 2018-04-02 23:40:08 +08:00
Nomango 02ccbff4eb new feature: shape
Shape change into collider
2018-04-02 23:01:38 +08:00
Nomango 1fb8d761e6 vs2010 supported 2018-04-01 23:08:11 +08:00
Nomango 32126a723a fixed revert 2018-04-01 13:28:32 +08:00
Nomango b318b84860 Revert "fixed _MSC_VER"
This reverts commit 8a9d9a4f10.
2018-04-01 13:22:15 +08:00
Nomango 8a9d9a4f10 fixed _MSC_VER 2018-04-01 13:18:35 +08:00
Nomango 0223ad2b93 vs2012 supported 2018-04-01 13:16:07 +08:00
Nomango 3ae122bc97 update project files 2018-04-01 00:33:35 +08:00
Nomango 486ca4f848 update Shape 2018-04-01 00:04:33 +08:00
Nomango dee2010e7c update enum constants 2018-03-31 22:34:18 +08:00
Nomango 2daa4d49ad update collision detection method
Using initializer_list to implement variable parameters. Add InputListener & CollisionListener.
2018-03-31 18:12:01 +08:00
Nomango e78f8795e7 update Shape
Now you can directly set the shape of nodes by Shape::TYPE. The subclasses of Shape are prefixed with 'Shape'.
2018-03-31 11:59:51 +08:00
Nomango 4b677e727e update Text
remove function Text::setWrappingEnable
2018-03-31 00:02:30 +08:00
Nomango 93a08d6b7e Text changes
Font changes into struct. class Text has some new features.
2018-03-30 23:37:42 +08:00
Nomango 9bef38091f update class Text
new feature: Text alignment, underline, strikethrough, line spacing. Remove Text::setWrappingEnable.
2018-03-30 01:41:29 +08:00
Nomango 8c9deb5dea supplement 2018-03-29 13:42:22 +08:00
Nomango 785dbf9b65 The callback function is changed to a function object 2018-03-28 17:56:04 +08:00
Nomango 213b174dac add actions functions 2018-03-27 18:46:18 +08:00
Nomango af73a5df92 new feature: String::format 2018-03-22 18:25:56 +08:00
Nomango ee91fafd6e Bug to judge collision crash when no shape is repaired 2018-03-14 15:33:58 +08:00
Nomango c8a499ece0 Data class adds field functions 2018-03-13 23:35:00 +08:00
Nomango 0a80483ba6 Collision detection will not be opened by default, and use ShapeManager::setCollisionEnable to enable it. 2018-03-13 13:13:26 +08:00
Nomango 6909067a60 Remove String::append function 2018-03-12 15:55:41 +08:00
Nomango 24ab490804 fixed String bugs 2018-03-12 13:42:49 +08:00
Nomango b853bb76cf New class Listener;Fixed String bugs;class File rename to Path. 2018-03-11 23:56:40 +08:00
Nomango a1ba470e94 fixed bugs 2018-03-08 15:03:12 +08:00
Nomango cddfd5b5cd Node has a default shape now. 2018-03-07 20:14:58 +08:00
Nomango b583ad562f delete some unreferenced functions 2018-03-06 22:39:15 +08:00
Nomango 4ae567eab5 new attribute of Action: name 2018-03-06 09:56:17 +08:00
Nomango 97a7944087 fixed bugs 2018-03-05 00:17:33 +08:00
Nomango 9537a5b50d fixed bugs 2018-03-04 13:30:52 +08:00
Nomango 05450175a3 significant update about Timer class 2018-03-03 17:02:08 +08:00
Nomango 627f04d7ce rename some protected functions 2018-03-03 11:46:57 +08:00
Nomango 49783dbf8d Update MusicManager 2018-03-02 23:49:57 +08:00
Nomango 2e88860b32 String::getHash rename String::getHashCode 2018-03-01 23:47:42 +08:00
Nomango 6331a4c111 fixed bugs 2018-03-01 19:28:22 +08:00
Nomango d0c167360e new feature: singleton process 2018-03-01 00:19:09 +08:00
Nomango bca9f6f792 new feature: Data::saveBool & Data::getBool 2018-02-28 19:46:03 +08:00
Nomango d0733b01e2 ANSI String support 2018-02-28 19:17:15 +08:00
Nomango 22fba22dcc All float to double 2018-02-27 21:07:43 +08:00
Nomango 915f574b76 Normalization of String class 2018-02-27 16:32:17 +08:00
Nomango bdfb03dc1d class Button will never modify the pivot of its child automatically. 2018-02-14 20:38:50 +08:00
Nomango 741ebefb25 fixed the problem of non - standard code 2018-02-11 20:55:52 +08:00
Nomango eb91257747 fixed transform bug 2018-02-11 20:48:56 +08:00
Nomango fdf903269b Timer and TimeManager have a new interface. 2018-02-07 16:37:12 +08:00
Nomango 556f8f76de fixed bugs about buttons. 2018-02-06 21:11:54 +08:00
Nomango 7d36ea26fd fixed bugs about actions. 2018-02-06 15:34:47 +08:00
Nomango 6319ed7f2b perfect the pause function. 2018-02-04 21:24:27 +08:00
Nomango f6eecee3aa new feature: shape and collision. 2018-02-03 22:04:43 +08:00
Nomango 1a52f19dd4 remove vs2010 project 2018-02-02 10:06:29 +08:00
Nomango 9b4967d3c0 fix macro bugs. 2018-02-01 22:22:29 +08:00
Nomango 342b8e050a New feature: XAudio2. 2018-02-01 22:07:44 +08:00
Nomango 71b39a8149 fixed bugs. 2018-02-01 09:38:25 +08:00
Nomango c79ba16d29 update a lot of new features. 2018-01-30 16:45:38 +08:00
Nomango b71119548a fixed bugs 2017-12-16 15:49:48 +08:00
Nomango 1fe020a618 update introduction 2017-12-15 23:15:06 +08:00
Nomango c4f0555bec Restructured project 2017-12-15 21:51:07 +08:00