feat(game): 添加基础游戏引擎和渲染模块

- 新增游戏引擎核心模块,包括初始化和运行逻辑
- 实现基本的渲染功能,支持控制台输出
- 添加物理引擎基础,包括碰撞检测
- 集成日志系统,用于调试和信息输出
- 创建窗口和输入管理模块
This commit is contained in:
ZZY
2025-06-24 02:16:01 +08:00
commit 5ce660e3a6
30 changed files with 2056 additions and 0 deletions

27
game_engine/ge_config.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef __GE_CONFIG_H__
#define __GE_CONFIG_H__
#define GE_VEC2_USE_SHORT_NAMES
#include <stdint.h>
#include <stdbool.h>
typedef int8_t ge_i8_t;
typedef int16_t ge_i16_t;
typedef int32_t ge_i32_t;
typedef uint8_t ge_u8_t;
typedef uint16_t ge_u16_t;
typedef uint32_t ge_u32_t;
typedef intptr_t ge_iptr_t;
typedef uintptr_t ge_uptr_t;
typedef int ge_int_t;
typedef unsigned int ge_uint_t;
typedef uint32_t ge_size_t;
typedef uint32_t ge_color_t;
typedef ge_uint_t ge_uid_t;
#endif // __GE_CONFIG_H__