feat(engine): 重构游戏引擎核心逻辑

- 重新设计了引擎的初始化和运行流程
- 引入了实体组件系统(ECS)和物理系统
- 优化了渲染系统和输入系统
- 移除了不必要的资源管理系统
- 调整了日志系统的实现
This commit is contained in:
ZZY
2025-06-29 18:46:36 +08:00
parent 5ce660e3a6
commit 89bede93a9
37 changed files with 1294 additions and 350 deletions

View File

@@ -0,0 +1,21 @@
#ifndef __GE_PHYSICS_COMPONENT_H__
#define __GE_PHYSICS_COMPONENT_H__
#include <utils/ge_vector2i.h>
#define GE_PHYSICS_VELOCITY_BIT 3
#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_component_type_t;
typedef struct ge_physics_component {
ge_physics_component_type_t type;
ge_vector2i_t velocity;
ge_vector2i_t acceleration;
} ge_physics_component_t;
#endif // __GE_PHYSICS_COMPONENT_H__