Add map
This commit is contained in:
parent
ffbc647024
commit
ddc4f5b6ad
2 changed files with 35 additions and 7 deletions
24
assets.h
24
assets.h
|
@ -332,6 +332,30 @@ static const char *LCR_internalDataFile =
|
||||||
":<o1y:fg11"
|
":<o1y:fg11"
|
||||||
// finish:
|
// finish:
|
||||||
":!vdt:!vdA"
|
":!vdt:!vdA"
|
||||||
|
|
||||||
|
// TINY MAP 4:
|
||||||
|
|
||||||
|
"#MLCtiny4;4321 1"
|
||||||
|
":*x1q:+u1F:!x1o"
|
||||||
|
// platform:
|
||||||
|
":=j0o:fg1j"
|
||||||
|
":xj0o:fc18"
|
||||||
|
":xj0E:f613"
|
||||||
|
":=p0w2:f71b"
|
||||||
|
":Aj0DI"
|
||||||
|
":Ap0G2I"
|
||||||
|
":Aj0wJ"
|
||||||
|
// walls:
|
||||||
|
":^m1A1I:fd11"
|
||||||
|
":=m1w:f911"
|
||||||
|
":^v1oJ:f118"
|
||||||
|
":Av1wL"
|
||||||
|
":=t0A:f234"
|
||||||
|
":^z1oL:f11j"
|
||||||
|
":^z0oL-:f11j"
|
||||||
|
// fans:
|
||||||
|
":Vm1xI:Vm1z"
|
||||||
|
":-w0q1:-y0q1"
|
||||||
;
|
;
|
||||||
|
|
||||||
#define LCR_IMAGE_SIZE 64 ///< one-dimension resolution of bitmap image
|
#define LCR_IMAGE_SIZE 64 ///< one-dimension resolution of bitmap image
|
||||||
|
|
|
@ -118,26 +118,27 @@ void LCR_log(const char *str)
|
||||||
void printHelp(void)
|
void printHelp(void)
|
||||||
{
|
{
|
||||||
printf(
|
printf(
|
||||||
"Licar, 3D racing game, version " LCR_VERSION ", arguments:\n"
|
"Licar, 3D racing game, v. " LCR_VERSION ", SDL frontend, args:\n"
|
||||||
" -h print help and quit\n"
|
" -h print help and quit\n"
|
||||||
|
" -wN window (N = 1) or fullscreen (N = 0)\n"
|
||||||
LCR_ARG_HELP_STR);
|
LCR_ARG_HELP_STR);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
uint8_t running = 1;
|
uint8_t running = 1, fullscreen = 1;
|
||||||
|
|
||||||
for (int i = 0; i < argc; ++i)
|
for (int i = 0; i < argc; ++i)
|
||||||
if (argv[i][0] == '-')
|
if (argv[i][0] == '-')
|
||||||
switch (argv[i][1])
|
switch (argv[i][1])
|
||||||
{
|
{
|
||||||
case 'h':
|
case 'h':
|
||||||
if (argv[i][2] == 0)
|
|
||||||
{
|
|
||||||
printHelp();
|
printHelp();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
break;
|
||||||
|
|
||||||
|
case 'w':
|
||||||
|
fullscreen = argv[i][2] == '1';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default: break;
|
default: break;
|
||||||
|
@ -184,6 +185,9 @@ int main(int argc, char *argv[])
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fullscreen)
|
||||||
|
SDL_SetWindowFullscreen(window,SDL_WINDOW_FULLSCREEN_DESKTOP);
|
||||||
|
|
||||||
renderer = SDL_CreateRenderer(window,-1,0);
|
renderer = SDL_CreateRenderer(window,-1,0);
|
||||||
|
|
||||||
if (!renderer)
|
if (!renderer)
|
||||||
|
|
Loading…
Reference in a new issue