Jump to content
Double Fine Action Forums
Sign in to follow this  
Bidiot Bales

How the heck do loupes work!?

Recommended Posts

I actually have no idea how the loupes work. I feel like an idiot because it looks really easy but I have no idea what is going on. Suffice to say I am clueless when it comes to programming. This is the info:

0 GETTABLE port.VALUE ->

1 ADD +1 ->

2 RETURN

Share this post


Link to post
Share on other sites

Think of it as 3 columns. First column is the instruction number. Second column is the instruction to be executed. The rest is the data required to execute the instruction in a human-readable format.

Basically, somewhere in the code, this function is going to be called and executed, starting from instruction 0 and incrementing. The final instruction is RETURN, with an optional value which may then be used by the original code.

How to read the data:

port.VALUE gets the VALUE data of the port table.

The data on the left of the arrow overwrites the data on the right of the arrow.

The colored crystals are data containers. They represent variables.

So in this example, the function returns the VALUE of port + 1.

Share this post


Link to post
Share on other sites

Thanks! :) I think I understand that... so how would I go about opening the door? I can plug into the 'VALUE' and '+1' ports.

EDIT: AHA! Solved! Thanks for the help. :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...