⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 world.h

📁 这是一款2d游戏引擎
💻 H
字号:

#ifndef header_world
#define header_world

#if _MSC_VER > 1000
#pragma once
#endif

#include "gameobject.h"
#include "gameobject_pacman.h"
#include "map.h"

class World
{
//!Construction:
public:
	World(CL_ResourceManager *resources);

	~World();

//!Attributes:
public:
	CL_ResourceManager *resources;
	
	Map *map;

	std::list<GameObject*> objects;

	GameObject_Pacman *player;

	int score;
	
	bool quit;

//!Operations:
public:
	void run(CL_DisplayWindow &window);

//!Implementation:
private:
	void on_key_down(const CL_InputEvent &key);

	int view_x, view_y;

	CL_Font fnt_clansoft;
	
	CL_SoundBuffer sample;
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -