Difference between revisions of "A/V Control Commands"

From pinHeck Wiki
Jump to: navigation, search
Line 1: Line 1:
 
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.
 
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.
 +
 +
[[musicLoop(unsigned char whichChannel, unsigned long startingPoint, unsigned long loopingPoint, unsigned long jumpPoint)]]
 +
 +
[[videoControl(unsigned char whichLayer, unsigned char controlByte, unsigned char xPos, unsigned char yPos, unsigned long frameTarget)]]
 +
 +
[[layerLoad(unsigned char whichLayer, unsigned char v1, unsigned char v2, unsigned char v3, unsigned char vidAttributes, unsigned char controlByte, unsigned char xPos, unsigned char yPos, unsigned char vP, unsigned char DMDsearch)]]
  
 
[[playSFX(which channel, which folder, clip0, clip1, priority)]]
 
[[playSFX(which channel, which folder, clip0, clip1, priority)]]
Line 14: Line 20:
  
 
[[videoPriority(new priority)]]
 
[[videoPriority(new priority)]]
 
[[videoControl(what command)]]
 
  
 
[[stopVideo(what state)]]
 
[[stopVideo(what state)]]
Line 22: Line 26:
  
 
[[numbers(which number, number Type, number X, number Y, number value)]]
 
[[numbers(which number, number Type, number X, number Y, number value)]]
 +
 +
[[numbersPriority(unsigned char whichNumber, unsigned char numType, unsigned char numX, unsigned char numY, unsigned long numValue, unsigned char matchPriority)]]
  
 
[[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()]]
 +
 +
[[killScoreNumbers()]]
  
 
[[killTimer(which number)]]
 
[[killTimer(which number)]]
  
[[AddScore(score amount)]]
+
[[addScore(score amount)]]
 +
 
 +
[[setScore(which player)]]
  
[[SetScore(which player)]]
+
[[manualScore(unsigned char whichScore, unsigned long whatValue)]]
  
 
[[playMusic(clip0, clip1)]]
 
[[playMusic(clip0, clip1)]]

Revision as of 14:59, 12 September 2015

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.

musicLoop(unsigned char whichChannel, unsigned long startingPoint, unsigned long loopingPoint, unsigned long jumpPoint)

videoControl(unsigned char whichLayer, unsigned char controlByte, unsigned char xPos, unsigned char yPos, unsigned long frameTarget)

layerLoad(unsigned char whichLayer, unsigned char v1, unsigned char v2, unsigned char v3, unsigned char vidAttributes, unsigned char controlByte, unsigned char xPos, unsigned char yPos, unsigned char vP, unsigned char DMDsearch)

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)

killQ()

videoPriority(new priority)

stopVideo(what state)

characterSprite(which number, sprite attribute, sprite X, sprite Y, sprite height, sprite value)

numbers(which number, number Type, number X, number Y, number value)

numbersPriority(unsigned char whichNumber, unsigned char numType, unsigned char numX, unsigned char numY, unsigned long numValue, unsigned char matchPriority)

showProgressBar(which Graphic, bar brightness, x pos, y pos, length of bar, height of bar)

killNumbers()

killScoreNumbers()

killTimer(which number)

addScore(score amount)

setScore(which player)

manualScore(unsigned char whichScore, unsigned long whatValue)

playMusic(clip0, clip1)

playMusicOnce(clip0, clip1)

stopMusic()

volumeSFX(which channel, volume left, volume right)

fadeMusic(fade speed, fade target)

repeatMusic(what state)

EOBnumbers(whichNumber, number value)

Update(attract mode state)

sendHighScores(which score)

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)

sendSwitches()

writeEEPROM(which address, what value)

readEEPROM(which address)

showValue(number value, flash time, score flag)