feat(game_core): 重构游戏引擎并添加新功能
- 重构了游戏引擎的核心逻辑和架构 - 添加了新的实体组件系统(ECS) - 实现了简单的碰撞检测和响应 - 新增了地图和子弹功能 - 优化了输入处理和渲染逻辑 - 调整了游戏控制方式
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
* @brief 2D整数向量库 (仿Godot Vector2i设计) 不依赖任何库的单文件
|
||||
* @defgroup Vector2 2D向量操作
|
||||
*/
|
||||
#include <stdint.h>
|
||||
typedef int32_t ge_unit_t; /**< 坐标值类型定义 */
|
||||
|
||||
// #define GE_VEC2I_USE_SHORT_NAMES
|
||||
|
||||
@@ -14,7 +16,6 @@
|
||||
#undef GE_ABS
|
||||
#define GE_ABS(x) ((x) > 0 ? (x) : -(x))
|
||||
#endif
|
||||
typedef int32_t ge_unit_t; /**< 坐标值类型定义 */
|
||||
|
||||
/**
|
||||
* @struct ge_vector2_t
|
||||
|
||||
Reference in New Issue
Block a user