Skip to content

Commit bca56e6

Browse files
authored
Update collider.c
1 parent 0b5640a commit bca56e6

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

examples/collider.c

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@
1212
==============
1313
1414
zcc +<target> -lndos -create-app -ocollider -DSOUND -DJOYSTICK_DIALOG collider.c
15-
16-
(-DSOUND and -DJOYSTICK_DIALOG can be removed where not applicable)
15+
16+
Minimum graphics resolution required: 96x64
17+
Use -pragma-redirect=fputc_cons=putc4x6 if text and graphics aren't mixed natively
18+
19+
20+
(-DSOUND and -DJOYSTICK_DIALOG can be removed where not applicable)
1721
1822
*/
1923

@@ -193,6 +197,9 @@ struct player {
193197
void *oldsprite;
194198
};
195199

200+
struct player player1;
201+
struct player player2;
202+
196203
char scoretxt[7];
197204
int x,y,z;
198205
int stick;
@@ -346,8 +353,6 @@ eat_dot() {
346353

347354
main()
348355
{
349-
struct player player1;
350-
struct player player2;
351356

352357
clg();
353358

@@ -358,6 +363,8 @@ main()
358363
/**** JOYSTICK CHOICE ****/
359364
#ifdef JOYSTICK_DIALOG
360365

366+
// printf("%c",12);
367+
361368
putsprite(SPR_OR,0,0, logo);
362369
printf("\n\n");
363370

@@ -498,12 +505,6 @@ main()
498505
draw_sprite(player1);
499506
draw_sprite(player2);
500507

501-
502-
// #ifdef FAST
503-
// score++;
504-
// #else
505-
// show_score(score++);
506-
// #endif
507508

508509
#ifdef SOUND
509510
bit_click();

0 commit comments

Comments
 (0)