--[[ * * Singe 3 * Copyright (C) 2006-2026 Scott Duensing * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 3 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. * * --]] -- An example of ZeroBrane Studio's user.lua for working on Singe games (Edit > Preferences > -- Settings: User). The line that matters loads the Singe package from the folder Singe unpacks it -- into, which stays current as Singe is updated; point it at your own Singe folder and remove the -- dashes. -- package "/path/to/Singe/Singe/ZeroBrane/singe.lua" -- Where Singe is, when it is not in the game's folder, a folder above it, or on the PATH. -- path.singe = "/path/to/Singe/Singe-v3.00-Linux-x86_64" -- --reload is passed unless this says otherwise, and the Reference is found beside Singe unless -- this names it. -- singe = { reload = false, reference = "/path/to/Singe/Singe-Docs-v3.00/Reference.html" } -- Editor settings to match Singe's own scripts. editor.tabwidth = 4 editor.usetabs = true editor.usewrap = false editor.whitespace = true editor.autoactivate = true styles = loadfile('cfg/tomorrow.lua')('TomorrowNightBright') stylesoutshell = styles -- apply the same scheme to Output/Console windows styles.auxwindow = styles.text -- apply text colors to auxiliary windows styles.whitespace = {fg = {75, 75, 75}}