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

📄 bullet.h

📁 Win32项目,类似坦克大战的游戏"忘记喧嚣". 游戏的各系统完整,闪屏,道具.碰撞等等....推荐
💻 H
字号:
// 子弹类
#pragma once
#include <windows.h>
#include <time.h>
#include ".\map.h"

class Bullet
{
public:
	Bullet(HDC hdc, HDC mdc, HDC bufdc);
	~Bullet(void);
	void ShowBullet(void);
	void ShowExplode(int x, int y);
	void SetRect(int x, int y);
	bool BulletHitMap(Map *map, int x, int y);
	bool BulletHitKing(Map *map, int x, int y);

	POINT	b_point;
	bool	b_exit;
	bool    b_exploding;              // 爆炸是否完成
	int		b_xV;					  // 水平速度
	int		b_yV;					  // 垂直速度
	int		b_M;					  // 类型
	RECT	b_rect;
	
private:
	HDC     b_hdc;
	HDC     b_mdc;
	HDC     b_bufdc;
	HBITMAP b_laserMap[4];            // 2种子弹的横,竖
	HBITMAP b_explode;	
	int		b_explodeTurn;
};

⌨️ 快捷键说明

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