// This is a simple Verse script for our Secret Door # Create a variable for our Prop Mover. # A variable is like a labeled box for data. my_secret_door: PropMoverDevice = PropMoverDevice{} # Create a variable for our Switch. my_button: SwitchDevice = SwitchDevice{} # This function runs when the button is pressed. # It is an "Event Handler." on_button_press(): void = # Tell the door to start moving. my_secret_door.Start() # Optional: Play a sound here! # my_secret_door.PlaySound()