Difference between revisions of "A/V Control Commands"
Line 15: | Line 15: | ||
[[videoPriority(new priority)]] | [[videoPriority(new priority)]] | ||
− | videoControl(what command) | + | [[videoControl(what command)]] |
− | stopVideo(what state) | + | [[stopVideo(what state)]] |
− | characterSprite(which number, sprite attribute, sprite X, sprite Y, sprite height, sprite value) | + | [[characterSprite(which number, sprite attribute, sprite X, sprite Y, sprite height, sprite value)]] |
− | numbers(which number, number Type, number X, number Y, number value) | + | [[numbers(which number, number Type, number X, number Y, number value)]] |
− | showProgressBar(which Graphic, bar brightness, x pos, y pos, length of bar, height of bar) | + | [[showProgressBar(which Graphic, bar brightness, x pos, y pos, length of bar, height of bar)]] |
− | killNumbers() | + | [[killNumbers()]] |
− | killTimer(which number) | + | [[killTimer(which number)]] |
− | AddScore(score amount) | + | [[AddScore(score amount)]] |
− | SetScore(which player) | + | [[SetScore(which player)]] |
− | playMusic(clip0, clip1) | + | [[playMusic(clip0, clip1)]] |
− | playMusicOnce(clip0, clip1) | + | [[playMusicOnce(clip0, clip1)]] |
− | stopMusic() | + | [[stopMusic()]] |
− | volumeSFX(which channel, volume left, volume right) | + | [[volumeSFX(which channel, volume left, volume right)]] |
− | fadeMusic(fade speed, fade target) | + | [[fadeMusic(fade speed, fade target)]] |
− | repeatMusic(what state) | + | [[repeatMusic(what state)]] |
− | EOBnumbers(whichNumber, number value) | + | [[EOBnumbers(whichNumber, number value)]] |
[[Update(attract mode state)]] | [[Update(attract mode state)]] | ||
− | sendHighScores(which score) | + | [[sendHighScores(which score)]] |
− | sendInitials(which player, which character) | + | [[sendInitials(which player, which character)]] |
− | value(x pos, y pos, the value) | + | [[value(x pos, y pos, the value)]] |
− | text(x pis, y pos, the text string) | + | [[text(x pis, y pos, the text string)]] |
− | graphicsMode(do what, the modifier) | + | [[graphicsMode(do what, the modifier)]] |
− | loadSprite(clip0, clip1, clip2, doLoad) | + | [[loadSprite(clip0, clip1, clip2, doLoad)]] |
− | sendSwitches() | + | [[sendSwitches()]] |
− | writeEEPROM(which address, what value) | + | [[writeEEPROM(which address, what value)]] |
− | readEEPROM(which address) | + | [[readEEPROM(which address)]] |
− | showValue(number value, flash time, score flag) | + | [[showValue(number value, flash time, score flag)]] |
Revision as of 20:00, 21 September 2014
These are the commands you call from the main game kernel to control the Propeller A/V. Most commands do not return a value unless noted.
playSFX(which channel, which folder, clip0, clip1, priority)
playSFXQ(which channel, which folder, clip0, clip1, priority)
stereoSFX(which channel, which folder, clip0, clip1, priority, left volume, right volume)
video(which folder, clip0, clip1, attributes, progressBar, priority)
videoQ(which folder, clip0, clip1, attributes, progressBar, priority)
characterSprite(which number, sprite attribute, sprite X, sprite Y, sprite height, sprite value)
numbers(which number, number Type, number X, number Y, number value)
showProgressBar(which Graphic, bar brightness, x pos, y pos, length of bar, height of bar)
volumeSFX(which channel, volume left, volume right)
fadeMusic(fade speed, fade target)
EOBnumbers(whichNumber, number value)
sendInitials(which player, which character)
value(x pos, y pos, the value)
text(x pis, y pos, the text string)
graphicsMode(do what, the modifier)
loadSprite(clip0, clip1, clip2, doLoad)