feat(game_core): 重构游戏引擎并添加新功能
- 重构了游戏引擎的核心逻辑和架构 - 添加了新的实体组件系统(ECS) - 实现了简单的碰撞检测和响应 - 新增了地图和子弹功能 - 优化了输入处理和渲染逻辑 - 调整了游戏控制方式
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
#define GE_PHYSICS_ACCELERATION_BIT 3
|
||||
|
||||
typedef enum {
|
||||
GE_PHYSICS_COMPONENT_TYPE_NONE = 1 << 0,
|
||||
GE_PHYSICS_COMPONENT_TYPE_VELOCITY = 1 << 1,
|
||||
GE_PHYSICS_COMPONENT_TYPE_ACCELERATION = 1 << 2,
|
||||
GE_PHYSICS_COMP_TYPE_NONE = 1 << 0,
|
||||
GE_PHYSICS_COMP_TYPE_VELOCITY = 1 << 1,
|
||||
GE_PHYSICS_COMP_TYPE_ACCELERATION = 1 << 2,
|
||||
} ge_physics_component_type_t;
|
||||
|
||||
typedef struct ge_physics_component {
|
||||
|
||||
Reference in New Issue
Block a user