jdx

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Functions

func GameOverPanel added in v0.6.0

func GameOverPanel(e *spin.ScriptEnv)

func Load

func Load(eng *spin.Engine)

func ModeAndBlinkingScorePanel added in v0.6.0

func ModeAndBlinkingScorePanel(e *spin.ScriptEnv, r spin.Renderer, title string, score int, blinkOn bool)

func ModeAndBlinkingScoreScript added in v0.6.0

func ModeAndBlinkingScoreScript(e *spin.ScriptEnv, r spin.Renderer, title string, score int) bool

func ModeAndScorePanel added in v0.6.0

func ModeAndScorePanel(e *spin.ScriptEnv, r spin.Renderer, title string, score int)

func ModeIntroPanel added in v0.6.0

func ModeIntroPanel(e *spin.ScriptEnv, blinkOn bool, text [3]string)

func ModeIntroScript added in v0.6.0

func ModeIntroScript(e *spin.ScriptEnv, line1 string, line2 string, line3 string) bool

func Multiplier added in v0.6.0

func Multiplier(store spin.Store) int

func RegisterMusic

func RegisterMusic(eng *spin.Engine)

func RegisterScripts

func RegisterScripts(eng *spin.Engine)

func RegisterSounds

func RegisterSounds(eng *spin.Engine)

func RegisterSpeech

func RegisterSpeech(eng *spin.Engine)

func ScoreAndLabelPanel added in v0.6.0

func ScoreAndLabelPanel(e *spin.ScriptEnv, r spin.Renderer, score int, label string)

func TimerAndScorePanel added in v0.6.0

func TimerAndScorePanel(e *spin.ScriptEnv, r spin.Renderer, title string, timer int, score int, instruction string)

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
}

func GetVars added in v0.5.0

func GetVars(store spin.Store) *Vars

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL