-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|26|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Blogs Home -> Blogs


 
waroffice
Created : 28 June 2011
 
System : Mac

Bitmap fonts

im back at socoder

Coding while tired is never a good thing. Sure you will get something done but it is never your best work. There have been countless times I have struggled over some code for hours but due to fatigue I was unable to solve it. Last night was no exception, I was struggling to get the text to display and even get it to line up.

After an hour or so it was working after I ironed out some school boy errors.

My next problem was to get the new bitmap font to fade in and out nicely.

I managed to get it to fade in but couldn't figure the maths out to make it fade in then out.

I gave up and went to bed, that normally does the trick, but this time it just kept me awake and now I'm shattered.

I will figure out the fading later, for now the text looks fabulous and may even venture out in to other fonts at a later date.

 

Comments


Tuesday, 28 June 2011, 01:39
Jayenkai
No screenshot!?

It was far too hot to sleep last night, so I spent a few hours working on a new (again?!) iOS game.
Kinda works, but.. .. I was tired.. It doesn't play half as well as it seemed to last night!
A few tweaks here and there, and I should be able to make something half interesting out of it.

*fingers crossed*
Tuesday, 28 June 2011, 02:06
waroffice
I was getting glares from my other half so went to bed after uploading it to my site.

[url=https://solsticerpg.com][/url]

I will get a screen shot in about an hour or so (remote desktop ftw)

|edit| I realised I had the font image in the game download,

Tuesday, 28 June 2011, 03:41
waroffice
here is the screen shot


Tuesday, 28 June 2011, 04:17
Jayenkai
Oooh, what a luvly font!
Tuesday, 28 June 2011, 04:50
waroffice
Its called Nosferatu, i spent ages looking through thousands of em.

I will link it

Nosferatu Font
Thursday, 30 June 2011, 13:04
Andy_A
If you're doing this game in Blitz then you may want to look at an alpha routine that works in real time. The only caveat is that you'll need to re-do the bitmap of the font to mask everything except the font characters.

https://socoder.net/index.php?snippet=12502
Wednesday, 06 July 2011, 04:44
waroffice
I'm doing it in Cobra.

I think I have it all good now, the timing works and the effect is good.

I think I will add some scaling to it for different font sizes.

Thanks for your help guys