Just add this line at the beginning (1st line) of each .rpy file you have.
Code: Select all
rpy python 3
Now, what happens next... Let Tom explain it to you:
https://www.renpy.org/doc/html/changelo ... ility-mode
But in summary, divisions are not rounded (this is the main issue for simple games) and when you use the dictionary methods .keys(), .values() and .items() will not convert the dict into a list and you have to do it yourself if needed. It's fine just for iterating, but if you want to do this
Code: Select all
dictionary.values()[0]
Code: Select all
list(dictionary.values())[0]
Code: Select all
list(dictionary)
In pure Python 2 iterating over a dictionary like this:
Code: Select all
for k, v in dict.items():
textbutton k action v
But the Python 2 efficient way to do it is not supported in Python 3
Code: Select all
for k, v in dict.iteritems():
...
For more info visit: https://www.renpy.org/doc/html/implemen ... three.html
However, this is NOT PYTHON 3, just a taste of it. If you want ordered dictionaries, f strings, and the juicy data classes you will have to wait for Ren'Py 8