Add Snake game (#829)

* Add snake game
* Applications: Added a classic game https://en.wikipedia.org/wiki/Snake_(video_game_genre)
* Snake Game: Making it impossible to lose button presses
* Use more native press button event
* Snake Game: use low level InputTypePress event instead of InputTypeShort high level unpredictable event

Co-authored-by: LionZXY <nikita@kulikof.ru>
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Oleg Schwann
2021-11-23 19:07:46 +03:00
committed by GitHub
parent e54e4a6d77
commit 68274b6c27
3 changed files with 430 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ APP_ABOUT = 1
# Plugins
APP_MUSIC_PLAYER = 1
APP_SNAKE_GAME = 1
# Debug
APP_ACCESSOR = 1
@@ -185,6 +186,11 @@ CFLAGS += -DAPP_MUSIC_PLAYER
SRV_GUI = 1
endif
APP_SNAKE_GAME ?= 0
ifeq ($(APP_SNAKE_GAME), 1)
CFLAGS += -DAPP_SNAKE_GAME
SRV_GUI = 1
endif
APP_IBUTTON ?= 0
ifeq ($(APP_IBUTTON), 1)