Compare commits
No commits in common. "master" and "0.6.2_5" have entirely different histories.
15 changed files with 29 additions and 43 deletions
10
CHANGE.md
10
CHANGE.md
|
@ -1,13 +1,3 @@
|
|||
0.6.2_7 (2022-12-19)
|
||||
====================
|
||||
|
||||
* Update Makefile.
|
||||
|
||||
0.6.2_6 (2020-12-30)
|
||||
====================
|
||||
|
||||
* Update CFLAGS.
|
||||
|
||||
0.6.2_5 (2020-12-30)
|
||||
====================
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#
|
||||
# Copyright (c) 2019-2023, yzrh <yzrh@noema.org>
|
||||
# Copyright (c) 2019-2020, yzrh <yzrh@noema.org>
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
src = snake-sdl.c collision.c game.c input.c renderer.c
|
||||
inc = extern.h game.h input.h renderer.h screen.h version.h
|
||||
|
@ -18,8 +16,8 @@ obj = ${src:.c=.o}
|
|||
|
||||
PREFIX = /usr/local
|
||||
|
||||
CFLAGS = -O2 -pipe -flto -Wall -Wextra -Wno-unused-parameter
|
||||
LDFLAGS = -Wl,-O2 -lpthread -lSDL2 -lSDL2_ttf
|
||||
CFLAGS = -O3 -march=native -pipe -flto=thin -Wall -Wno-unused-result
|
||||
LDFLAGS = -Wl,-O3 -lpthread -lSDL2 -lSDL2_ttf
|
||||
|
||||
.ifdef SOUND
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2019-2021, yzrh <yzrh@noema.org>
|
||||
* Copyright (c) 2019-2020, yzrh <yzrh@noema.org>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2019-2021, yzrh <yzrh@noema.org>
|
||||
* Copyright (c) 2019-2020, yzrh <yzrh@noema.org>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2019-2021, yzrh <yzrh@noema.org>
|
||||
* Copyright (c) 2019-2020, yzrh <yzrh@noema.org>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2019-2021, yzrh <yzrh@noema.org>
|
||||
* Copyright (c) 2019-2020, yzrh <yzrh@noema.org>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2019-2021, yzrh <yzrh@noema.org>
|
||||
* Copyright (c) 2019-2020, yzrh <yzrh@noema.org>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2019-2021, yzrh <yzrh@noema.org>
|
||||
* Copyright (c) 2019-2020, yzrh <yzrh@noema.org>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2019-2021, yzrh <yzrh@noema.org>
|
||||
* Copyright (c) 2019-2020, yzrh <yzrh@noema.org>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2019-2021, yzrh <yzrh@noema.org>
|
||||
* Copyright (c) 2019-2020, yzrh <yzrh@noema.org>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2019-2021, yzrh <yzrh@noema.org>
|
||||
* Copyright (c) 2019-2020, yzrh <yzrh@noema.org>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2019-2021, yzrh <yzrh@noema.org>
|
||||
* Copyright (c) 2019-2020, yzrh <yzrh@noema.org>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2019-2021, yzrh <yzrh@noema.org>
|
||||
* Copyright (c) 2019-2020, yzrh <yzrh@noema.org>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2019-2023, yzrh <yzrh@noema.org>
|
||||
* Copyright (c) 2019-2020, yzrh <yzrh@noema.org>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
@ -108,22 +108,19 @@ static void*
|
|||
handler_rendering(void *args)
|
||||
{
|
||||
const SDL_Color fg = {
|
||||
.r = COLOUR_FOREGROUND_R,
|
||||
.g = COLOUR_FOREGROUND_G,
|
||||
.b = COLOUR_FOREGROUND_B,
|
||||
.a = 255
|
||||
COLOUR_FOREGROUND_R,
|
||||
COLOUR_FOREGROUND_G,
|
||||
COLOUR_FOREGROUND_B
|
||||
};
|
||||
const SDL_Color bg = {
|
||||
.r = COLOUR_BACKGROUND_R,
|
||||
.g = COLOUR_BACKGROUND_G,
|
||||
.b = COLOUR_BACKGROUND_B,
|
||||
.a = 255
|
||||
COLOUR_BACKGROUND_R,
|
||||
COLOUR_BACKGROUND_G,
|
||||
COLOUR_BACKGROUND_B
|
||||
};
|
||||
const SDL_Color bg_s = {
|
||||
.r = COLOUR_BACKGROUND_SHADE_R,
|
||||
.g = COLOUR_BACKGROUND_SHADE_G,
|
||||
.b = COLOUR_BACKGROUND_SHADE_B,
|
||||
.a = 255
|
||||
COLOUR_BACKGROUND_SHADE_R,
|
||||
COLOUR_BACKGROUND_SHADE_G,
|
||||
COLOUR_BACKGROUND_SHADE_B
|
||||
};
|
||||
|
||||
char result_str[23];
|
||||
|
@ -944,7 +941,7 @@ int
|
|||
main(void)
|
||||
{
|
||||
printf("Snake " VERSION "." RELEASE "." PATCH EXTRA "\n"
|
||||
"Copyright (c) 2019-2022, yzrh <yzrh@noema.org>\n");
|
||||
"Copyright (c) 2019-2020, yzrh <yzrh@noema.org>\n");
|
||||
|
||||
if (SDL_Init(SDL_INIT_VIDEO |
|
||||
SDL_INIT_AUDIO |
|
||||
|
@ -1418,7 +1415,8 @@ main(void)
|
|||
text_score.cache = 0;
|
||||
|
||||
if (flappy) {
|
||||
delay.tv_nsec /= SCREEN_UNIT;
|
||||
delay.tv_nsec = TICK_TIME_INIT /
|
||||
SCREEN_UNIT;
|
||||
|
||||
game_snake_init(&snake0, 0);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2019-2022, yzrh <yzrh@noema.org>
|
||||
* Copyright (c) 2019-2020, yzrh <yzrh@noema.org>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
@ -7,4 +7,4 @@
|
|||
#define VERSION "0"
|
||||
#define RELEASE "6"
|
||||
#define PATCH "2"
|
||||
#define EXTRA "_7"
|
||||
#define EXTRA "_5"
|
||||
|
|
Loading…
Add table
Reference in a new issue