mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-02 13:36:57 +03:00
3fdad8ab94
- fix flickering (canvas drawing added) TODO: - optimize tile drawing: maybe separate canvas for every tile - game over screen - last game save / load - record save / load git-svn-id: svn://kolibrios.org@5231 a494cfbc-eb01-0410-851d-a64ba20cac60
34 lines
471 B
C
34 lines
471 B
C
#ifndef GAME_H
|
|
#define GAME_H
|
|
|
|
#include "defines.h"
|
|
#include "board.h"
|
|
|
|
static const char header[] = "2048";
|
|
static struct process_table_entry proc_info = {0};
|
|
|
|
#define NEW_GAME_BUTTON (0xFF)
|
|
|
|
// Start a new game
|
|
void game_init();
|
|
|
|
// Exit game
|
|
void game_exit();
|
|
|
|
// Redraw game content
|
|
void game_redraw();
|
|
|
|
// Move Up
|
|
void game_move_up();
|
|
|
|
// Move Down
|
|
void game_move_down();
|
|
|
|
// Move Left
|
|
void game_move_left();
|
|
|
|
// Move Right
|
|
void game_move_right();
|
|
|
|
#endif // GAME_H
|