Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "DxLib.h"
- #include "key.h"
- int stage[4][7][2]; // 盤上のマスの格子点の座標
- int pos[3][6][2]; // キャラ描画座標
- void init_stage() // stage と pos を初期化する
- {
- for (int j = 0; j < 7; j++) {
- int w = (j - 3) * 100, h = 300;
- for (int i = 4; --i >= 0; ) {
- stage[i][j][0] = w + 400, stage[i][j][1] = h - 100;
- w = w * 9 / 10, h = h * 9 / 10;
- }
- }
- for (int i = 0; i < 3; i++)
- for (int j = 0; j < 6; j++) {
- pos[i][j][0] = (stage[i][j][0] + stage[i + 1][j + 1][0]) / 2 - 25;
- pos[i][j][1] = (stage[i][j][1] + stage[i + 1][j + 1][1]) / 2 - 65;
- }
- }
- int White;
- int function_status;//戦闘画面中は1とするための変数function_statusの定義
- int ScreenMode = 0;
- int x = 0;
- int add = 0;
- int NowTime = 0;
- int ChangeTime = 0;
- init_stage(); // stage, pos の初期化
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement