I should have done it a long time ago, but ~things happened~. Ahem, anyway, I wrote a bunch of custom code for Cute Demon Crashers! last year, and we all thought people could benefit from it. The source code was pretty much available already since last year's NaNoRenO, but I never announced it (and apparently people didn't know where to find it?)
Anyway, you'll want to go here for the interesting stuff in the code (the code for the whole game is released, btw): https://github.com/robotlolita/cute-dem ... ame/custom
What's in it?
- A bunch of utility functions/Ren'Py actions (in functions.rpy and actions.rpy). I'm not sure these are actually interesting to other people, but oh well.
- A couple of objects for managing complex state in Ren'Py that actually works with the Rollback feature (in store.rpy)
- The StateMachineDisplayable and ConditionSwitch, which work like the ConditionSwitch thingie BUT support transitions between each state (in graphics.rpy, this is probably the thing that people'd fine most useful I guess?)
- A PannableDisplayable custom displayable that you can use for something prettier than Viewport when showing big images in a gallery (in graphics.rpy, requires you to provide your own assets for the arrow graphics thingies)
- A bunch of objects for custom galleries that have, uh, a lot of things in it besides CGs? (we had scene replays, tutorials, character outfits, and a bunch of other stuff). These might serve as reference if you have to write a gallery like that, but I kinda doubt it'd be that useful (in gallery.rpy)
If you have any questions/problems with the code, you can either send me a message on Twitter (https://twitter.com/robotlolita), or email me (queen [at] robotlolita.me), and I'll try to get back to you as soon as possible. You can try PM'ing me here, but I don't visit the forums often, and GMail seems to not send me all notifications when people PM me? It's weird :x