Imperf3kt wrote: ↑Sat Jan 26, 2019 12:42 pm
So using anything other than four spaces means you are not following indentation previously set out.
...then this code should cause an indentation error:
Code: Select all
label start:
menu:
'one':
pass
'two':
pass
menu:
'three':
pass
'four':
pass
return
However, it doesn't happen... The indentation should be done
inside the blocks, and
separate the blocks. But what happens
between the blocks does not matter.
Actually, bypassing "the four-spaces canon" greatly simplifies the code editing.
Here a good example.
https://pp.userapi.com/c851216/v8512165 ... tEFf4Q.jpg
If I need to change the code (picture on the left) on the seventh line, for example, to add a
If-condition, I will have to move all the lines starting from the eighth and below.
But, if I don't execute "the four-spaces canon", it is enough to change only
two lines (line 7, 8, picture on the right).
P.S. I don't insist on being right. I just show you the possibilities of language. (RenPy is based on python. And python was designed to make the programmer's job easier.

)