wwww
Révision | c21427f2bf5be1066b2a38fafd8b82cdbd178eae (tree) |
---|---|
l'heure | 2016-05-04 04:58:16 |
Auteur | sparky4 <sparky4@cock...> |
Commiter | sparky4 |
fack....
@@ -11,24 +11,226 @@ chkmap ok | ||
11 | 11 | [2], vmem_remain=256 |
12 | 12 | [3], video->page[i].pagesize=256 |
13 | 13 | [3], vmem_remain=0 |
14 | +player[0].d=2 | |
15 | +player[0].d=2 | |
16 | +player[0].d=2 | |
17 | +player[0].d=2 | |
18 | +player[0].d=2 | |
19 | +player[0].d=2 | |
20 | +player[0].d=2 | |
21 | +player[0].d=2 | |
22 | +player[0].d=2 | |
23 | +player[0].d=2 | |
24 | +player[0].d=2 | |
25 | +player[0].d=2 | |
26 | +player[0].d=2 | |
27 | +player[0].d=2 | |
28 | +player[0].d=3 | |
29 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
30 | +player[0].d=3 | |
31 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
32 | +player[0].d=3 | |
33 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
34 | +player[0].d=3 | |
35 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
36 | +player[0].d=3 | |
37 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
38 | +player[0].d=2 | |
39 | +player[0].d=3 | |
40 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
41 | +player[0].d=3 | |
42 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
43 | +player[0].d=3 | |
44 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
45 | +player[0].d=3 | |
46 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
47 | +player[0].d=3 | |
48 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
49 | +player[0].d=2 | |
50 | +player[0].d=3 | |
51 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
52 | +player[0].d=3 | |
53 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
54 | +player[0].d=3 | |
55 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
56 | +player[0].d=3 | |
57 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
58 | +player[0].d=3 | |
59 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
60 | +player[0].d=2 | |
61 | +player[0].d=3 | |
62 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
63 | +player[0].d=3 | |
64 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
65 | +player[0].d=3 | |
66 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
67 | +player[0].d=3 | |
68 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
69 | +player[0].d=3 | |
70 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
71 | +player[0].d=2 | |
72 | +player[0].d=3 | |
73 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
74 | +player[0].d=3 | |
75 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
76 | +player[0].d=3 | |
77 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
78 | +player[0].d=3 | |
79 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
80 | +player[0].d=3 | |
81 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
82 | +player[0].d=2 | |
83 | +player[0].d=3 | |
84 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
85 | +player[0].d=3 | |
86 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
87 | +player[0].d=3 | |
88 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
89 | +player[0].d=3 | |
90 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
91 | +player[0].d=3 | |
92 | +pip[0].page->tilesw=22 pip[0].page->tw=20 | |
93 | +player[0].d=2 | |
94 | +player[0].d=2 | |
95 | +player[0].d=2 | |
96 | +player[0].d=4 | |
97 | +player[0].d=4 | |
98 | +player[0].d=4 | |
99 | +player[0].d=4 | |
100 | +player[0].d=4 | |
101 | +player[0].d=2 | |
102 | +player[0].d=4 | |
103 | +player[0].d=4 | |
104 | +player[0].d=4 | |
105 | +player[0].d=4 | |
106 | +player[0].d=4 | |
107 | +player[0].d=2 | |
108 | +player[0].d=4 | |
109 | +player[0].d=4 | |
110 | +player[0].d=4 | |
111 | +player[0].d=4 | |
112 | +player[0].d=4 | |
113 | +player[0].d=2 | |
114 | +player[0].d=4 | |
115 | +player[0].d=4 | |
116 | +player[0].d=4 | |
117 | +player[0].d=4 | |
118 | +player[0].d=4 | |
119 | +player[0].d=2 | |
120 | +player[0].d=4 | |
121 | +player[0].d=4 | |
122 | +player[0].d=4 | |
123 | +player[0].d=4 | |
124 | +player[0].d=4 | |
125 | +player[0].d=2 | |
126 | +player[0].d=2 | |
127 | +player[0].d=2 | |
128 | +player[0].d=2 | |
129 | +player[0].d=2 | |
130 | +player[0].d=2 | |
131 | +player[0].d=2 | |
132 | +player[0].d=2 | |
133 | +player[0].d=2 | |
134 | +player[0].d=2 | |
135 | +player[0].d=2 | |
136 | +player[0].d=2 | |
137 | +player[0].d=2 | |
138 | +player[0].d=2 | |
139 | +player[0].d=2 | |
140 | +player[0].d=2 | |
141 | +player[0].d=0 | |
142 | +player[0].d=0 | |
143 | +player[0].d=0 | |
144 | +player[0].d=0 | |
145 | +player[0].d=0 | |
146 | +player[0].d=2 | |
147 | +player[0].d=0 | |
148 | +player[0].d=0 | |
149 | +player[0].d=0 | |
150 | +player[0].d=0 | |
151 | +player[0].d=0 | |
152 | +player[0].d=2 | |
153 | +player[0].d=0 | |
154 | +player[0].d=0 | |
155 | +player[0].d=0 | |
156 | +player[0].d=0 | |
157 | +player[0].d=0 | |
158 | +player[0].d=2 | |
159 | +player[0].d=0 | |
160 | +player[0].d=0 | |
161 | +player[0].d=0 | |
162 | +player[0].d=0 | |
163 | +player[0].d=0 | |
164 | +player[0].d=2 | |
165 | +player[0].d=0 | |
166 | +player[0].d=0 | |
167 | +player[0].d=0 | |
168 | +player[0].d=0 | |
169 | +player[0].d=0 | |
170 | +player[0].d=2 | |
171 | +player[0].d=0 | |
172 | +player[0].d=0 | |
173 | +player[0].d=0 | |
174 | +player[0].d=0 | |
175 | +player[0].d=0 | |
176 | +player[0].d=2 | |
177 | +player[0].d=0 | |
178 | +player[0].d=0 | |
179 | +player[0].d=0 | |
180 | +player[0].d=0 | |
181 | +player[0].d=0 | |
182 | +player[0].d=2 | |
183 | +player[0].d=0 | |
184 | +player[0].d=0 | |
185 | +player[0].d=0 | |
186 | +player[0].d=0 | |
187 | +player[0].d=0 | |
188 | +player[0].d=2 | |
189 | +player[0].d=1 | |
190 | +player[0].d=1 | |
191 | +player[0].d=1 | |
192 | +player[0].d=1 | |
193 | +player[0].d=1 | |
194 | +player[0].d=2 | |
195 | +player[0].d=1 | |
196 | +player[0].d=1 | |
197 | +player[0].d=1 | |
198 | +player[0].d=1 | |
199 | +player[0].d=1 | |
200 | +player[0].d=2 | |
201 | +player[0].d=1 | |
202 | +player[0].d=1 | |
203 | +player[0].d=1 | |
204 | +player[0].d=1 | |
205 | +player[0].d=1 | |
206 | +player[0].d=2 | |
207 | +player[0].d=1 | |
208 | +player[0].d=1 | |
209 | +player[0].d=1 | |
210 | +player[0].d=1 | |
211 | +player[0].d=1 | |
212 | +player[0].d=2 | |
213 | +player[0].d=2 | |
14 | 214 | Project 16 scroll.exe. This is just a test file! |
15 | -version May 2 2016 15:12:18 | |
16 | -tx: -16 | |
17 | -ty: -1 | |
18 | -player.x: 144 player.y: 112 | |
19 | -player.tx: 9 player.ty: 7 | |
20 | -player.triggx: 9 player.triggy: 8 | |
21 | -player.hp: 4 player.q: 1 player.info.dir: 2 player.d: 1 pdir=1 | |
215 | +version May 3 2016 13:10:29 | |
216 | +tx: 2 | |
217 | +ty: 0 | |
218 | +player.x: 160 player.y: 80 | |
219 | +player.tx: 12 player.ty: 5 | |
220 | +player.triggx: 11 player.triggy: 5 | |
221 | +player.hp: 4 player.q: 1 player.info.dir: 2 player.d: 2 pdir=1 | |
22 | 222 | tile data value at player trigger position: 1 |
23 | 223 | Virtual Screen: 352x272 |
24 | 224 | Screen: 320x240 |
25 | -tile resolution: 15x15 middle tile position: 10x8 | |
225 | +virtual tile resolution: 22x17 | |
226 | +tile resolution: 20x15 | |
227 | +middle tile position: 10x8 | |
26 | 228 | video memory remaining: 0 |
27 | -page [0]=(a000:0000) | |
28 | - [1]=(a000:5d80) | |
29 | - [2]=(a000:bb00) | |
30 | - [3]=(a000:ffc0) | |
31 | -mv[0].tx: -16 mv[0].ty: -1 | |
229 | +page [0]=(a000:0008) | |
230 | + [1]=(a000:5d88) | |
231 | + [2]=(a000:bb8c) | |
232 | + [3]=(a000:000c) | |
233 | +mv[1].tx: 2 mv[1].ty: 0 panswitch=0 | |
32 | 234 | |
33 | 235 | |
34 | 236 | detected CPU type: 386 or newer |
@@ -27,11 +27,12 @@ | ||
27 | 27 | void walk(map_view_t *pip, player_t *player, word pn) |
28 | 28 | { |
29 | 29 | #define INC_PER_FRAME if(player[pn].q&1) player[pn].persist_aniframe++; if(player[pn].persist_aniframe>4) player[pn].persist_aniframe = 1; |
30 | + //printf("player[%d].d=%d\n", pn, player[pn].d); | |
30 | 31 | switch(player[pn].d) |
31 | 32 | { |
32 | 33 | //right movement |
33 | 34 | case 3: |
34 | - //printf("pip[0].page->tilesw=%d\n", pip[0].page->tilesw); | |
35 | + //printf("pip[0].page->tilesw=%d ", pip[0].page->tilesw); printf("pip[0].page->tw=%d\n", pip[0].page->tw); | |
35 | 36 | if(pip[0].tx >= 0 && pip[0].tx+pip[0].page->tw < pip[0].map->width && player[pn].tx == pip[0].tx+pip[0].page->tilemidposscreenx && |
36 | 37 | !(pip[0].map->data[(player[pn].tx)+(pip[0].map->width*(player[pn].ty-1))] == 0))//!(player[pn].tx+1 == TRIGGX && player[pn].ty == TRIGGY)) //collision detection! |
37 | 38 | { |
@@ -717,7 +718,7 @@ void mapDrawWCol(map_view_t *mv, int tx, int ty, word x) | ||
717 | 718 | }*/ |
718 | 719 | |
719 | 720 | unsigned char shinku_fps_indicator_page = 0; |
720 | -boolean pageflipflop; | |
721 | +boolean pageflipflop=0; | |
721 | 722 | //gv->video.p |
722 | 723 | |
723 | 724 | /* sync */ |
@@ -118,7 +118,7 @@ void main(int argc, char *argv[]) | ||
118 | 118 | /* input! */ |
119 | 119 | IN_Startup(); |
120 | 120 | IN_Default(0,&player,ctrl_Joystick); |
121 | - IN_Default(1,&player,ctrl_Joystick); | |
121 | + //IN_Default(1,&player,ctrl_Joystick); | |
122 | 122 | |
123 | 123 | /* save the palette */ |
124 | 124 | #ifdef MODEX |
@@ -166,26 +166,25 @@ void main(int argc, char *argv[]) | ||
166 | 166 | mv[i].map = ↦ |
167 | 167 | mv[i].video = &gvar.video; |
168 | 168 | mv[i].pan = &pan; |
169 | - /* set up paging */ | |
170 | -//TODO: LOAD map data and position the map in the middle of the screen if smaller then screen | |
171 | - mapGoTo(&mv[i], 0, 0); | |
172 | 169 | } |
173 | - | |
174 | - //modexClearRegion(mv[0].page, 0, 0, mv[0].page->width+TILEWH, mv[0].page->height+TILEWH, 15); | |
170 | + /* set up paging */ | |
171 | + //TODO: LOAD map data and position the map in the middle of the screen if smaller then screen | |
172 | + mapGoTo(&mv[0], 0, 0); | |
173 | + mapGoTo(&mv[1], 0, 0); | |
174 | + //modexCopyPageRegion(mv[1].page, mv[0].page, 0, 0, 0, 0, mv[1].page->width, mv[1].page->height); | |
175 | 175 | |
176 | 176 | //TODO: put player in starting position of spot |
177 | 177 | //default player position on the viewable map |
178 | 178 | player[0].tx = mv[0].tx + mv[0].page->tilemidposscreenx; |
179 | 179 | player[0].ty = mv[0].ty + mv[0].page->tilemidposscreeny; |
180 | 180 | IN_initplayer(&player, 0); |
181 | - IN_initplayer(&player, 1); | |
181 | + //IN_initplayer(&player, 1); | |
182 | 182 | |
183 | - modexCopyPageRegion(mv[1].page, mv[0].page, 0, 0, 0, 0, mv[0].page->width, mv[0].page->height); | |
184 | 183 | #ifndef SPRITE |
185 | - modexClearRegion(mv[1].page, player[panswitch].x-4, player[panswitch].y-TILEWH, 24, 32, 15); | |
184 | + modexClearRegion(mv[1].page, player[0].x-4, player[0].y-TILEWH, 24, 32, 15); | |
186 | 185 | #else |
187 | - //PBUFSFUN(mv[1].page, player[panswitch].x-4, player[panswitch].y-TILEWH, 24, 64, 24, 32, PLAYERBMPDATA); | |
188 | - PBUFSFUN(mv[1].page, player[panswitch].x-4, player[panswitch].y-TILEWH, 24, 64, 24, 32, &pp); | |
186 | + //PBUFSFUN(mv[1].page, player[0].x-4, player[0].y-TILEWH, 24, 64, 24, 32, PLAYERBMPDATA); | |
187 | + PBUFSFUN(mv[1].page, player[0].x-4, player[0].y-TILEWH, 24, 64, 24, 32, &pp); | |
189 | 188 | #endif |
190 | 189 | |
191 | 190 | modexShowPage(mv[1].page); |
@@ -204,17 +203,17 @@ void main(int argc, char *argv[]) | ||
204 | 203 | //when player[0].tx or player[0].ty == 0 or player[0].tx == 20 or player[0].ty == 15 then stop because that is edge of map and you do not want to walk of the map |
205 | 204 | |
206 | 205 | //player movement |
207 | - IN_ReadControl(panswitch,&player); | |
206 | + IN_ReadControl(0,&player); | |
208 | 207 | if(!panswitch){ |
209 | 208 | walk(mv, player, 0); |
210 | 209 | }else{ |
211 | 210 | panpagemanual(mv, player, pan.pn); |
212 | - //printf(" player[panswitch].q: %d", player[panswitch].q); printf(" player[panswitch].d: %d\n", player[panswitch].d); | |
211 | + //printf(" player[0].q: %d", player[0].q); printf(" player[0].d: %d\n", player[0].d); | |
213 | 212 | } |
214 | 213 | |
215 | 214 | |
216 | 215 | //the scripting stuff.... |
217 | - //if(((player[panswitch].triggerx == TRIGGX && player[panswitch].triggery == TRIGGY) && IN_KeyDown(0x1C))||(player[panswitch].tx == 5 && player[panswitch].ty == 5)) | |
216 | + //if(((player[0].triggerx == TRIGGX && player[0].triggery == TRIGGY) && IN_KeyDown(0x1C))||(player[0].tx == 5 && player[0].ty == 5)) | |
218 | 217 | if(((mv[0].map->data[(player[0].triggerx-1)+(map.width*(player[0].triggery-1))] == 0) && IN_KeyDown(0x1C))||(player[0].tx == 5 && player[0].ty == 5)) |
219 | 218 | { |
220 | 219 | short i; |
@@ -294,14 +293,14 @@ void main(int argc, char *argv[]) | ||
294 | 293 | printf("version %s\n", VERSION); |
295 | 294 | printf("tx: %d\n", mv[0].tx); |
296 | 295 | printf("ty: %d\n", mv[0].ty); |
297 | - printf("player.x: %d", player[panswitch].x); printf(" player.y: %d\n", player[panswitch].y); | |
296 | + printf("player.x: %d", player[0].x); printf(" player.y: %d\n", player[0].y); | |
298 | 297 | //if(player[0].hp==0) printf("%d wwww\n", player[0].y+8); |
299 | 298 | //else printf("\nplayer[0].y: %d\n", player[0].y); |
300 | - printf("player.tx: %d", player[panswitch].tx); printf(" player.ty: %d\n", player[panswitch].ty); | |
301 | - printf("player.triggx: %d", player[panswitch].triggerx); printf(" player.triggy: %d\n", player[panswitch].triggery); | |
302 | - printf("player.hp: %d", (player[panswitch].hp)); printf(" player.q: %d", player[panswitch].q); printf(" player.info.dir: %d", player[panswitch].info.dir); printf(" player.d: %d ", player[panswitch].d); | |
303 | - printf("pdir=%d\n", player[panswitch].pdir); | |
304 | - printf("tile data value at player trigger position: %d\n", mv[0].map->data[(player[panswitch].triggerx-1)+(map.width*(player[panswitch].triggery-1))]); | |
299 | + printf("player.tx: %d", player[0].tx); printf(" player.ty: %d\n", player[0].ty); | |
300 | + printf("player.triggx: %d", player[0].triggerx); printf(" player.triggy: %d\n", player[0].triggery); | |
301 | + printf("player.hp: %d", (player[0].hp)); printf(" player.q: %d", player[0].q); printf(" player.info.dir: %d", player[0].info.dir); printf(" player.d: %d ", player[0].d); | |
302 | + printf("pdir=%d\n", player[0].pdir); | |
303 | + printf("tile data value at player trigger position: %d\n", mv[0].map->data[(player[0].triggerx-1)+(map.width*(player[0].triggery-1))]); | |
305 | 304 | // printf("palette offset: %d\n", paloffset/3); |
306 | 305 | //++++ printf("Total used: %zu\n", oldfreemem-GetFreeSize()); |
307 | 306 | //++++ printf("Total free: %zu\n", GetFreeSize()); |
@@ -319,7 +318,7 @@ void main(int argc, char *argv[]) | ||
319 | 318 | printf(" [%u]=", i); |
320 | 319 | printf("(%Fp)\n", (gvar.video.page[i].data)); |
321 | 320 | } |
322 | - printf("mv[%u].tx: %d", pan.pn, mv[pan.pn].tx); printf(" mv[%u].ty: %d\n", pan.pn, mv[pan.pn].ty); | |
321 | + printf("mv[%u].tx: %d", pan.pn, mv[pan.pn].tx); printf(" mv[%u].ty: %d ", pan.pn, mv[pan.pn].ty); printf("panswitch=%u\n", panswitch); | |
323 | 322 | //printf("player[1].q: %d", player[1].q); printf(" player[1].d: %d\n", player[1].d); |
324 | 323 | printf("\n"); |
325 | 324 | // printf("Screen2: %dx", gvar.video.page[1].width); printf("%d\n", gvar.video.page[1].height); |