Generally a game follows this pattern: while notQuit: game.update() userInput.process() Where the game gets updated and the user inputs gets processed at each iteration. With renpy, it handles the main game loop and inputs. If I want to add some super mario-like gameplay in between the visual novel ...
I tried to import numpy lib: pip install --target game/python-packages numpy Collecting numpy Using cached numpy-1.11.3-cp27-cp27mu-manylinux1_x86_64.whl Installing collected packages: numpy Successfully installed numpy-1.11.3 But when I import it I get an error: init python: import numpy as np Erro...
Hm, okay I tried to update @Divona code with @nyaatrap suggestions: label start: show screen doit e "rendered" init python: def tile(x, y): return LiveCrop((32*x, 32*y, 32, 32), "test.png" ) screen doit(): for y in xrange(100): for x in xrange(100): add tile(0,0): xpos 32 * x ypo...
@nyaatrap Can you give a code sample? I don't quite understand how I just started learning renpy today, so I didn't know blit was slow. In other engines, normally I would do something like build a quad, load the image as texture, then clip it and apply to the quad. Divona's way of doing it sounds li...
I have a tilesheet that has 16x16 grids that define 256 different types of terrain. How can I render the individual terrains through blit() ? I see that renpy has renpy.load_image() , but I'm unsure how to get renpy to then only render clips of the image. Most examples I've seen usually load individ...