structure + graphics
7
game/cache/shaders.txt
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
renpy.dissolve renpy.geometry
|
||||||
|
renpy.geometry renpy.texture
|
||||||
|
renpy.solid
|
||||||
|
renpy.ftl
|
||||||
|
renpy.texture
|
||||||
|
renpy.dissolve renpy.dissolve
|
||||||
|
renpy.geometry renpy.solid
|
6
game/dialogues/collegues.rpy
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
label comptable
|
||||||
|
label .aimable
|
||||||
|
label .bonjour
|
||||||
|
"Bonjour, vous allez bien aujourd'hui ?"
|
||||||
|
label .demander_discussion
|
||||||
|
"Excusez-moi, si ça ne vous dérange pas, j'aimerais voir une petite chose avec vous."
|
0
game/dialogues/conjoint.rpy
Normal file
0
game/dialogues/patron.rpy
Normal file
3
game/engine/interractions.rpy
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
init 20 python:
|
||||||
|
|
||||||
|
# Fonction globale utilisée lorsqu'un personnage a besoin de parler à un autre personnage
|
4
game/engine/score.rpy
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
init 10 python:
|
||||||
|
|
||||||
|
# Définition des moyens financiers du foyer
|
||||||
|
|
BIN
game/gui/bar/bottom.png
Normal file
After Width: | Height: | Size: 558 B |
BIN
game/gui/bar/left.png
Normal file
After Width: | Height: | Size: 382 B |
BIN
game/gui/bar/right.png
Normal file
After Width: | Height: | Size: 380 B |
BIN
game/gui/bar/top.png
Normal file
After Width: | Height: | Size: 558 B |
BIN
game/gui/button/check_foreground.png
Normal file
After Width: | Height: | Size: 97 B |
BIN
game/gui/button/check_selected_foreground.png
Normal file
After Width: | Height: | Size: 144 B |
BIN
game/gui/button/choice_hover_background.png
Normal file
After Width: | Height: | Size: 917 B |
BIN
game/gui/button/choice_idle_background.png
Normal file
After Width: | Height: | Size: 841 B |
BIN
game/gui/button/hover_background.png
Normal file
After Width: | Height: | Size: 269 B |
BIN
game/gui/button/idle_background.png
Normal file
After Width: | Height: | Size: 269 B |
BIN
game/gui/button/quick_hover_background.png
Normal file
After Width: | Height: | Size: 133 B |
BIN
game/gui/button/quick_idle_background.png
Normal file
After Width: | Height: | Size: 133 B |
BIN
game/gui/button/radio_foreground.png
Normal file
After Width: | Height: | Size: 97 B |
BIN
game/gui/button/radio_selected_foreground.png
Normal file
After Width: | Height: | Size: 144 B |
BIN
game/gui/button/slot_hover_background.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
game/gui/button/slot_idle_background.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
game/gui/frame.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
game/gui/game_menu.png
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
game/gui/main_menu.png
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
game/gui/namebox.png
Normal file
After Width: | Height: | Size: 269 B |
BIN
game/gui/notify.png
Normal file
After Width: | Height: | Size: 950 B |
BIN
game/gui/nvl.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
game/gui/overlay/confirm.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
game/gui/overlay/game_menu.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
game/gui/overlay/main_menu.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
game/gui/phone/nvl.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
game/gui/phone/overlay/game_menu.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
game/gui/phone/overlay/main_menu.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
game/gui/phone/textbox.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
game/gui/scrollbar/horizontal_hover_bar.png
Normal file
After Width: | Height: | Size: 260 B |
BIN
game/gui/scrollbar/horizontal_hover_thumb.png
Normal file
After Width: | Height: | Size: 262 B |
BIN
game/gui/scrollbar/horizontal_idle_bar.png
Normal file
After Width: | Height: | Size: 261 B |
BIN
game/gui/scrollbar/horizontal_idle_thumb.png
Normal file
After Width: | Height: | Size: 260 B |
BIN
game/gui/scrollbar/vertical_hover_bar.png
Normal file
After Width: | Height: | Size: 383 B |
BIN
game/gui/scrollbar/vertical_hover_thumb.png
Normal file
After Width: | Height: | Size: 385 B |
BIN
game/gui/scrollbar/vertical_idle_bar.png
Normal file
After Width: | Height: | Size: 384 B |
BIN
game/gui/scrollbar/vertical_idle_thumb.png
Normal file
After Width: | Height: | Size: 383 B |
BIN
game/gui/skip.png
Normal file
After Width: | Height: | Size: 398 B |
BIN
game/gui/slider/horizontal_hover_bar.png
Normal file
After Width: | Height: | Size: 331 B |
BIN
game/gui/slider/horizontal_hover_thumb.png
Normal file
After Width: | Height: | Size: 106 B |
BIN
game/gui/slider/horizontal_idle_bar.png
Normal file
After Width: | Height: | Size: 332 B |
BIN
game/gui/slider/horizontal_idle_thumb.png
Normal file
After Width: | Height: | Size: 106 B |
BIN
game/gui/slider/vertical_hover_bar.png
Normal file
After Width: | Height: | Size: 422 B |
BIN
game/gui/slider/vertical_hover_thumb.png
Normal file
After Width: | Height: | Size: 103 B |
BIN
game/gui/slider/vertical_idle_bar.png
Normal file
After Width: | Height: | Size: 423 B |
BIN
game/gui/slider/vertical_idle_thumb.png
Normal file
After Width: | Height: | Size: 103 B |
BIN
game/gui/textbox.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
game/gui/window_icon.png
Normal file
After Width: | Height: | Size: 24 KiB |
|
@ -3,7 +3,7 @@
|
||||||
# Vous pouvez placer le script de votre jeu dans ce fichier.
|
# Vous pouvez placer le script de votre jeu dans ce fichier.
|
||||||
|
|
||||||
# Définition des éléments communs aux personnages
|
# Définition des éléments communs aux personnages
|
||||||
init python:
|
init 0 python:
|
||||||
class Personnage:
|
class Personnage:
|
||||||
|
|
||||||
# Variables des classes des personnages
|
# Variables des classes des personnages
|
||||||
|
@ -16,6 +16,7 @@ init python:
|
||||||
self.enfants = None
|
self.enfants = None
|
||||||
self.social = None
|
self.social = None
|
||||||
self.salaire = None
|
self.salaire = None
|
||||||
|
self.entreprise = None
|
||||||
self.experience = None
|
self.experience = None
|
||||||
self.anciennete = None
|
self.anciennete = None
|
||||||
self.etudes = None
|
self.etudes = None
|
||||||
|
@ -49,6 +50,8 @@ init python:
|
||||||
self.etudes = renpy.random.randint (0,8)
|
self.etudes = renpy.random.randint (0,8)
|
||||||
# nombre d'annés d'expérience sur toute la carrière
|
# nombre d'annés d'expérience sur toute la carrière
|
||||||
self.experience = renpy.random.randint(0, self.age - (18 + self.etudes))
|
self.experience = renpy.random.randint(0, self.age - (18 + self.etudes))
|
||||||
|
# entreprise employeuse
|
||||||
|
self.entreprise = renpy.random.choice(["Greenenergie", "Hula-hoop conso", "Fractale"])
|
||||||
# nombre d'années d'ancienneté dans l'entreprise
|
# nombre d'années d'ancienneté dans l'entreprise
|
||||||
self.anciennete = renpy.random.randint(0, self.experience)
|
self.anciennete = renpy.random.randint(0, self.experience)
|
||||||
# nombre d'années de chômage
|
# nombre d'années de chômage
|
||||||
|
@ -69,6 +72,13 @@ init python:
|
||||||
if self.genre == "femme":
|
if self.genre == "femme":
|
||||||
self.salaire = self.salaire - (self.salaire * 0.2)
|
self.salaire = self.salaire - (self.salaire * 0.2)
|
||||||
|
|
||||||
|
# Classe spécifique au conjoint du protagoniste, sous-classe de Personnage
|
||||||
|
class Conjoint(Personnage):
|
||||||
|
|
||||||
|
# surcharge de la méthode etat_civil() pour ajouter les éléments
|
||||||
|
# qui dépendent des traits du protagoniste
|
||||||
|
def etat_civil()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -91,10 +101,23 @@ label fiches_personnages:
|
||||||
conjoint.etat_civil()
|
conjoint.etat_civil()
|
||||||
# correction des éléments de l'état civil qui dépendent des traits
|
# correction des éléments de l'état civil qui dépendent des traits
|
||||||
# du protagoniste
|
# du protagoniste
|
||||||
if m.conjoint == 1 and m.attirance == 1:
|
|
||||||
|
# adapter genre en fonction de couple hétéro ou gay
|
||||||
|
if m.conjoint == 1:
|
||||||
|
if m.attirance == 1:
|
||||||
conjoint.genre = m.genre
|
conjoint.genre = m.genre
|
||||||
elif m.conjoint == 1 and m.attirance == 0:
|
if m.attirance ==0 and m.genre == "femme":
|
||||||
conjoint
|
conjoint.genre = "homme"
|
||||||
|
if m.attirance ==0 and m.genre == "homme":
|
||||||
|
conjoint.genre = "femme"
|
||||||
|
|
||||||
|
# retirer un nom en fonction du genre
|
||||||
|
|
||||||
|
|
||||||
|
# âge proche de celui du personnage
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@ label morning_routine:
|
||||||
m.c "Mon conjoint s'appelle [conjoint.c]."
|
m.c "Mon conjoint s'appelle [conjoint.c]."
|
||||||
if m.enfants > 0:
|
if m.enfants > 0:
|
||||||
m.c "J'ai [m.enfants] enfants."
|
m.c "J'ai [m.enfants] enfants."
|
||||||
m.c "Je travaille comme [m.social] chez Naturagreen depuis [m.anciennete] ans. "
|
m.c "Je travaille comme [m.social] chez [m.entreprise] depuis [m.anciennete] ans. "
|
||||||
m.c "Après [m.etudes] années d'études, j'ai travaillé [m.experience] dans ce métier."
|
m.c "Après [m.etudes] années d'études, j'ai travaillé pendant [m.experience] ans dans ce métier."
|
||||||
m.c "Je gagne aujourd'hui [m.salaire] euros bruts par mois."
|
m.c "Je gagne aujourd'hui [m.salaire] euros bruts par mois."
|
||||||
m.c "Et aujourd'hui, je vais tâcher d'obtenir une augmentation."
|
m.c "Et aujourd'hui, je vais tâcher d'obtenir une augmentation."
|
||||||
|
|
||||||
|
|