Documentation
¶
Index ¶
- Constants
- Variables
- func GameOverPanel(e *spin.ScriptEnv)
- func Load(eng *spin.Engine)
- func ModeAndBlinkingScorePanel(e *spin.ScriptEnv, r spin.Renderer, title string, score int, blinkOn bool)
- func ModeAndBlinkingScoreScript(e *spin.ScriptEnv, r spin.Renderer, title string, score int) bool
- func ModeAndScorePanel(e *spin.ScriptEnv, r spin.Renderer, title string, score int)
- func ModeIntroPanel(e *spin.ScriptEnv, blinkOn bool, text [3]string)
- func ModeIntroScript(e *spin.ScriptEnv, line1 string, line2 string, line3 string) bool
- func Multiplier(store spin.Store) int
- func RegisterMusic(eng *spin.Engine)
- func RegisterScripts(eng *spin.Engine)
- func RegisterSounds(eng *spin.Engine)
- func RegisterSpeech(eng *spin.Engine)
- func ScoreAndLabelPanel(e *spin.ScriptEnv, r spin.Renderer, score int, label string)
- func TimerAndScorePanel(e *spin.ScriptEnv, r spin.Renderer, title string, timer int, score int, ...)
- type Vars
Constants ¶
View Source
const ( MusicBadImpersonator = "jdx.MusicBadImpersonator" MusicMain = "jdx.MusicMain" MusicMatch = "jdx.MusicMatch" MusicMatchHit = "jdx.MusicMatchHit" MusicMultiball = "jdx.MusicMultiball" MusicMode1 = "jdx.MusicMode1" MusicMode2 = "jdx.MusicMode2" MusicPlungeLoop = "jdx.MusicPlungeLoop" )
View Source
const ( SoundBadImpersonatorGunFire = "jdx.SoundBadImpersonatorGunFire" SoundBadImpersonatorThrow = "jdx.SoundBadImpersonatorThrow" SoundBallLost = "jdx.SoundBallLost" SoundBlackoutJackpot = "jdx.SoundBlackoutJackpot" SoundBonus = "jdx.SoundBonus" SoundDing = "jdx.SoundDing" SoundGunLoadSniper = "jdx.SoundGunLoadSniper" SoundGunFire = "jdx.SoundGunFire" SoundManhuntAutoFire = "jdx.SoundManhuntAutoFire" SoundManhuntSingleFire = "jdx.SoundManhuntSingleFire" SoundMeltdownCracking = "jdx.SoundMeltdownCracking" SoundMeltdownExplosion = "jdx.SoundMeltdownExplosion" SoundMeltdownKlaxon = "jdx.SoundMeltdownKlaxon" SoundMotorcycleStart = "jdx.SoundMotorcycleStart" SoundMotorRev = "jdx.SoundMotorRev" SoundPoliceSiren = "jdx.SoundPoliceSiren" SoundPursuitEngine = "jdx.SoundPursuitEngine" SoundPursuitExplosion = "jdx.SoundPursuitExplosion" SoundPursuitMissile = "jdx.SoundPursuitMissile" SoundReturnLane = "jdx.SoundReturnLane" SoundShock = "jdx.SoundShock" SoundSling = "jdx.SoundSling" SoundSafecrackerExplosion = "jdx.SoundSafecrackerExplosion" SoundSafecrackerGunFire1 = "jdx.SoundSafecrackerGunFire1" SoundSafecrackerGunFire2 = "jdx.SoundSafecrackerGunFire2" SoundSafecrackerGunFire3 = "jdx.SoundSafecrackerGunFire3" SoundSafecrackerLaserFire = "jdx.SoundSafecrackerLaserFire" SoundSafecrackerTankFire = "jdx.SoundSafecrackerTankFire" SoundSniperSplat = "jdx.SoundSniperSplat" SoundSnore = "jdx.SoundSnore" SoundSuccess = "jdx.SoundSuccess" SoundTankDestroyed = "jdx.SoundTankDestroyed" SoundTankFire = "jdx.SoundTankFire" SoundTireSqueal1 = "jdx.SoundTireSqueal1" SoundTireSqueal2 = "jdx.SoundTireSqueal2" SoundWalking = "jdx.SoundWalking" )
View Source
const ( SpeechAaaaah = "jdx.SpeechAaaaah" SpeechAllReactorsApprochingCriticalMass = "jdx.SpeechAllReactorsApprochingCriticalMass" SpeechAllReactorsStabilized = "jdx.SpeechAllReactorsStabilized" SpeechBattleTankDamageAt = "jdx.SpeechBattleTankDamageAt" SpeechBattleTankDestroyed = "jdx.SpeechBattleTankDestroyed" SpeechBattleTankSightedInSectorSix = "jdx.SpeechBattleTankSightedInSectorSix" SpeechBoo = "jdx.SpeechBoo" SpeechCivilDisorderHasEruptedInHeitschMusicHall = "jdx.SpeechCivilDisorderHasEruptedInHeitschMusicHall" SpeechContainmentFailureAtThreeMeterIsland = "jdx.SpeechContainmentFailureAtThreeMetereIsland" SpeechControlToDredd = "jdx.SpeechControlToDredd" SpeechDinnerTime = "jdx.SpeechDinnerTime" SpeechDreddToControl = "jdx.SpeechDreddToControl" SpeechFour = "jdx.SpeechFour" SpeechFreeze = "jdx.SpeechFreeze" SpeechGoHome = "jdx.SpeechGoHome" SpeechICanSeeMyHouseFromHere = "jdx.SpeechICanSeeMyHouseFromHere" SpeechIllBeBack = "jdx.SpeechIllBeBack" SpeechImInPursuitOfAStolenVehicle = "jdx.SpeechImInPursuitOfAStolenVehicle" SpeechImStakingOutACrackHouseInSectorTwentyThree = "jdx.SpeechImStakingOutACrackHouseInSectorTwentyThree" SpeechInteresting = "jdx.SpeechInteresting" SpeechItsALongWayDown = "jdx.SpeechItsALongWayDown" SpeechIWonderWhatsDownThere = "jdx.SpeechIWonderWhatsDownThere" SpeechIWonderWhatsOverThere = "jdx.SpeechIWonderWhatsOverThere" SpeechLawMasterComputerOnlineWelcomeAboard = "jdx.SpeechLawMasterComputerOnlineWelcomeAboard" SpeechMegaCityOneIsBlackedOutBeOnTheAlertForLooters = "jdx.SpeechMegaCityOneIsBlackedOutBeOnTheAlertForLooters" SpeechMeltdownIsImminent = "jdx.SpeechMeltdownIsImminent" SpeechOne = "jdx.SpeechOne" SpeechOpenThatSafe = "jdx.SpeechOpenThatSafe" SpeechOrIWillShoot = "jdx.SpeechOrIWillShoot" SpeechPlayer2 = "jdx.SpeechPlayer2" SpeechPlayer3 = "jdx.SpeechPlayer3" SpeechPlayer4 = "jdx.SpeechPlayer4" SpeechReactorOneStabilized = "jdx.SpeechReactorOneStabilized" SpeechReactorTwoStabilized = "jdx.SpeechReactorTwoStabilized" SpeechSendBackupUnits = "jdx.SpeechSendBackupUnits" SpeechShootLeftRamp = "jdx.SpeechShootLeftRamp" SpeechShootRightRamp = "jdx.SpeechShootRightRamp" SpeechShootSniperTower = "jdx.SpeechShootSniperTower" SpeechSixtyPercent = "jdx.SpeechSixtyPercent" SpeechSniperEliminated = "jdx.SpeechSniperEliminated" SpeechSniperIsShootingIntoCrowdFromJohnsonTower = "jdx.SpeechSniperIsShootingIntoCrowdFromJohnsonTower" SpeechStop = "jdx.SpeechStop" SpeechSuspectGotAway = "jdx.SpeechSuspectGotAway" SpeechSuspiciousCharacterReportedInEugeneBlock = "jdx.SpeechSuspiciousCharacterReportedInEugeneBlock" SpeechThree = "jdx.SpeechThree" SpeechThreeMeterIslandIsSecured = "jdx.SpeechThreeMeterIslandIsSecured" SpeechTwentyFivePercent = "jdx.SpeechTwentyFivePercent" SpeechTwo = "jdx.SpeechTwo" SpeechUseFireButtonToLaunchBall = "jdx.SpeechUseFireButtonToLaunchBall" SpeechWakeUpYouGeezer = "jdx.SpeechWakeUpYouGeezer" SpeechYourDrivingDaysAreOverPunk = "jdx.SpeechYourDrivingDaysAreOverPunk" SpeechYouSuck = "jdx.SpeechYouSuck" )
View Source
const ( ScriptAttractMode = "jdx.ScriptAttractMode" ScriptAttractModeSlide = "jdx.ScriptAttractModeSlide" ScriptBadImpersonatorComplete = "jdx.ScriptBadImpersonatorComplete" ScriptBadImpersonatorCrowd = "jdx.ScriptBadImpersonatorCrowd" ScriptBadImpersonatorHit = "jdx.ScriptBadImpersonatorHit" ScriptBadImpersonatorMode = "jdx.ScriptBadImpersonatorMode" ScriptBall = "jdx.ScriptBall" ScriptBase = "jdx.ScriptBase" ScriptBlackoutJackpot = "jdx.ScriptBlackoutJackpot" ScriptBlackoutMode = "jdx.ScriptBlackoutMode" ScriptBonusMode = "jdx.ScriptBonusMode" ScriptChain = "jdx.ScriptChain" ScriptDemo = "jdx.ScriptDemo" ScriptGame = "jdx.ScriptGame" ScriptManhuntComplete = "jdx.ScriptManhuntComplete" ScriptManhuntMode = "jdx.ScriptManhuntMode" ScriptMeltdownComplete = "jdx.ScriptMeltdownComplete" ScriptMeltdownIncomplete = "jdx.ScriptMeltdownIncomplete" ScriptMeltdownMode = "jdx.ScriptMeltdownMode" ScriptMatchMode = "jdx.ScriptMatchMode" ScriptPlungeMode = "jdx.ScriptPlungeMode" ScriptProgram = "jdx.ScriptProgram" ScriptPursuitComplete = "jdx.ScriptPursuitComplete" ScriptPursuitIncomplete = "jdx.ScriptPursuitIncomplete" ScriptPursuitMode = "jdx.ScriptPursuitMode" ScriptSafecrackerComplete = "jdx.ScriptSafecrackerComplete" ScriptSafecrackerIncomplete = "jdx.ScriptSafecrackerIncomplete" ScriptSafecrackerMode = "jdx.ScriptSafecrackerMode" ScriptSafecrackerMode1 = "jdx.ScriptSafecrackerMode1" ScriptSafecrackerMode2 = "jdx.ScriptSafecrackerMode2" ScriptSafecrackerOpenThatSafe = "jdx.ScriptSafecrackerOpenThatSafe" ScriptSniperComplete = "jdx.ScriptSniperComplete" ScriptSniperIncomplete = "jdx.ScriptSniperIncomplete" ScriptSniperMode = "jdx.ScriptSniperMode" ScriptSniperMode1 = "jdx.ScriptSniperMode1" ScriptSniperMode2 = "jdx.ScriptSniperMode2" ScriptStakeoutComplete = "jdx.ScriptStakeoutComplete" ScriptStakeoutMode = "jdx.ScriptStakeoutMode" ScriptStakeoutInteresting = "jdx.ScriptStakeoutInteresting" ScriptTankHit = "jdx.ScriptTankHit" ScriptTankComplete = "jdx.ScriptTakComplete" ScriptTankIncomplete = "jdx.ScriptTankIncomplete" ScriptTankMode = "jdx.ScriptTankMode" ScriptUseFireButton = "jdx.ScriptUseFireButton" )
View Source
const ( ScoreReturnLane = 50_000 ScoreSling = 1_930 ScoreOutlane = 100_000 ScorePost = 5_210 ScoreBadImpersonator0 = 3_000_000 ScoreBadImpersonatorN = 5_000_000 ScoreBlackoutJackpot = 10_000_000 ScoreManhunt0 = 3_000_000 ScoreManhuntN = 6_000_000 ScoreMeltdown0 = 3_000_000 ScoreMeltdown1 = 13_000_000 ScoreMeltdown2 = 23_000_000 ScoreMeltdown3 = 33_000_000 ScorePursuit0 = 3_000_000 ScorePursuit1 = 6_000_000 ScorePursuit2 = 12_000_000 ScorePursuit3 = 36_000_000 ScoreSafecrackerStart = 8_000_000 ScoreSafecrackerEnd = 3_000_000 ScoreSafecrackerDec = 75_400 ScoreSniperStart = 20_000_000 ScoreSniperEnd = 5_000_000 ScoreSniperDec = 78_330 ScoreStakeout0 = 3_000_000 ScoreStakeoutN = 5_000_000 ScoreTank0 = 3_000_000 ScoreTank1 = 12_000_000 ScoreTank2 = 24_000_000 ScoreTank3 = 36_000_000 ScoreMinimumBonus = 1_000_000 ScoreCrimeSceneBonus = 1_000_000 )
Scores
View Source
const ( ModePursuit = 1 << iota ModeBlackout ModeSniper ModeBattleTank ModeBadImpersonator ModeMeltdown ModeSafeCracker ModeManhunt ModeStakeout ModePlunge ModeAirRaid ModeNone )
View Source
const ( AllChainModes = ModePursuit | ModeBlackout | ModeSniper | ModeBattleTank | ModeBadImpersonator | ModeMeltdown | ModeSafeCracker | ModeManhunt | ModeStakeout MinChainMode = ModePursuit MaxChainMode = ModeStakeout MaxPlayers = 4 )
View Source
const (
MessageStartChainMode = "jdx.StartChainMode"
)
Variables ¶
View Source
var ( Modes = []int{ ModePursuit, ModeBlackout, ModeSniper, ModeBattleTank, ModeBadImpersonator, ModeMeltdown, ModeSafeCracker, ModeManhunt, ModeStakeout, } ModeLamps = map[int]string{ ModePursuit: jd.LampPursuit, ModeBlackout: jd.LampBlackout, ModeSniper: jd.LampSniper, ModeBattleTank: jd.LampBattleTank, ModeBadImpersonator: jd.LampBadImpersonator, ModeMeltdown: jd.LampMeltdown, ModeSafeCracker: jd.LampSafeCracker, ModeManhunt: jd.LampManhunt, ModeStakeout: jd.LampStakeout, } ModeScripts = map[int]string{ ModePursuit: ScriptPursuitMode, ModeBlackout: ScriptBlackoutMode, ModeSniper: ScriptSniperMode, ModeBattleTank: ScriptTankMode, ModeBadImpersonator: ScriptBadImpersonatorMode, ModeMeltdown: ScriptMeltdownMode, ModeSafeCracker: ScriptSafecrackerMode, ModeManhunt: ScriptManhuntMode, ModeStakeout: ScriptStakeoutMode, } )
Functions ¶
func GameOverPanel ¶ added in v0.6.0
func ModeAndBlinkingScorePanel ¶ added in v0.6.0
func ModeAndBlinkingScoreScript ¶ added in v0.6.0
func ModeAndScorePanel ¶ added in v0.6.0
func ModeIntroPanel ¶ added in v0.6.0
func ModeIntroScript ¶ added in v0.6.0
func Multiplier ¶ added in v0.6.0
func RegisterMusic ¶
func RegisterScripts ¶
func RegisterSounds ¶
func RegisterSpeech ¶
func ScoreAndLabelPanel ¶ added in v0.6.0
Types ¶
type Vars ¶ added in v0.5.0
type Vars struct { AttractModeSlide int AwardedModes int BadImpersonatorBonus int BadImpersonatorTargets int CrimeScenes int ManhuntBonus int MeltdownBonus int Mode int Multiplier int PursuitBonus int SafecrackerAttempts int SafecrackerBonus int SafecrackerScore int SelectedMode int SniperBonus int SniperScore int StakeoutBonus int StakeoutCallout int StartModeLeft bool TankBonus int TankHits int Timer int }
Source Files
¶
- assets_music.go
- assets_sound.go
- assets_speech.go
- demo.go
- mode_attract.go
- mode_blackout.go
- mode_bonus.go
- mode_impersonator.go
- mode_manhunt.go
- mode_match.go
- mode_meltdown.go
- mode_plunge.go
- mode_pursuit.go
- mode_safecracker.go
- mode_sniper.go
- mode_stakeout.go
- mode_tank.go
- module.go
- panels.go
- scripts.go
- scripts_ball.go
- scripts_chain.go
- scripts_game.go
- scripts_mode.go
- scripts_program.go
- vars.go
Click to show internal directories.
Click to hide internal directories.