Donate Share

GameBlade - 2D Game API using SDL (C++)

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Displaying variables

You are viewing a single message from this topic. View all messages.

  1. 2004-01-07 22:41:27 UTC
    Hey,

    I found SDL way too complicated for what i wanted to do for an RPG. Gameblade makes it a lot easier to put graphics into my game.
    What i was wondering, after trying to make an RPG with the gameblade, is how you would display a variable to screen. The text engine included only expects characters...

    I can see that you used something in SpaceBlade:
    sprintf( String, "E %d/%d ", Ship->GetHPNow(), Ship->GetHPMax() );
    GB_DrawText( &String[0], x+80, y+24 );

    Could you explain that to me? I'm a bit of a c/c++ newbie :P
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.