comparison sgoex.c @ 70:cee55c8365e9 default tip

fix
author Kazuma
date Thu, 19 May 2016 18:52:26 +0900
parents 2c85322348cf
children
comparison
equal deleted inserted replaced
69:1c57e38fb9b5 70:cee55c8365e9
30 // int i; /* Multi-purpose */ 30 // int i; /* Multi-purpose */
31 //static int pageno; 31 //static int pageno;
32 32
33 //static int padd; 33 //static int padd;
34 34
35 static const int sgo_tpx[12] =
36 { 0, 64, 128, 192, 256, 320, 0, 64, 128, 192, 256, 320 };
37 static const int sgo_tpy[12] = { 0, 0, 0, 0, 0, 0, 256, 256, 256, 256, 256, 256 };
38 35
39 /* sgo.h 独自の変数形 */ 36 /* sgo.h 独自の変数形 */
40 SpriteTable sptable[DEFOBJ]; 37 SpriteTable sptable[DEFOBJ];
41 // static SpriteView spview[MAXOBJ]; 38 // static SpriteView spview[MAXOBJ];
42 39
43 #define IMAGE_ADJUSTMENT (0) 40 #define IMAGE_ADJUSTMENT (0)
44 41
45 /**
46 * 一つの画像をpageno(page number)で区切るtexture_page_offsetで
47 * pagenoに対応した領域のx,yを用意しておく。PlayStationではpageno
48 * で区切る必要があったのだろうが、PS2では全く意味はなさない。
49 */
50 static const struct texture_page_offset {
51 int x;
52 int y;
53 } texpage_offset[] = {
54 {0, 0}, {128 + IMAGE_ADJUSTMENT, 0}, {256 + IMAGE_ADJUSTMENT, 0}, {384 + IMAGE_ADJUSTMENT, 0}};
55 42
56 /*------------------------------------------------------------- 43 /*-------------------------------------------------------------
57 関数プロトタイプ 44 関数プロトタイプ
58 ---------------------------------------------------------------*/ 45 ---------------------------------------------------------------*/
59 46