I don't know if i'm the right place for that, but here it is.
I'm a lazy programmer, and I figured that writing all this stuff for declarations was not for me (Shells-scripts lovers will understand :p).
So, here is the how-to. I assume that all your sprites are in a subdirectory of /game/ and you have one folder for each character (and of course the name of the directory is the name of the character). Your BG are in a directory.
To sum up, here's the recommended struct.:
Code: Select all
/game/
|_______/Characters/
| |_________/Kiko/
| | |______________/kiko_uniform_angry.png
| | |______________/kiko_casual_angry.png
| |
| |_________/Sigmund/
| |______________/sigmund_feud.png
| |______________/sigmund_uniform_hungry.png
|
|
|________/BG/
| |______________/messy_kitchen.jpg
| |______________/messy-graveyard.jpg
|
|__renpy_init_script.py
In this file you'll have all the declarations done. The script will build character tags (ex: "kik" for Kiko, "sig" for Sigmund, etc...)
This script is fully commented so you can customize it easily.(I can help you if you wish... Don't be shy !)
Well, hope it will be useful.
Exemple of output :
Code: Select all
# Ren'Py, by Py'Tom (Kudos to you !)
#
# You can place the script of your game in this file.
#
# Declare images below this line, using the image statement.
# eg. image eileen happy = "eileen_happy.png"
#
# Declare characters used by this game.
# Characters declaration ##############################################################################
define asa character ("Asaga", who_xalign=0.5)
define ava character ("Ava", who_xalign=0.5)
define cos character ("Cosette", who_xalign=0.5)
# Sprites declaration ###################################################################################
image asaga plugsuit neutralalt smile:"/Character/asaga_plugsuit_neutralalt_smile.png"
yanchor 1 ypos 1 xanchor 0.5
zoom 0.6
subpixel True
image asaga plugsuit handsonhips mad:"/Character/asaga_plugsuit_handsonhips_mad.png"
yanchor 1 ypos 1 xanchor 0.5
zoom 0.6
subpixel True
image asaga vpose:"/Character/asaga_vpose.png"
yanchor 1 ypos 1 xanchor 0.5
zoom 0.6
subpixel True
image asaga plugsuit excited happy:"/Character/asaga_plugsuit_excited_happy.png"
yanchor 1 ypos 1 xanchor 0.5
zoom 0.6
subpixel True
image cosette plugsuit neutral yanderegrin:"/Character/cosette_plugsuit_neutral_yanderegrin.png"
yanchor 1 ypos 1 xanchor 0.5
zoom 0.6
subpixel True
image cosette plugsuit point yanderegrin:"/Character/cosette_plugsuit_point_yanderegrin.png"
yanchor 1 ypos 1 xanchor 0.5
zoom 0.6
subpixel True
[.................]
[and so on]
# BG begins here ####################################################################################
image bg bridgenest:/Background/bridgenest.jpg
x.align 0.5
y.align 0.5
image bg hangar:/Background/hangar.jpg
x.align 0.5
y.align 0.5
image bg bridge:/Background/bridge.jpg
x.align 0.5
y.align 0.5
image bg sickbay:/Background/sickbay.jpg
x.align 0.5
y.align 0.5
image bg captainsoffice:/Background/captainsoffice.jpg
x.align 0.5
y.align 0.5
[..........]
link to dl the script :
renpy_init_constructor.py Rev 0.01
Yes, iknow it lacks of optimization, but it was coded with one toe in twenty minutes... (and i'm new to python (Bash scripts powaaaaa (*ahem...*))