-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbullet.h
44 lines (35 loc) · 1.37 KB
/
bullet.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//=============================================================================
//
// バレット処理 [bullet.h]
// Author : GP11A132 21 DAYA MAHAPUTRA
//
//=============================================================================
#pragma once
#include "main.h"
#include "renderer.h"
//*****************************************************************************
// マクロ定義
//*****************************************************************************
#define BULLET_MAX (1) // バレットのMax数
#define BULLET_SPEED (4.0f) // バレットの移動スピード
// バレット構造体
struct BULLET
{
BOOL use; // true:使っている false:未使用
float w, h; // 幅と高さ
D3DXVECTOR3 pos; // バレットの座標
D3DXVECTOR3 targetPos; // ターゲットの座標
D3DXVECTOR3 rot; // バレットの回転量
int countAnim; // アニメーションカウント
int patternAnim; // アニメーションパターンナンバー
int texNo; // 何番目のテクスチャーを使用するのか
};
//*****************************************************************************
// プロトタイプ宣言
//*****************************************************************************
HRESULT InitBullet(void);
void UninitBullet(void);
void UpdateBullet(void);
void DrawBullet(void);
BULLET *GetBullet(void);
void SetBullet(D3DXVECTOR3 pos, D3DXVECTOR3 targetPos);