<?xml version="1.0" encoding="ISO-8859-1" ?>
<Game>
    <GDVersion Major="1" Minor="2" Build="7618" Revision="38274" />
    <Info>
        <Nom value="Chargement et sauvegarde" />
        <Auteur value="" />
        <WindowW value="800" />
        <WindowH value="600" />
        <Portable value="true" />
        <Extensions />
        <FPSmax value="60" />
        <FPSmin value="10" />
        <verticalSync value="false" />
        <Chargement>
            <Afficher value="true" />
            <Border value="true" />
            <Smooth value="true" />
            <Width value="170.000000" />
            <Height value="50.000000" />
            <TexteAfficher value="true" />
            <TexteXPos value="0.000000" />
            <TexteYPos value="0.000000" />
            <Texte value="Chargement" />
            <PourcentAfficher value="false" />
            <PourcentXPos value="0.000000" />
            <PourcentYPos value="0.000000" />
            <ImageAfficher value="false" />
            <Image value="" />
        </Chargement>
    </Info>
    <Images>
        <Image nom="Block-Normal.png" fichier="Block-Normal.png" lissage="true" />
    </Images>
    <DossierImages />
    <Objects />
    <Scenes>
        <Scene nom="Nouvelle scène 1" r="94.000000" v="174.000000" b="255.000000" titre="">
            <Objets>
                <Objet nom="Bloc">
                    <Animations>
                        <Animation typeNormal="true">
                            <Direction boucle="false" tempsEntre="1.000000">
                                <Sprites>
                                    <Sprite image="Block-Normal.png">
                                        <Points />
                                        <PointOrigine nom="origine" X="0.000000" Y="0.000000" />
                                        <PointCentre nom="centre" X="35.000000" Y="30.000000" automatic="true" />
                                    </Sprite>
                                </Sprites>
                            </Direction>
                        </Animation>
                    </Animations>
                </Objet>
            </Objets>
            <Layers>
                <Layer Name="" Visibility="true" />
            </Layers>
            <Events>
                <Event>
                    <Type value="Commentaire" />
                    <Couleur r="128.000000" v="255.000000" b="255.000000" />
                    <Com1 value="Exemple de chargement et de sauvegarde" />
                    <Com2 value="Par 4ian ( Compil Games )&#x0A;&#x0A;S pour sauvegarde,&#x0A;L pour chargement,&#x0A;A pour ajouter un bloc,&#x0A;D pour le supprimer" />
                </Event>
                <Event>
                    <Type value="Commentaire" />
                    <Couleur r="255.000000" v="230.000000" b="109.000000" />
                    <Com1 value="Texte d&apos;explication" />
                    <Com2 value="" />
                </Event>
                <Event>
                    <Type value="AND" />
                    <Conditions>
                        <Condition>
                            <Type value="Toujours" loc="true" Contraire="false" />
                        </Condition>
                    </Conditions>
                    <Actions>
                        <Action>
                            <Type value="EcrireTexte" loc="true" />
                            <Parametre value="Appuyez sur S pour sauvegarder&#x0A;Appuyez sur L pour charger&#x0A;Appuyez sur A pour ajouter un bloc&#x0A;Appuyez sur D pour le supprimer" />
                            <Parametre value="10" />
                            <Parametre value="10" />
                            <Parametre value="0;0;0" />
                            <Parametre value="19" />
                            <Parametre value="" />
                        </Action>
                    </Actions>
                </Event>
                <Event>
                    <Type value="Commentaire" />
                    <Couleur r="255.000000" v="230.000000" b="109.000000" />
                    <Com1 value="Ajout d&apos;un bloc" />
                    <Com2 value="" />
                </Event>
                <Event>
                    <Type value="AND" />
                    <Conditions>
                        <Condition>
                            <Type value="KeyPressed" loc="true" Contraire="false" />
                            <Parametre value="a" />
                        </Condition>
                        <Condition>
                            <Type value="Timer" loc="true" Contraire="false" />
                            <Parametre value="0.25" />
                            <Parametre value="Insertion" />
                        </Condition>
                    </Conditions>
                    <Actions>
                        <Action>
                            <Type value="Create" loc="true" />
                            <Parametre value="Bloc" />
                            <Parametre value="VAL(SourisX[])" />
                            <Parametre value="VAL(SourisY[])" />
                        </Action>
                        <Action>
                            <Type value="ResetTimer" loc="true" />
                            <Parametre value="Insertion" />
                        </Action>
                    </Actions>
                </Event>
                <Event>
                    <Type value="Commentaire" />
                    <Couleur r="255.000000" v="230.000000" b="109.000000" />
                    <Com1 value="Suppression d&apos;un bloc" />
                    <Com2 value="" />
                </Event>
                <Event>
                    <Type value="AND" />
                    <Conditions>
                        <Condition>
                            <Type value="KeyPressed" loc="true" Contraire="false" />
                            <Parametre value="d" />
                        </Condition>
                        <Condition>
                            <Type value="SourisSurObjet" loc="true" Contraire="false" />
                            <Parametre value="Bloc" />
                            <Parametre value="" />
                        </Condition>
                    </Conditions>
                    <Actions>
                        <Action>
                            <Type value="Delete" loc="true" />
                            <Parametre value="Bloc" />
                        </Action>
                    </Actions>
                </Event>
                <Event>
                    <Type value="Commentaire" />
                    <Couleur r="255.000000" v="230.000000" b="109.000000" />
                    <Com1 value="Choix de sauvegarder ou de charger par appui sur une touche." />
                    <Com2 value="On remet alors à zéro les variables et objets." />
                </Event>
                <Event>
                    <Type value="AND" />
                    <Conditions>
                        <Condition>
                            <Type value="KeyPressed" loc="true" Contraire="false" />
                            <Parametre value="s" />
                        </Condition>
                        <Condition>
                            <Type value="VarSceneTxt" loc="true" Contraire="false" />
                            <Parametre value="Etat" />
                            <Parametre value="" />
                            <Parametre value="=" />
                        </Condition>
                    </Conditions>
                    <Actions>
                        <Action>
                            <Type value="ModVarSceneTxt" loc="true" />
                            <Parametre value="Etat" />
                            <Parametre value="Save" />
                            <Parametre value="=" />
                        </Action>
                        <Action>
                            <Type value="ModVarScene" loc="true" />
                            <Parametre value="ID" />
                            <Parametre value="0" />
                            <Parametre value="=" />
                        </Action>
                        <Action>
                            <Type value="DeleteFichier" loc="true" />
                            <Parametre value="Save.txt" />
                        </Action>
                    </Actions>
                </Event>
                <Event>
                    <Type value="AND" />
                    <Conditions>
                        <Condition>
                            <Type value="KeyPressed" loc="true" Contraire="false" />
                            <Parametre value="l" />
                        </Condition>
                        <Condition>
                            <Type value="VarSceneTxt" loc="true" Contraire="false" />
                            <Parametre value="Etat" />
                            <Parametre value="" />
                            <Parametre value="=" />
                        </Condition>
                    </Conditions>
                    <Actions>
                        <Action>
                            <Type value="ModVarScene" loc="true" />
                            <Parametre value="ID" />
                            <Parametre value="0" />
                            <Parametre value="=" />
                        </Action>
                        <Action>
                            <Type value="ModVarSceneTxt" loc="true" />
                            <Parametre value="Etat" />
                            <Parametre value="Load" />
                            <Parametre value="=" />
                        </Action>
                        <Action>
                            <Type value="Delete" loc="true" />
                            <Parametre value="Bloc" />
                        </Action>
                    </Actions>
                </Event>
                <Event>
                    <Type value="Commentaire" />
                    <Couleur r="255.000000" v="230.000000" b="109.000000" />
                    <Com1 value="Sauvegarde" />
                    <Com2 value="" />
                </Event>
                <Event>
                    <Type value="AND" />
                    <Conditions>
                        <Condition>
                            <Type value="VarSceneTxt" loc="true" Contraire="false" />
                            <Parametre value="Etat" />
                            <Parametre value="Save" />
                            <Parametre value="=" />
                        </Condition>
                    </Conditions>
                    <Actions />
                    <Events>
                        <Event>
                            <Type value="Commentaire" />
                            <Couleur r="255.000000" v="230.000000" b="109.000000" />
                            <Com1 value="On passe en revue chaque bloc." />
                            <Com2 value="Et on enregistre leurs positions." />
                        </Event>
                        <Event>
                            <Type value="AND" />
                            <Conditions>
                                <Condition>
                                    <Type value="ForEach" loc="true" Contraire="false" />
                                    <Parametre value="Bloc" />
                                </Condition>
                            </Conditions>
                            <Actions>
                                <Action>
                                    <Type value="EcrireFichierExp" loc="true" />
                                    <Parametre value="Save.txt" />
                                    <Parametre value='BlocTXT&quot;VAL(ID[])&quot;/X' />
                                    <Parametre value="OBJ(Bloc[x])" />
                                </Action>
                                <Action>
                                    <Type value="EcrireFichierExp" loc="true" />
                                    <Parametre value="Save.txt" />
                                    <Parametre value='BlocTXT&quot;VAL(ID[])&quot;/Y' />
                                    <Parametre value="OBJ(Bloc[y])" />
                                </Action>
                                <Action>
                                    <Type value="ModVarScene" loc="true" />
                                    <Parametre value="ID" />
                                    <Parametre value="1" />
                                    <Parametre value="+" />
                                </Action>
                            </Actions>
                        </Event>
                        <Event>
                            <Type value="AND" />
                            <Conditions />
                            <Actions>
                                <Action>
                                    <Type value="ModVarSceneTxt" loc="true" />
                                    <Parametre value="Etat" />
                                    <Parametre value="" />
                                    <Parametre value="=" />
                                </Action>
                            </Actions>
                        </Event>
                    </Events>
                </Event>
                <Event>
                    <Type value="Commentaire" />
                    <Couleur r="255.000000" v="230.000000" b="109.000000" />
                    <Com1 value="Chargement" />
                    <Com2 value="" />
                </Event>
                <Event>
                    <Type value="AND" />
                    <Conditions>
                        <Condition>
                            <Type value="VarSceneTxt" loc="true" Contraire="false" />
                            <Parametre value="Etat" />
                            <Parametre value="Load" />
                            <Parametre value="=" />
                        </Condition>
                    </Conditions>
                    <Actions />
                    <Events>
                        <Event>
                            <Type value="Commentaire" />
                            <Couleur r="255.000000" v="230.000000" b="109.000000" />
                            <Com1 value="Tant qu&apos;on peut charger un bloc." />
                            <Com2 value="On le créé à la position relevée." />
                        </Event>
                        <Event>
                            <Type value="AND" />
                            <Conditions>
                                <Condition>
                                    <Type value="While" loc="true" Contraire="false" />
                                    <Parametre value="Vrai" />
                                </Condition>
                                <Condition>
                                    <Type value="GroupExists" loc="true" Contraire="false" />
                                    <Parametre value="Save.txt" />
                                    <Parametre value='BlocTXT&quot;VAL(ID[])&quot;/X' />
                                </Condition>
                            </Conditions>
                            <Actions>
                                <Action>
                                    <Type value="LireFichierExp" loc="true" />
                                    <Parametre value="Save.txt" />
                                    <Parametre value='BlocTXT&quot;VAL(ID[])&quot;/X' />
                                    <Parametre value="NewBlocX" />
                                </Action>
                                <Action>
                                    <Type value="LireFichierExp" loc="true" />
                                    <Parametre value="Save.txt" />
                                    <Parametre value='BlocTXT&quot;VAL(ID[])&quot;/Y' />
                                    <Parametre value="NewBlocY" />
                                </Action>
                                <Action>
                                    <Type value="Create" loc="true" />
                                    <Parametre value="Bloc" />
                                    <Parametre value="VAL(NewBlocX[])" />
                                    <Parametre value="VAL(NewBlocY[])" />
                                </Action>
                                <Action>
                                    <Type value="ModVarScene" loc="true" />
                                    <Parametre value="ID" />
                                    <Parametre value="1" />
                                    <Parametre value="+" />
                                </Action>
                            </Actions>
                        </Event>
                        <Event>
                            <Type value="AND" />
                            <Conditions />
                            <Actions>
                                <Action>
                                    <Type value="ModVarSceneTxt" loc="true" />
                                    <Parametre value="Etat" />
                                    <Parametre value="" />
                                    <Parametre value="=" />
                                </Action>
                            </Actions>
                        </Event>
                    </Events>
                </Event>
            </Events>
        </Scene>
    </Scenes>
</Game>
