Differences

This shows you the differences between the selected revision and the current
version of the page.


fr:wmebook:ch8 2011/10/25 11:49 fr:wmebook:ch8 2011/10/28 15:44 current
Line 701: Line 701:
(Notez que nous avons jumelé le sprite book avec un article et rendu interactif, nous avons, aussi, défini la région de sortie (exit) à la fin de l’écran) (Notez que nous avons jumelé le sprite book avec un article et rendu interactif, nous avons, aussi, défini la région de sortie (exit) à la fin de l’écran)
-** ------------------------------------ EN COURS DE TRADUCTION -------------------------------------** +et cachez la visibilité ainsi l'arbre des nœuds est comme cela:
-And hide the visibility so the node tree looks like this: 
{{wmebook:ch8_6.jpg|}} {{wmebook:ch8_6.jpg|}}
-Now before we can use the closeup layers, we just remember the method:+Et avant de pouvoir utiliser le calque de gros plan, nous rappelons la méthode:
-**Scene.GetLayer()** - which is similar to Scene.GetNode, but returns a layer rather than node. +**Scene.GetLayer()** - qui est similaire à Scene.GetNode, mais retourne une couche plutôt qu'un nœud.
**table.script** **table.script**
Line 733: Line 732:
</code> </code>
-As we can see, now the Closeup properly activates (making actor disappear) and upon clicking Exit it again disappears making actor appear. +Comme on peut le voir, maintenant le gros-plan s'active correctement (faisant disparaître l'acteur) et lorsque vous cliquez sur la sortie il disparaît et fait apparaitre l'acteur de nouveau.
-**Drawer.script** first has to check if the button in the painting has been pressed and if yes, it opens the drawer uncovering the book and hides itself.+**Drawer.script** d'abord pour vérifier si le bouton dans le tableau a été appuyé et si oui, il ouvre le tiroirs découvrant le livre et se cache.
<code script> <code script>
Line 757: Line 756:
</code> </code>
-We just take a book upon left click:+Reste à prendre le livre lors du clic gauche:
-Add the book to **items.items**:+Ajoutez le livre dans **items.items**:
<code script> <code script>
Line 774: Line 773:
</code> </code>
-create the sprite file for the book and to the **book.script** in the scene write the following:+Créez le fichier sprite pour le livre et dans **book.script** dans Scene écrire ce qui suit:
<code script> <code script>
Line 785: Line 784:
</code> </code>
-and to the **book.script** in the items folder write this:+et dans **book.script** dans le répertoire items écrire ceci:
<code script> <code script>
Line 797: Line 796:
</code> </code>
-See, we have another global variable this time indicating if our actor read the secret book or not. We'll then extend our door passage a bit to enter the stone circle after you've read the book.+Regardez, nous avons une autre variable globale cette fois indiquant si l'acteur lit ou pas le livre secret. Nous allons ensuite étendre notre porte un peu pour entrer dans le cercle de pierres après que vous ayez lu le livre.
-Modify **scenes\Room\scr\door.script** to read the following:+Modifiez **scenes\Room\scr\door.script** pour avoir cela:
<code script> <code script>
Line 815: Line 814:
</code> </code>
-Last scene in our game is the **circle**. You know the drill. Here's the basic layout:+La dernière scène de notre jeu est le **cercle** (circle). Vous connaissez le refrain. Voici les grandes lignes:
{{wmebook:ch8_7.jpg|}} {{wmebook:ch8_7.jpg|}}
-The **Ending** is a sprite entity which has its Interactive turned off.+le **Ending** est un sprite qui à son Interactivité éteinte.
{{wmebook:ch8_9.jpg|}} {{wmebook:ch8_9.jpg|}}
-Now turn again off the //Active// check box for Ending entity so it's again invisible.+Maintenant éteignez à nouveau //Active// pour l'entité Ending il est ainsi invisible.
-Here're the scripts:+là il y a le script :
**scene_init.script** **scene_init.script**
- 
<code script> <code script>
#include "scripts\base.inc" #include "scripts\base.inc"
Line 904: Line 902:
</code> </code>
-And our game skeleton is ready. If you want, you can look in the chapter 8 resource folder where - in the folder finished chapter - you can find the working version. +Et notre jeu squelette est prêt. Si vous voulez, vous pouvez regarder le dossier des ressources du chapitre 8 - dans le dossier finished chapter - vous pouvez trouver la version qui fonctionne
-Now go and play that game before we move on.+Maintenant allez-y et jouez à ce jeu avant de continuer. 
 
fr/wmebook/ch8.1319536158.txt.gz · Last modified: 2011/10/25 11:49 by Anto0085
Recent changes RSS feed Creative Commons License Driven by DokuWiki