How to create Xbox 360 Applications with the SDK

SexyDev Dec 18, 2012

  1. Se

    SexyDev Queen of Darkness
    0/47

    Joined:
    Aug 24, 2012
    Messages:
    588
    Likes Received:
    99
    Trophy Points:
    0
    Gender:
    Female
    Console:
    Xbox
    The first tutorial of this kind I have ever seen on the net. I know many know how to do this, but the overwhelming majority of people do not.

    Lets Get This Party Started!!

    What you need:
    Visual Studio + SDK installed
    The Code (Look below)
    The Font - Download Link

    Note: Not My Video!

    http://www.youtube.com/watch?feature=player_embedded&v=krf6nYsQiTM



    Code:
    /*
    Template By Carter
    ¦¦¦¦¦ ¦¦¦¦¦¦
    ¦ ¦ ¦¦ ¦¦¦¦¦ ¦¦¦¦¦ ¦¦¦¦¦¦ ¦ ¦
    ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦
    ¦ ¦ ¦ ¦ ¦ ¦ ¦¦¦¦¦ ¦¦¦¦¦¦
    ¦ ¦¦¦¦¦¦ ¦¦¦¦¦ ¦ ¦ ¦ ¦
    ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦
    ¦¦¦¦¦ ¦ ¦ ¦ ¦ ¦ ¦¦¦¦¦¦ ¦ ¦
    */
    #include "stdafx.h"
    #include "AtgInput.h"
    #include "AtgConsole.h"
    #include <string>
    ATG::Console daConsole;
    using namespace std;
    void doConsole(string daText);
    void __cdecl main()
    {
    doConsole("Program Title");
    for(;;)
    {
    ATG::GAMEPAD* pGamepad = ATG::Input::GetMergedInput();//Get the Inputs ATM
    if( pGamepad->wPressedButtons & XINPUT_GAMEPAD_A )//If buttons are pressed and the button pressed is the a button
    {
    daConsole.Format("\nA Button Pressed!");
    }
    }
    }
    void doConsole(string daText)
    {
    daConsole.Create( "game:\\Media\\Fonts\\Arial_16.xpr", D3DCOLOR_XRGB(0, 0, 0), D3DCOLOR_XRGB(0,200,0) );//First D3D is the Background and the second is the text color
    daConsole.Format((" - "+daText+" - ").c_str());//The format function adds text to the console
    //daConsole.Format("\ntest");
    }
    Application Resulting from this:



    After pressing the A button a few times:

    [​IMG]


    Credit to TEH1337 of XboxMB!
     

Share This Page

Close