Call/es: Difference between revisions

From StarLogo Nova Wiki
 
(Updating to match new version of source page)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>
<div lang="en" dir="ltr" class="mw-content-ltr">
<section begin=image/>[[File:Call.png|alt=The Call Block|thumb]]<section end=image/>
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
==Usage==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
<p id="tooltip">Agent calls a defined procedure to follow from the drop down menu.</p>
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
==Syntax==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
Inputs in this block:
#a created procedure from the drop down menu
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
==Example==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:call_example.gif|alt=Call example gif|thumb]]
[[File:call_example.png|alt=Call example code|thumb]]
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
In this version of the snake game, the direction the snake moves is determined by which key is typed (as instructed by the [[Special:MyLanguage/Procedure|procedure]] block). To carry out these instructions once they have been encased in a procedure we must call the procedure, as has been done for both ‘read keyboard input’ and ‘update snake tail.’
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
==Related Blocks==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
*[[Special:MyLanguage/Call (returns)|Call (returns)]]
</div>


[[Category:Procedimientos]]
[[Category:Procedimientos]]
[[Category:Code Block]]
[[Category:Code Block]]

Latest revision as of 20:11, 14 August 2023

Other languages:
The Call Block

Agent calls a defined procedure to follow from the drop down menu.

Syntax

Inputs in this block:

  1. a created procedure from the drop down menu

Example

Call example gif
Call example code

In this version of the snake game, the direction the snake moves is determined by which key is typed (as instructed by the procedure block). To carry out these instructions once they have been encased in a procedure we must call the procedure, as has been done for both ‘read keyboard input’ and ‘update snake tail.’

Related Blocks