This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
2022-02-07 21:38:35 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "tinyengine/tinyengine.hpp"
|
|
|
|
#include "game/quick_list.hpp"
|
|
|
|
|
|
|
|
extern Context ECSContext;
|
|
|
|
extern SystemManager SystemMgr;
|
2022-02-08 21:02:52 +08:00
|
|
|
extern Unique<TileSheet> GameTileSheet;
|
2022-02-07 21:38:35 +08:00
|
|
|
extern std::unordered_map<std::string, Unique<Sound>> Sounds;
|
|
|
|
|
|
|
|
extern QuickList<Entity*> Bullets;
|
2022-02-08 21:02:52 +08:00
|
|
|
extern QuickList<Entity*> Entities;
|
2022-02-07 21:38:35 +08:00
|
|
|
|
2022-02-09 16:44:09 +08:00
|
|
|
extern Entity* PlayerSpaceship;
|
|
|
|
|
2022-02-07 21:38:35 +08:00
|
|
|
void LoadResources();
|
2022-02-09 16:44:09 +08:00
|
|
|
Point MapGlobal2PlayerCoord(const Point& pos);
|
2022-02-09 22:33:06 +08:00
|
|
|
Point MapPlayerCoord2Global(const Point& pos);
|