ChocolateBird/globals.gd

32 lines
899 B
GDScript3
Raw Normal View History

2023-07-25 14:21:10 +09:30
extends Node
2023-07-31 23:33:05 +09:30
const INDEX_FORMAT := Image.FORMAT_L8
2023-12-06 18:19:19 +10:30
const FOLDER_ICON := preload('res://theme/icons/file_folder.tres')
const ALLOWED_EXTS := PoolStringArray(['bin', 'iso', 'sfc', 'smc', 'srm', 'gba'])
const CD_EXTS := PoolStringArray(['bin', 'iso']) # If you have a weird disc image format, you can mount it yourself, leave me out of it
const EXT_ICONS := {
'bin': preload('res://theme/icons/file_binary.tres'),
'iso': preload('res://theme/icons/file_disc.tres'),
'sfc': preload('res://theme/icons/file_cart.tres'),
'smc': preload('res://theme/icons/file_cart.tres'),
'gba': preload('res://theme/icons/file_cart.tres'),
}
const TYPE_DESCS := {
'bin': 'Binary',
'iso': 'CD-ROM Image',
'sfc': 'SNES ROM',
'smc': 'SNES ROM',
'gba': 'GBA ROM',
'srm': 'SNES Savefile'
}
2023-07-25 14:21:10 +09:30
var time = 0.0
var time_mult = 1.0
func _ready():
set_process(true)
func _process(delta):
time += delta * time_mult