Noah Petherbridge
44122d4130
UI improvements specifically for mobile (running the game with the `-w mobile` or `-w landscape` options) screen sizes. * Rework the Settings window to be mobile friendly to landscape oriented screens (`doodle -w landscape`) and migrate Options tab to magicform. * The toolbar in the Editor will be a single column of buttons on small screens, such as `-w mobile` (375x812) portrait mode smartphone. On larger screens the toolbar shows in two columns of buttons. * Fix tooltips not drawing on top. * Centralize the hard-coded references to specific font filenames * Add cheat code: `test load screen` to bring a sample loading screen up for a few seconds. It needs improvement on `-w landscape`
36 lines
1.2 KiB
Go
36 lines
1.2 KiB
Go
package balance
|
|
|
|
// Store a copy of the PlayerCharacterDoodad original value.
|
|
var playerCharacterDefault string
|
|
|
|
func init() {
|
|
playerCharacterDefault = PlayerCharacterDoodad
|
|
}
|
|
|
|
// IsPlayerCharacterDefault returns whether the balance.PlayerCharacterDoodad
|
|
// has been modified at runtime away from its built-in default. This is a cheat
|
|
// detection method: high scores could be tainted if you `fly like a bird` right
|
|
// to the exit in a couple of seconds.
|
|
func IsPlayerCharacterDefault() bool {
|
|
return PlayerCharacterDoodad == playerCharacterDefault
|
|
}
|
|
|
|
// The game's cheat codes
|
|
var (
|
|
CheatUncapFPS = "unleash the beast"
|
|
CheatEditDuringPlay = "don't edit and drive"
|
|
CheatScrollDuringPlay = "scroll scroll scroll your boat"
|
|
CheatAntigravity = "import antigravity"
|
|
CheatNoclip = "ghost mode"
|
|
CheatShowAllActors = "show all actors"
|
|
CheatGiveKeys = "give all keys"
|
|
CheatDropItems = "drop all items"
|
|
CheatPlayAsBird = "fly like a bird"
|
|
CheatPlayAsBoy = "pinocchio"
|
|
CheatPlayAsAzuBlue = "the cell"
|
|
CheatPlayAsThief = "play as thief"
|
|
CheatPlayAsAnvil = "megaton weight"
|
|
CheatGodMode = "god mode"
|
|
CheatDebugLoadScreen = "test load screen"
|
|
)
|