-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscore.h
45 lines (35 loc) · 1.2 KB
/
score.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
45
//=============================================================================
//
// スコア処理 [score.h]
// Author : GP11A132 21 DAYA MAHAPUTRA
//
//=============================================================================
#pragma once
#include "main.h"
#include "renderer.h"
//*****************************************************************************
// マクロ定義
//*****************************************************************************
#define SCORE_MAX (99999) // スコアの最大値
#define SCORE_DIGIT (2) // 桁数
#define SCORE_DX (500.0f) // 表示位置
#define SCORE_DY (20.0f) //
#define SCORE_DW (16.0f) //
#define SCORE_DH (32.0f) //
struct SCORE
{
D3DXVECTOR3 pos; // ポリゴンの座標
float w, h; // 幅と高さ
int texNo; // 使用しているテクスチャ番号
int score; // 得点
};
//*****************************************************************************
// プロトタイプ宣言
//*****************************************************************************
HRESULT InitScore(void);
void UninitScore(void);
void UpdateScore(void);
void DrawScore(void);
int GetScore(void);
void AddScore(int add);
void SetScore(int score);