structure + graphics

This commit is contained in:
electropositron 2024-01-10 17:59:52 +01:00
parent b3f56dca3a
commit d0293da1f3
57 changed files with 51 additions and 8 deletions

7
game/cache/shaders.txt vendored Normal file
View 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

View 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."

View file

View file

View 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
View file

@ -0,0 +1,4 @@
init 10 python:
# Définition des moyens financiers du foyer

BIN
game/gui/bar/bottom.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 558 B

BIN
game/gui/bar/left.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 B

BIN
game/gui/bar/right.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 B

BIN
game/gui/bar/top.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 558 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 917 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 841 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
game/gui/frame.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
game/gui/game_menu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

BIN
game/gui/main_menu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

BIN
game/gui/namebox.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

BIN
game/gui/notify.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 950 B

BIN
game/gui/nvl.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
game/gui/phone/nvl.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
game/gui/phone/textbox.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 383 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 383 B

BIN
game/gui/skip.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 331 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 B

BIN
game/gui/textbox.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

BIN
game/gui/window_icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

View file

@ -3,7 +3,7 @@
# Vous pouvez placer le script de votre jeu dans ce fichier.
# Définition des éléments communs aux personnages
init python:
init 0 python:
class Personnage:
# Variables des classes des personnages
@ -16,6 +16,7 @@ init python:
self.enfants = None
self.social = None
self.salaire = None
self.entreprise = None
self.experience = None
self.anciennete = None
self.etudes = None
@ -49,6 +50,8 @@ init python:
self.etudes = renpy.random.randint (0,8)
# nombre d'annés d'expérience sur toute la carrière
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
self.anciennete = renpy.random.randint(0, self.experience)
# nombre d'années de chômage
@ -68,7 +71,14 @@ init python:
# minoration de 20% si genre = femme
if self.genre == "femme":
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()
# correction des éléments de l'état civil qui dépendent des traits
# du protagoniste
if m.conjoint == 1 and m.attirance == 1:
conjoint.genre = m.genre
elif m.conjoint == 1 and m.attirance == 0:
conjoint
# adapter genre en fonction de couple hétéro ou gay
if m.conjoint == 1:
if m.attirance == 1:
conjoint.genre = m.genre
if m.attirance ==0 and m.genre == "femme":
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

View file

@ -5,8 +5,8 @@ label morning_routine:
m.c "Mon conjoint s'appelle [conjoint.c]."
if m.enfants > 0:
m.c "J'ai [m.enfants] enfants."
m.c "Je travaille comme [m.social] chez Naturagreen 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 "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é pendant [m.experience] ans dans ce métier."
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."