From ed60db66e45b2e3c7690913447336bc72b2516f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Fri, 30 Oct 2020 19:13:25 +0100 Subject: [PATCH] Update gamebuino --- main_gbmeta.ino | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/main_gbmeta.ino b/main_gbmeta.ino index a1eab2c..8df9734 100644 --- a/main_gbmeta.ino +++ b/main_gbmeta.ino @@ -2,7 +2,15 @@ @file main_gbmeta.ino This is Gamebuino Meta implementation of the game front end, using the - official library. + official library. Leaving out the library bloat could probably optimize this. + + To compile using Arduin IDE you need to copy this file as well as all + necessary .h files into a project folder, then open the project and compile. + Do NOT put .c and .cpp files into the folder, stupid Arduino tries to compile + them even if they're not needed. + + DON'T FORGET to set compiler flag to -O3 (default is -Os). With Arduino IDE + this is done in platform.txt file. by Miloslav Ciz (drummyfish), 2019 @@ -14,9 +22,6 @@ #include - #define SFG_IMMORTAL 1 - #define SFG_INFINITE_AMMO 1 - #define SFG_ARDUINO 1 #define SFG_CAN_EXIT 0 #define SFG_FPS 17 @@ -25,10 +30,10 @@ #define SFG_RESOLUTION_SCALEDOWN 1 #define SFG_RAYCASTING_MAX_STEPS 11 #define SFG_RAYCASTING_MAX_HITS 3 -#define SFG_RAYCASTING_SUBSAMPLE 3 +#define SFG_RAYCASTING_SUBSAMPLE 2 #define SFG_DIMINISH_SPRITES 0 #define SFG_DITHERED_SHADOW 0 -#define SFG_PLAYER_TURN_SPEED 150 +#define SFG_PLAYER_TURN_SPEED 135 #include "game.h"