feat(game_core): 重构游戏引擎并添加新功能
- 重构了游戏引擎的核心逻辑和架构 - 添加了新的实体组件系统(ECS) - 实现了简单的碰撞检测和响应 - 新增了地图和子弹功能 - 优化了输入处理和渲染逻辑 - 调整了游戏控制方式
This commit is contained in:
15
game_core/entities/tilemap.h
Normal file
15
game_core/entities/tilemap.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef __TILEMAP_H__
|
||||
#define __TILEMAP_H__
|
||||
|
||||
#include "../ge_color.h"
|
||||
#include "layer.h"
|
||||
#include <ecs/ge_entity.h>
|
||||
#include <pynic_log/pynic_log.h>
|
||||
|
||||
#define TILEMAP_SIZE 8
|
||||
#define TILEMAP_X_WIDTH 16
|
||||
#define TILEMAP_Y_HEIGHT 14
|
||||
|
||||
void init_tilemap(ge_ecs_t* ecs, ge_entity_t **_tilemap);
|
||||
|
||||
#endif // __TILEMAP_H__
|
||||
Reference in New Issue
Block a user