Fixed resolution detection in Linux
Fixed font case sensitivity in Mac & Linux
This commit is contained in:
parent
b11feede4f
commit
8274e396d7
3 changed files with 3124 additions and 3116 deletions
|
@ -25,3 +25,11 @@ Added ui folder
|
|||
Removed some unused asset files
|
||||
Fixed the license
|
||||
Added changelog!
|
||||
|
||||
v1.1:0006
|
||||
---------
|
||||
Changed resolution detection method to work cross-platform
|
||||
|
||||
v1.1:0007
|
||||
---------
|
||||
Fixed case-sensitivity issue for font loading in Linux
|
||||
|
|
BIN
electric
Executable file
BIN
electric
Executable file
Binary file not shown.
20
electric.bas
20
electric.bas
|
@ -1,4 +1,4 @@
|
|||
CONST versionvrsn = "v1.1:0006-indev" 'Update this each build!
|
||||
CONST versionvrsn = "v1.1:0007-indev" 'Update this each build!
|
||||
|
||||
_TITLE "Electric"
|
||||
DIM SHARED ignore`, ignorethrot`, swidth, sheight, xoffset%, yoffset%, graphsetting, gamepad, screenanchorx%, screenanchory%
|
||||
|
@ -59,7 +59,7 @@ IF electricicon& THEN
|
|||
_FREEIMAGE electricicon&
|
||||
END IF
|
||||
IF fs = 1 THEN _FULLSCREEN
|
||||
quartz& = _LOADFONT("fonts\segment14.otf", sheight / 24, "")
|
||||
quartz& = _LOADFONT("fonts\Segment14.otf", sheight / 24, "")
|
||||
cyberbit& = _LOADFONT("fonts\cyberbit.ttf", sheight / 32, "")
|
||||
_PRINTMODE _KEEPBACKGROUND
|
||||
RANDOMIZE TIMER
|
||||
|
@ -188,7 +188,7 @@ DO
|
|||
_PUTIMAGE (0, 0)-(swidth - 1, sheight - 1), premetal&, brushedmetal&
|
||||
_FREEIMAGE premetal&
|
||||
_FONT 16
|
||||
quartz& = _LOADFONT("fonts\segment14.otf", sheight / 24, "")
|
||||
quartz& = _LOADFONT("fonts\Segment14.otf", sheight / 24, "")
|
||||
cyberbit& = _LOADFONT("fonts\cyberbit.ttf", sheight / 32, "")
|
||||
END IF
|
||||
IF menu(6) THEN credit
|
||||
|
@ -222,7 +222,7 @@ _PUTIMAGE (0, 0)-(swidth - 1, sheight - 1), premetal&, brushedmetal&
|
|||
_FREEIMAGE premetal&
|
||||
_PUTIMAGE (0, 0), brushedmetal&
|
||||
_FONT 16
|
||||
quartz& = _LOADFONT("fonts\segment14.otf", sheight / 24, "")
|
||||
quartz& = _LOADFONT("fonts\Segment14.otf", sheight / 24, "")
|
||||
cyberbit& = _LOADFONT("fonts\cyberbit.ttf", sheight / 32, "")
|
||||
_FONT quartz&
|
||||
center "CREDITS", 1
|
||||
|
@ -1317,8 +1317,8 @@ _DEST 0
|
|||
IF team < 1 THEN team = 1
|
||||
IF team > 4 THEN team = 4
|
||||
planeshadow& = shadow&(plane&)
|
||||
quartz& = _LOADFONT("fonts\segment14.otf", 16)
|
||||
bigquartz& = _LOADFONT("fonts\segment14.otf", 32)
|
||||
quartz& = _LOADFONT("fonts\Segment14.otf", 16)
|
||||
bigquartz& = _LOADFONT("fonts\Segment14.otf", 32)
|
||||
cyberbit& = _LOADFONT("fonts\cyberbit.ttf", 24, "")
|
||||
numplanes% = team * 4 - 1
|
||||
DIM points(3) AS score
|
||||
|
@ -1739,7 +1739,7 @@ GET #1, 23, secondary.axis
|
|||
GET #1, 24, scrdown.axis
|
||||
GET #1, 25, scrup.axis
|
||||
GET #1, 26, pick.axis
|
||||
quartz& = _LOADFONT("fonts\segment14.otf", sheight / 24, "")
|
||||
quartz& = _LOADFONT("fonts\Segment14.otf", sheight / 24, "")
|
||||
cyberbit& = _LOADFONT("fonts\cyberbit.ttf", sheight / 32, "")
|
||||
premetal& = _LOADIMAGE("bg\electricplane2.png")
|
||||
brushedmetal& = _NEWIMAGE(swidth, sheight, 32)
|
||||
|
@ -1776,7 +1776,7 @@ DO
|
|||
PUT #1, 2, sheight
|
||||
_PRINTMODE _KEEPBACKGROUND
|
||||
_FONT 16
|
||||
quartz& = _LOADFONT("fonts\segment14.otf", sheight / 24, "")
|
||||
quartz& = _LOADFONT("fonts\Segment14.otf", sheight / 24, "")
|
||||
cyberbit& = _LOADFONT("fonts\cyberbit.ttf", sheight / 32, "")
|
||||
END IF
|
||||
IF menu(5) THEN
|
||||
|
@ -1895,7 +1895,7 @@ _FREEIMAGE brushedmetal&
|
|||
END SUB
|
||||
|
||||
SUB pickres 'screen resolution picking dialogue
|
||||
quartz& = _LOADFONT("fonsts\segment14.otf", sheight / 16, "")
|
||||
quartz& = _LOADFONT("fonsts\Segment14.otf", sheight / 16, "")
|
||||
cyberbit& = _LOADFONT("fonts\cyberbit.ttf", sheight / 32, "")
|
||||
premetal& = _LOADIMAGE("bg\brushedmetal.png")
|
||||
brushedmetal& = _NEWIMAGE(swidth, sheight, 32)
|
||||
|
@ -1930,7 +1930,7 @@ DO
|
|||
_PUTIMAGE (0, 0)-(swidth - 1, sheight - 1), premetal&, brushedmetal&
|
||||
_FREEIMAGE premetal&
|
||||
_FONT 16
|
||||
quartz& = _LOADFONT("fonts\segment14.otf", sheight / 16, "")
|
||||
quartz& = _LOADFONT("fonts\Segment14.otf", sheight / 16, "")
|
||||
cyberbit& = _LOADFONT("fonts\cyberbit.ttf", sheight / 32, "")
|
||||
END IF
|
||||
NEXT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue