VS85 Team's profileXNALearnersBlogListsGuestbook Tools Help

Blog


    12/28/2007

    Metti un Pythone nel tuo gioco!

    English Version

    Ciao, sono Giulia Costantini e in questo tutorial vi verrà mostrato come mettere una console Python nel vostro gioco. Perché Python? Semplice, perché è uno dei linguaggio più potenti, flessibili e facili da usare che esistono.

    La console Python è in realtà un game component (guardate il nostro precedente tutorial sui components se non sapete cos'è un component). Con questa console, possiamo modificare i nostri oggetti in-game senza bisogno di ricompilare, modificare i file di configurazione, eccetera... possiamo anche leggere ed eseguire dinamicamente script Python a tempo d'esecuzione!

    Nel videotutorial Giuseppe Maggiore (tradotto in italiano da Alessandro Piva) vi spiegherà come potete "inserire" Python nel vostro progetto e come potete creare il Python GameComponent.

    tut1

    Come vedrete nel webcast, saremo in grado di modificare gli oggetti publici nel gioco tramite la console Python: per esempio, potremmo azzerare la lista di droni e tutti i droni sparirebbero dallo schermo! Poi, potremmo aggiungere qualche altro drone (la lista dei droni è accessibile come pubblica dalla variabile globale "game") ed ecco: nuovi droni apparirebbero!

    La console appare così:

    tut2

    Qui potete trovare il codice sorgente utilizzato in questo tutorial. Buon divertimento!

    Ecco una versione a bassa risoluzione del videotutorial:

     

    Giulia Costantini

    P.S.: ringraziamenti speciali ad Alessandro Piva per l'idea di mettere IronPython nei nostri giochi.

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://vs85team.spaces.live.com/blog/cns!B49FFA0EB319A219!217.trak
    Weblogs that reference this entry
    • None