|
94.
|
|
|
Constructors are a type of function which returns a new object, and are called the same way.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:361
|
|
95.
|
|
|
When reading this documentation, you might see a function signature like:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:364
|
|
96.
|
|
|
A sample function that doesn't actually exist in Ren'Py, but is used only in documentation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:369
|
|
97.
|
|
|
This function:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:372
|
|
98.
|
|
|
Has the name "Sample"
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:374
|
|
99.
|
|
|
Has two positional parameters, a name and a delay. In a real function, the types of these parameters would be made clear from the documentation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:375
|
|
100.
|
|
|
Has one keyword argument, position, which has a default value of (0, 0).
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:378
|
|
101.
|
|
|
Since the functions ends with \*\*properties, it means that it can take :ref:`style properties <style-properties>` as additional keyword arguments. Other special entries are \*args, which means that it takes an arbitrary number of positional parameters, and \*\*kwargs, which means that the keyword arguments are described in the documentation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:381
|
|
102.
|
|
|
Python is a lot more powerful than we have space for in this manual. To learn Python in more detail, we recommend starting with the Python tutorial, which is available from `python.org <http://docs.python.org/release/2.7/tutorial/index.html>`_. While we don't think a deep knowledge of Python is necessary to work with Ren'Py, the basics of python statements and expressions is often helpful.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:387
|