-
-
Notifications
You must be signed in to change notification settings - Fork 10
action_sequence_script
scripting in vc64web can be expressed in two different languages. In javascript for more complex scenarios and in action-sequence-script a script language specifically designed for the basic needs of the c64 emulation.
If you don't like to bother with this simple script language and want directly get to the real complex javascript language then you should know that you can always write action-sequence-script in javascript too.
You do can this action("...put some action script in here...")
e.g. javascript fire on joystick1 for 100ms expressed with a action-sequence-script call
action('j1fire1=>100ms=>j1fire0'); This chapter is about action-sequence-script.
simulates a keyboard press,
for example B for drop a bomb in a game
enclosed in single quotes like 'load"$",8,1'
j<number><direction><press/release>
for example
j1fire1 or j2down1 followed somewhen by a j2down0
<number>ms
for example
1000ms for delaying 1 second
examples:
j1fire1=>100ms=>j1fire0
simple loops are expressed in this way:
loop5{j1fire1=>100ms=>j1fire0=>150ms}
the number directly after the keyword loop expresses how often the loop has to be repeated
lets look this in real on vc64web
- simple hashtag preconfiguration
- preconfig with JSON notation
- using direct start links for sharing on social media
- preconfig of scripts and buttons
- scripting support for simple tasks
- scripting support for complex tasks like programming a game specific AI
lightweight integration into your own webpage (with only a few lines of code)
- using the web player for embedding and controlling vc64web inside another webpage
- preloading the web player with specific system roms
- send scripts into the emulator via the webplayer
- customizing the icon bar at the bottom of the webplayer
- how to preload original system roms and autostart a .d64 title
create a standalone package which contain all files to run your C64 program