View Full Version : SetFont() method for Entity text

11-15-2010, 10:46 PM
Hi Seth,
I've made a little change in the source code that I think is really useful. I added a SetFont(...) method to the MovingEntity class so you can set the font you want to use without changing the fonts that come with the engine.

There are too versions

void SetFont( const string &resource_id)
resource_id is the name of the font resource in the xml

void SetFont( int font_id)
font_id is the fontID used by the engine

here is a patch in case you want to commit this change.


11-16-2010, 11:48 AM
Thanks, added. Made some small changes so it it will also allow changing font, and not cause problems if the font can't be initialized.

If you are going to be doing a lot of patches I will just give you svn write access... the only rule is to not breaking the existing demos. :cool:

11-16-2010, 01:53 PM
Well, I can't say I will make a lot of patches. I am in the process of making my game and if I make something useful I will be glad to share it with other Novashell users.

One thing that I would really like to add is Steering Behaviors, but I not sure if I should dive into the code to make such a big change. I need to finish my game.

12-08-2010, 05:51 AM
I've made that modification too, a long time ago :P

Actually my version of novashell is a lot different I think already...