From b11feede4f399299fb9e6eff61c459c59521bafa Mon Sep 17 00:00:00 2001 From: Daniel Marsee Date: Thu, 12 Dec 2019 16:06:23 +0000 Subject: [PATCH] Create a cross-compatible version of the desktop resolution algorithm. --- electric.bas | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/electric.bas b/electric.bas index c2e0723..a8deb7a 100644 --- a/electric.bas +++ b/electric.bas @@ -1,4 +1,4 @@ -CONST versionvrsn = "v1.1:0004-indev" 'Update this each build! +CONST versionvrsn = "v1.1:0006-indev" 'Update this each build! _TITLE "Electric" DIM SHARED ignore`, ignorethrot`, swidth, sheight, xoffset%, yoffset%, graphsetting, gamepad, screenanchorx%, screenanchory% @@ -12,16 +12,16 @@ GET #1, 19, vol IF swidth > 0 AND sheight > 0 THEN SCREEN _NEWIMAGE(swidth, sheight, 32) ELSE - desktop& = _SCREENIMAGE - IF desktop& THEN - swidth = _WIDTH(desktop&) - sheight = _HEIGHT(desktop&) + dw = _DESKTOPWIDTH + dh = _DESKTOPHEIGHT + IF dw AND dh THEN + swidth = dw + sheight = dh ELSE swidth = 800 sheight = 600 END IF SCREEN _NEWIMAGE(swidth, sheight, 32) - IF desktop& THEN _FREEIMAGE desktop& fs = 1 blue = 255 steering = 1 @@ -3104,7 +3104,7 @@ END SUB FUNCTION getfact$ DIM facts$(7) 'facts$(0) = "The airplane in this game is losely based on the Lockheed-Martin F-35 Lightning II and the General Dynamics F-16 Fighting Falcon, the major difference being the means of propultion." -'facts$(1) = "The premise for 'Electric' was conceived when I discovered this tidbit of information about Lt. Surge from 'Pokemon: Fire Red': 'Lt. Surge is rumored to have been a pilot while home in America. He used the electricity generated by Pokémon to power his plane.' Having said that, the generators in 'Electric' are just normal generators." +'facts$(1) = "The premise for 'Electric' was conceived when I discovered this tidbit of information about Lt. Surge from 'Pokemon: Fire Red': 'Lt. Surge is rumored to have been a pilot while home in America. He used the electricity generated by Pokďż˝mon to power his plane.' Having said that, the generators in 'Electric' are just normal generators." 'facts$(2) = "'Descent II' by Parallax had a significant influence on 'Electric', which is ironic because 'Electric' has nothing to do with space." facts$(0) = "In most of the code, " + CHR$(34) + "laser" + CHR$(34) + " is misspelled " + CHR$(34) + "lazer." + CHR$(34) facts$(1) = "Change 'Planes per Team' to 2 or more. Shoot your AI helper. Look in the top left corner of the screen. It only appears for 1/60 of a second."