Skip to content

Simple program 2.0

ibarbech edited this page May 15, 2018 · 5 revisions

Tutorial for create a simple program

Tutorial for create a program with events

This type of program often have only one type of block where is all code, its name is main.

Below is shown how you can create this type of programs.

Open a example

In folder learnbot_dsl/learnbotCode/examples/ there are some examples. We can open the example follow_red_line.blockProject with the program Learnblock.

Program for the LearnBot follow the red lines

In order to execute this example you shouldn't check the checkbox Used Events.

This type of program have a variable with the time of execution of all program. Exist a function elapsedTime(umbral) that retunred true when global time > umbral.