Mercurial > hg > old > magoroku_racing
annotate Magoroku.cc @ 119:f2e2460b4011
draw_title
author | e085768 |
---|---|
date | Sun, 19 Jun 2011 02:16:20 +0900 |
parents | 9e4100c5d7ec |
children | 5219bf3d5e71 |
rev | line source |
---|---|
113 | 1 //magoroku 関係ココから |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2 #include "Magoroku.h" |
113 | 3 |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
4 #include <stdio.h> |
115 | 5 #include "game.h" |
113 | 6 #include "libps2.h" |
7 #include "ps2util.h" | |
8 | |
9 #include "sjoy.h" | |
10 //magoroku 関係ココまで | |
11 | |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
12 #include <ctype.h> |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
13 #include <math.h> |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
14 #include <time.h> |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
15 #include <SDL.h> |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
16 #include "SDL_opengl.h" |
112
5106d8d12ded
Changing Magoroku.cc
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
111
diff
changeset
|
17 |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
18 #include "xml.h" |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
19 #include "profile.h" |
113 | 20 //#include "syokika.h" |
112
5106d8d12ded
Changing Magoroku.cc
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
111
diff
changeset
|
21 |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
22 #include "sound.h" |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
23 #include "LoadSprite.h" |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
24 #include <SDL_mixer.h> |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
25 #include "error.h" |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
26 #include "matrix_calc.h" |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
27 |
115 | 28 #include "Light.h" |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
29 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
30 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
31 |
113 | 32 extern bool padCheck(SDL_Joystick *joy); |
33 extern bool keybord(void); | |
117 | 34 |
35 | |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
36 /** |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
37 * runmode: |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
38 * 0 - normal game |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
39 * 1 - capture mode |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
40 * program will capture all pad traces on a play and |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
41 * dump it into a file |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
42 * 2 - trace mode |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
43 * program will run with a trace file which is generated |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
44 * by capture-mode |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
45 */ |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
46 int runmode; |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
47 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
48 SDL_Joystick *joy; |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
49 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
50 const char *usr_help_str = "Usage: ./twice [-length data_length] [-count task_num]\n\ |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
51 -length Number of data (default DATA_NUM (Func.h))\n\ |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
52 -count Number of task (default 1)\n"; |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
53 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
54 Viewer *droot; |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
55 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
56 static int screen_w; |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
57 static int screen_h; |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
58 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
59 //ウィンドウのサイズとかを指定? |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
60 MainLoopPtr |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
61 Magoroku::init(Viewer *sgroot_, int w, int h) |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
62 { |
115 | 63 screen_w = w; |
64 screen_h = h; | |
65 droot = sgroot_; | |
66 return droot; | |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
67 } |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
68 |
115 | 69 Application *application() { |
70 return new Magoroku(); | |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
71 } |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
72 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
73 |
113 | 74 //Magoroku の初期化など |
75 /* timer */ | |
116 | 76 //static int start_time,time_count; |
77 //static int RUNNIG=0; | |
78 //char raptime[10]; | |
113 | 79 |
116 | 80 //static int ranking = 0; |
81 //static LIGHT l; | |
82 //static int i=0; | |
113 | 83 // schedule.ccで使用してる |
84 void linda_env_init( void ); | |
85 | |
86 | |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
87 extern int init(TaskManager *manager, int argc, char *argv[]); |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
88 extern void task_initialize(); |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
89 static void TMend(TaskManager *manager); |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
90 |
113 | 91 |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
92 //class Application の中の virtual bool app_loop( return 1 だけの関数?) を継承 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
93 bool |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
94 Magoroku::app_loop(Viewer *viewer){ |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
95 // don't use allExecute |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
96 return 0; |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
97 }; |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
98 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
99 |
112
5106d8d12ded
Changing Magoroku.cc
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
111
diff
changeset
|
100 /* |
5106d8d12ded
Changing Magoroku.cc
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
111
diff
changeset
|
101 ゲームの分岐。magoroku の schedule の処理と同等と考えてオッケーかな? |
5106d8d12ded
Changing Magoroku.cc
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
111
diff
changeset
|
102 */ |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
103 HTaskPtr |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
104 Magoroku::application_task(HTaskPtr next, Viewer* viewer){ |
115 | 105 |
119 | 106 // magoroku_racing |
115 | 107 game_main(); |
116 | 108 |
109 /* | |
115 | 110 // Dandy |
111 printf("gamef = %d\n",gamef); | |
112 switch (gamef) { | |
113 case 0: gamef= magoroku_main_init(gamef); break; | |
114 case 1: gamef= gamesyokika(gamef); break; | |
115 case 2: gamef= opening(gamef); break; | |
116 case 3: gamef= magoroku_main_loop(gamef); break; | |
117 case 4: gamef= magoroku_closing(gamef); break; | |
118 } | |
116 | 119 */ |
115 | 120 return next; |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
121 }; |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
122 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
123 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
124 static void |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
125 task_init() |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
126 { |
116 | 127 printf("task_init\n"); |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
128 } |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
129 |
116 | 130 FILE *main_fp; |
131 | |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
132 int |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
133 TMmain(TaskManager *manager,int argc, char *argv[]) |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
134 { |
116 | 135 main_fp = fopen("/dev/stdout", "w"); |
136 if (!main_fp) { | |
137 perror("main"); | |
138 } | |
139 | |
140 printf("trace_TMmain\n"); | |
141 | |
115 | 142 for(int i = 1; i<argc ; i++) { |
143 if (strcmp(argv[i],"-t")) { | |
144 if (i+1<argc && argv[i+1]) { | |
145 i++; | |
146 } | |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
147 } |
115 | 148 } |
149 task_init(); | |
150 task_initialize(); | |
151 manager->set_TMend(TMend); | |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
152 |
115 | 153 // magoroku_racing の main.ccから |
154 //game_main(); | |
155 | |
156 return init(manager,argc, argv); | |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
157 } |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
158 |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
159 void |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
160 TMend(TaskManager *manager) |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
161 { |
115 | 162 printf("game end\n"); |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
163 } |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
164 |
116 | 165 //static int light_sysswitch = 0; |
166 //static int light_num = 4; | |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
167 |
115 | 168 |
119 | 169 |
170 static int light_sysswitch = 0; | |
171 static int light_num = 4; | |
172 | |
116 | 173 // ceriumuで同じ変数名があるから _2 って付け足しました |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
174 static void |
116 | 175 LightSysSwitch_2(Viewer *sgroot) { |
106
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
176 if (light_sysswitch == 1) { |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
177 sgroot->OnLightSysSwitch(); |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
178 for (int i = 0; i < light_num; i++) { |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
179 SceneGraphPtr light = sgroot->getLight(i); |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
180 sgroot->OnLightSwitch(i); |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
181 light->xyz[0] = screen_w / 2; |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
182 light->xyz[1] = screen_h / 2; |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
183 light->xyz[2] = -100; |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
184 } |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
185 } else if (light_sysswitch == 0) { |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
186 sgroot->OffLightSysSwitch(); |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
187 } |
0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
188 } |
119 | 189 |