Advertisement
Guest User

Untitled

a guest
Oct 26th, 2019
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.84 KB | None | 0 0
  1. #include "DxLib.h"
  2. #include "key.h"
  3.  
  4.  
  5. int stage[4][7][2];  // 盤上のマスの格子点の座標
  6. int pos[3][6][2];    // キャラ描画座標
  7.  
  8. void init_stage()  // stage と pos を初期化する
  9. {
  10.     for (int j = 0; j < 7; j++) {
  11.         int w = (j - 3) * 100, h = 300;
  12.         for (int i = 4; --i >= 0; ) {
  13.             stage[i][j][0] = w + 400, stage[i][j][1] = h - 100;
  14.             w = w * 9 / 10, h = h * 9 / 10;
  15.         }
  16.     }
  17.     for (int i = 0; i < 3; i++)
  18.         for (int j = 0; j < 6; j++) {
  19.             pos[i][j][0] = (stage[i][j][0] + stage[i + 1][j + 1][0]) / 2 - 25;
  20.             pos[i][j][1] = (stage[i][j][1] + stage[i + 1][j + 1][1]) / 2 - 65;
  21.         }
  22. }
  23.  
  24. int White;
  25. int function_status;//戦闘画面中は1とするための変数function_statusの定義
  26.  
  27.  
  28. int ScreenMode = 0;
  29. int x = 0;
  30. int add = 0;
  31. int NowTime = 0;
  32. int ChangeTime = 0;
  33.  
  34. init_stage(); // stage, pos の初期化
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement