feat(game): 添加基础游戏引擎和渲染模块
- 新增游戏引擎核心模块,包括初始化和运行逻辑 - 实现基本的渲染功能,支持控制台输出 - 添加物理引擎基础,包括碰撞检测 - 集成日志系统,用于调试和信息输出 - 创建窗口和输入管理模块
This commit is contained in:
20
game_engine/components/ge_entity.h
Normal file
20
game_engine/components/ge_entity.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef __GE_ENTIRY_H__
|
||||
#define __GE_ENTIRY_H__
|
||||
|
||||
#include "../ge_config.h"
|
||||
#include "../math/ge_vector2i.h"
|
||||
|
||||
typedef struct {
|
||||
uint16_t id;
|
||||
uint16_t components;
|
||||
} ge_entity_t;
|
||||
|
||||
typedef struct {
|
||||
ge_vector2i_t position;
|
||||
unsigned char z;
|
||||
} ge_position_t;
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // __GE_ENTIRY_H__
|
||||
6
game_engine/components/ge_sprite.h
Normal file
6
game_engine/components/ge_sprite.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef __GE_SPRITE_H__
|
||||
#define __GE_SPRITE_H__
|
||||
|
||||
|
||||
|
||||
#endif // __GE_SPRITE_H__
|
||||
Reference in New Issue
Block a user