BlackBox Engine DIALOG EDITOR | HELP | WIKI | GITHUB


BlackBox Engine Core
Use F1 to open the console.

This black box has Py powers, being more accurate, version 3.8.5.

  alias                    Set given alias for a command line
  aliases                  Show list of current aliases
  addtoggle                Adds a toggle with given id and name
  concat                   Concatenate given arguments and store the value in $result
  cd                       Changes active working directory
  cls                      Clear console buffer   
  cwd                      Shows active working directory
  divide                   Divide given operators and store the value in $result
  dir                      Shows files and folders in current working directory
  dump                     Dump console buffer into given filename
  echo                     Dump given text on the console buffer
  help                     Show help about requested command
  multiply                 Multiply given operators and store the value in $result
  memdump                  Dump heap blocks to the filesystem
  subtract                 Subtract given operators and store the value in $result
  sum                      Sum given operators and store the value in $result
  set                      Set or view value of given variable
  toggle                   Set or toggle given in-game toggle
  toggleconsole            Open or close the console interface
  togglelist               Show list of current in-game toggles
  unalias                  Unset given alias      
  unset                    Unset given variable   
  unsetall                 Unsets every variable set
  vars                     Show list of defined variables
  view                     Dump given filename over the console
  writeconfig              Stores variable settings under given filename
  xor                      Apply XOR over given value and store value in $result

SCRIPTING API . Use help  for details

------------------------------
blackbox
------------------------------
  ctrlc(  ) - Returns TRUE if CTRL+C was pressed"
  version(  ) - Return current BlackBox engine version"
  epoch(  ) - Return current engine epoch uptime"

------------------------------
console 
------------------------------
  print( text ) - Dump given text over console"
  cls(  ) - Clean console buffer"

------------------------------
vpu
------------------------------
  createanim( width, height, sprite_handle ) - Return Handle to new Animation object"
  createsprite( width, height, filename ) - Returns Handle to Sprite object create upon given filename"
  createsurf( width, height ) - Returns Handle to Surface object to be drawn arbitrarily to screen"
  dimensions(  ) - Returns selected bitmap [ width, height ] "
  disable( layer ) - Toggle off given vpu layer"
  deleteanim( handle ) - Delete Animation identified by given Handle""
  deletesprite( handle ) - Delete Sprite identified by given Handle""
  deletesurf( handle ) - Delete Surface identified by given Handle""
  drawanim( handle, x, y ) - Draw animation identified by given handle onto given coordinates""
  drawsprite( handle, x, y ) - Draw Sprite identified by given handle onto given coordinates""
  drawsurf( handle, x, y ) - Draw surface identified by given handle onto given coordinates""
  enable( layer ) - Toggle on given vpu layer"
  fadein(  ) - Fade screen from black"
  fadeout(  ) - Fade screen to black"
  fill( r, g, b, a ) - Fill selected bitmap with given color or default color"
  frames(  ) - Return actual frame count"
  fullscreen( enabled ) - Toggle fullscreen mode"
  print( text, x, y ) - Print given text at given coordinates"
  pset( x, y ) - Draw a pixel onto selected surface onto given coordinates""
  restart(  ) - Restart Video Processing Unit"
  rotate( layer, angle ) - Rotate specified layer (0-11) given degrees"
  scale( layer, scale_x, scale_y ) - Change specified layer [0-11] given horizontal and vertical scale factor"
  select( layer ) - Select given layer to perform next graphic operations onto it"
  setcolor( r, g, b, a ) - Sets current painting color"
  setrotation( layer, angle ) - Sets rotation for specified layer (0-11) at given degrees"
  setscale( layer, scale_x, scale_y ) - Sets scale for specified layer [0-11] given horizontal and vertical values"
  update(  ) - Allow blackbox engine to perform its rendering based input and output operations"