From a614cbc2f6034fd613557821d4a3f759e4fea056 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Sun, 12 Oct 2014 14:42:32 +0400 Subject: Cleanup, copyright. --- src/game.c | 18 ++++++++++++------ src/game.h | 2 +- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/game.c b/src/game.c index ba99ae8..8801888 100644 --- a/src/game.c +++ b/src/game.c @@ -1,6 +1,12 @@ #include #include "game.h" +/* +*** Author: Cluster aka Alexey Avdyukhin +*** Mailto: clusterrr@clusterrr.com +*** http://clusterrr.com +*/ + static Window *s_window; static Layer *gfx_layer; static AppTimer *timer; @@ -234,7 +240,7 @@ void update_timer(void* data) // Using accelerometer data to control ship AccelData acc; - accel_service_peek(&acc); + accel_service_peek(&acc); acc_x = acc.x; acc_y = acc.y; @@ -475,23 +481,23 @@ void show_game() { // Creating window s_window = window_create(); - window_set_background_color(s_window, GColorWhite); - window_set_fullscreen(s_window, true); + window_set_background_color(s_window, GColorWhite); + window_set_fullscreen(s_window, true); window_set_window_handlers(s_window, (WindowHandlers) { .unload = handle_window_unload, }); // The layer - Layer *window_layer = window_get_root_layer(s_window); - GRect bounds = layer_get_frame(window_layer); + Layer *window_layer = window_get_root_layer(s_window); + GRect bounds = layer_get_frame(window_layer); gfx_layer = layer_create(bounds); layer_set_update_proc(gfx_layer, game_draw); layer_add_child(window_layer, gfx_layer); window_set_click_config_provider(s_window, config_provider); - window_stack_push(s_window, true); + window_stack_push(s_window, true); // Game timer timer = app_timer_register(UPDATE_INTERVAL, (AppTimerCallback) update_timer, NULL); diff --git a/src/game.h b/src/game.h index 1cca719..1e2d342 100644 --- a/src/game.h +++ b/src/game.h @@ -1,7 +1,7 @@ #ifndef _GAME_H_ #define _GAME_H_ -#define VERSION "v1.3" +#define VERSION "v1.4" #define SHIP_WIDTH 10 #define SHIP_HEIGHT 15 #define SCREEN_WIDTH 144 -- cgit v1.2.3