• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

wwww


コミットメタ情報

リビジョンc21427f2bf5be1066b2a38fafd8b82cdbd178eae (tree)
日時2016-05-04 04:58:16
作者sparky4 <sparky4@cock...>
コミッターsparky4

ログメッセージ

fack....

変更サマリ

差分

--- a/SCROLL.16L
+++ b/SCROLL.16L
@@ -11,24 +11,226 @@ chkmap ok
1111 [2], vmem_remain=256
1212 [3], video->page[i].pagesize=256
1313 [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
14214 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
22222 tile data value at player trigger position: 1
23223 Virtual Screen: 352x272
24224 Screen: 320x240
25-tile resolution: 15x15 middle tile position: 10x8
225+virtual tile resolution: 22x17
226+tile resolution: 20x15
227+middle tile position: 10x8
26228 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
32234
33235
34236 detected CPU type: 386 or newer
Binary files a/pcx2vrl and b/pcx2vrl differ
Binary files a/pcxsscut and b/pcxsscut differ
--- a/src/lib/scroll16.c
+++ b/src/lib/scroll16.c
@@ -27,11 +27,12 @@
2727 void walk(map_view_t *pip, player_t *player, word pn)
2828 {
2929 #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);
3031 switch(player[pn].d)
3132 {
3233 //right movement
3334 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);
3536 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 &&
3637 !(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!
3738 {
@@ -717,7 +718,7 @@ void mapDrawWCol(map_view_t *mv, int tx, int ty, word x)
717718 }*/
718719
719720 unsigned char shinku_fps_indicator_page = 0;
720-boolean pageflipflop;
721+boolean pageflipflop=0;
721722 //gv->video.p
722723
723724 /* sync */
--- a/src/scroll.c
+++ b/src/scroll.c
@@ -118,7 +118,7 @@ void main(int argc, char *argv[])
118118 /* input! */
119119 IN_Startup();
120120 IN_Default(0,&player,ctrl_Joystick);
121- IN_Default(1,&player,ctrl_Joystick);
121+ //IN_Default(1,&player,ctrl_Joystick);
122122
123123 /* save the palette */
124124 #ifdef MODEX
@@ -166,26 +166,25 @@ void main(int argc, char *argv[])
166166 mv[i].map = &map;
167167 mv[i].video = &gvar.video;
168168 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);
172169 }
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);
175175
176176 //TODO: put player in starting position of spot
177177 //default player position on the viewable map
178178 player[0].tx = mv[0].tx + mv[0].page->tilemidposscreenx;
179179 player[0].ty = mv[0].ty + mv[0].page->tilemidposscreeny;
180180 IN_initplayer(&player, 0);
181- IN_initplayer(&player, 1);
181+ //IN_initplayer(&player, 1);
182182
183- modexCopyPageRegion(mv[1].page, mv[0].page, 0, 0, 0, 0, mv[0].page->width, mv[0].page->height);
184183 #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);
186185 #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);
189188 #endif
190189
191190 modexShowPage(mv[1].page);
@@ -204,17 +203,17 @@ void main(int argc, char *argv[])
204203 //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
205204
206205 //player movement
207- IN_ReadControl(panswitch,&player);
206+ IN_ReadControl(0,&player);
208207 if(!panswitch){
209208 walk(mv, player, 0);
210209 }else{
211210 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);
213212 }
214213
215214
216215 //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))
218217 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))
219218 {
220219 short i;
@@ -294,14 +293,14 @@ void main(int argc, char *argv[])
294293 printf("version %s\n", VERSION);
295294 printf("tx: %d\n", mv[0].tx);
296295 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);
298297 //if(player[0].hp==0) printf("%d wwww\n", player[0].y+8);
299298 //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))]);
305304 // printf("palette offset: %d\n", paloffset/3);
306305 //++++ printf("Total used: %zu\n", oldfreemem-GetFreeSize());
307306 //++++ printf("Total free: %zu\n", GetFreeSize());
@@ -319,7 +318,7 @@ void main(int argc, char *argv[])
319318 printf(" [%u]=", i);
320319 printf("(%Fp)\n", (gvar.video.page[i].data));
321320 }
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);
323322 //printf("player[1].q: %d", player[1].q); printf(" player[1].d: %d\n", player[1].d);
324323 printf("\n");
325324 // printf("Screen2: %dx", gvar.video.page[1].width); printf("%d\n", gvar.video.page[1].height);
Binary files a/vrl2vrs and b/vrl2vrs differ
Binary files a/vrsdump and b/vrsdump differ