Perhaps this is asking a bit too much of Ren'py, but my experience is that many things are possible combining it with Python so I'll ask.
I would like to have a 'stat' screen in-game rendering the evolution of a given stat so far as a curve.
For instance, in the game the player is able to make gold every day. I would have to create a graph showing a simple curve with the x axis showing days and the y axis showing gold made. I guess drawing the axis would be simple enough using fixed images, and positioning the dots would be equally simple: just figure out the x spacing for 1 day and y spacing for 1 gold and write something like:
Code: Select all
for day in len(days):
draw_a_dot_at(x_spacing*day, y_spacing*gold_made[day])My question is: how can I draw the actual curve? I could always draw the dots using some simple method, but how can I make it into a curve? (Also without having horrible performance, sometimes a concern when rendering things in Ren'py)?
I'm sure there should be various ways to do that with Python, but I'm not sure which is the best way to do this within a Ren'py game.