XNA 4.0 C# Class for Star Wars Style Scrolling Text

Concluído Postado Apr 10, 2011 Pago na entrega
Concluído Pago na entrega

I need a C# class for XNA 4.0 (named **StarWarsScrollingText**). It will render a list of text similar to the scrolling text shown at [url removed, login to view] The text must draw over a background image, and therefore the space between the text must be transparent. (Suggest testing with the star field image as a background from [url removed, login to view])

The class has a number of properties. Additional properties can be added if necessary for implementation of the class.

**Properties**

int ScreenWidth (will be 1280 and can default to this but should be configurable)

int ScreenHeight (will be 720 and can default to this but should be configurable)

string[] TextToDisplay

int UpdateDelay (milliseconds between text movement)

int UpdateIncrement (number of pixels the text moves each time that it moves)

string SpriteFontAssetName

string BackgroundImageAssetName

**Methods**

void Update(GameTime gameTime);

void Load(ContentManager objContentManager);

void Draw(SpriteBatch objSpriteBatch);

Here is how the class will be called from the parent code:

At a certain point in the program the class will be instantiated:

***StarWarsScrollingText m_objScrollingText = new StarWarsScrollingText();***

Properties will be set:

***[url removed, login to view] = "Arial";

[url removed, login to view] = @"Backgrounds\Starfield";***

Load method will be called:

***[url removed, login to view]( Content );***

Update method will be called from parent Update method:

***[url removed, login to view]( objGameTime );***

Draw method will be called from parent Draw method:

***[url removed, login to view]( objSpriteBatch );***

Now text will scroll.

**Helpful articles can be found at:**

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

## Deliverables

Attached is the file that reflects what this will look like.

Once again, the text scrolls over a background (most likely a starfield).

Consolas de Jogos

ID do Projeto: #3236095

Sobre o projeto

1 proposta Projeto remoto Ativo em Apr 10, 2011

Concedido a:

eamattos

See private message.

$88.39 USD em 3 dias
(1 Comentário)
1.9