| View previous topic - View next topic | 
  
  
    | Author | Message | 
  
    | DeveloperX 202192397
 
  
 Joined: 04 May 2003
 Posts: 1626
 Location: Decatur, IL, USA
 
 |  | 
  
    | Back to top |  | 
  
    |  | 
  
    | BadMrBox Bringer of Apocalypse
 
  
 Joined: 26 Jun 2002
 Posts: 1022
 Location: Dark Forest's of Sweden
 
 | 
        
          |  Posted: Fri Oct 22, 2004 9:57 pm    Post subject: | [quote] |  
          | 
 |  
          | It is something at least. A decent title :). _________________
 
   |  | 
  
    | Back to top |  | 
  
    |  | 
  
    | tcaudilllg Dragonmaster
 
  
 Joined: 20 Jun 2002
 Posts: 1731
 Location: Cedar Bluff, VA
 
 | 
        
          |  Posted: Sat Oct 23, 2004 2:35 am    Post subject: | [quote] |  
          | 
 |  
          | LOL... it almost exists. Got the script engine running... now we need to finish the main play engine.... |  | 
  
    | Back to top |  | 
  
    |  | 
  
    | tcaudilllg Dragonmaster
 
  
 Joined: 20 Jun 2002
 Posts: 1731
 Location: Cedar Bluff, VA
 
 | 
        
          |  Posted: Sun Oct 24, 2004 5:56 am    Post subject: | [quote] |  
          | 
 |  
          | Got the scrolling down pat. If all goes well we'll make the contest! :D |  | 
  
    | Back to top |  | 
  
    |  | 
  
    | DeveloperX 202192397
 
  
 Joined: 04 May 2003
 Posts: 1626
 Location: Decatur, IL, USA
 
 | 
        
          |  Posted: Sat Oct 30, 2004 6:33 am    Post subject: | [quote] |  
          | 
 |  
          | Well, I know that this probably isn't the place, but hey, it's my topic! ;) 
 Check out my bitmapped font that I'll be using! ~ Very difficult..made by hand. I also wrote a bitmap font engine that I will be releasing once I clean it up a bit (make it readable) and also, write the readme. :)
 
 Anyway, please, your comments:
 http://ccps.rpgdx.net/projects/7/bitmappedfonts.rar
 
 You WILL need allegro installed to see it.
 Please don't use my font without asking me.
 _________________
 Principal Software Architect
 Rambling Indie Games, LLC
 
 See my professional portfolio
 |  | 
  
    | Back to top |  | 
  
    |  | 
  
    | Bjorn Demon Hunter
 
  
 Joined: 29 May 2002
 Posts: 1425
 Location: Germany
 
 | 
        
          |  Posted: Sat Oct 30, 2004 11:08 am    Post subject: | [quote] |  
          | 
 |  
          | Font looks interesting. About the font engine, you are aware that Allegro already includes a font engine, right? |  | 
  
    | Back to top |  | 
  
    |  | 
  
    | Happy JonA's American snack pack
 
  
 Joined: 03 Aug 2002
 Posts: 200
 
 
 | 
        
          |  Posted: Sat Oct 30, 2004 12:43 pm    Post subject: | [quote] |  
          | 
 |  
          |  	  | DeveloperX wrote: |  	  | Check out my bitmapped font that I'll be using! ~ Very difficult..made by hand. I also wrote a bitmap font engine that I will be releasing once I clean it up a bit (make it readable) and also, write the readme. :) 
 Anyway, please, your comments:
 http://ccps.rpgdx.net/projects/7/bitmappedfonts.rar
 
 You WILL need allegro installed to see it.
 Please don't use my font without asking me.
 | 
 
 I wouldn't want to. I think it's an ugly, ugly font. I hope you didn't spend too much time on it.
 
 The font engine itself looks like it has some bugs in it or something, the spacing is too close on some letters and too far apart on others.
 
 EDIT: Shouldn't this be in the Projects/Screenshots forum?
 |  | 
  
    | Back to top |  | 
  
    |  | 
  
    | Bjorn Demon Hunter
 
  
 Joined: 29 May 2002
 Posts: 1425
 Location: Germany
 
 | 
        
          |  Posted: Sat Oct 30, 2004 12:58 pm    Post subject: | [quote] |  
          | 
 |  
          |  	  | Happy wrote: |  	  | EDIT: Shouldn't this be in the Projects/Screenshots forum? | 
 Agreed and moved. :-P
 |  | 
  
    | Back to top |  | 
  
    |  | 
  
    | DeveloperX 202192397
 
  
 Joined: 04 May 2003
 Posts: 1626
 Location: Decatur, IL, USA
 
 | 
        
          |  Posted: Sun Oct 31, 2004 9:17 am    Post subject: | [quote] |  
          | 
 |  
          |  	  | Bjørn wrote: |  	  | Font looks interesting. About the font engine, you are aware that Allegro already includes a font engine, right? | 
 >_< NO. I was not informed of that.
 I read the docs, I didn't see anything about a font engine.
 Damn.
 Can you show me?
 
 
  	  | Happy wrote: |  	  | I wouldn't want to. I think it's an ugly, ugly font. I hope you didn't spend too much time on it.
 
 The font engine itself looks like it has some bugs in it or something, the spacing is too close on some letters and too far apart on others.
 | 
 :( I spent 3 hours on the font. Figures.
 The fonts are spaced using a calculated setting, in this case 32/2+2 so, 18 pixels.
 _________________
 Principal Software Architect
 Rambling Indie Games, LLC
 
 See my professional portfolio
 |  | 
  
    | Back to top |  | 
  
    |  | 
  
    | Bjorn Demon Hunter
 
  
 Joined: 29 May 2002
 Posts: 1425
 Location: Germany
 
 | 
        
          |  Posted: Sun Oct 31, 2004 10:36 am    Post subject: | [quote] |  
          | 
 |  
          |  	  | DeveloperX wrote: |  	  | >_< NO. I was not informed of that. I read the docs, I didn't see anything about a font engine.
 Damn.
 Can you show me?
 | 
 I'll point you to here for now: http://alleg.sourceforge.net/onlinedocs/en/index017.html
 The Allegro demo (the basic space shooter) is using custom fonts so should also be a good example. You'll have to load them from an Allegro datafile, check demo.dat with the grabber.
 
 
  	  | Happy wrote: |  	  | I wouldn't want to. I think it's an ugly, ugly font. I hope you didn't spend too much time on it. | 
 Now now Happy, the poor guy.
 |  | 
  
    | Back to top |  | 
  
    |  | 
  
    | Adam Mage
 
 
 Joined: 30 Dec 2002
 Posts: 416
 Location: Australia
 
 | 
        
          |  Posted: Sun Oct 31, 2004 11:21 am    Post subject: | [quote] |  
          | 
 |  
          | That font really needs variable spacing. If you added that you would be done and not need to bother with implementing the allegro fonts. _________________
 https://numbatlogic.com
 |  | 
  
    | Back to top |  | 
  
    |  | 
  
    | Aptyp Egg-Sucking Troll Humper
 
 
 Joined: 09 Jun 2004
 Posts: 36
 
 
 | 
        
          |  Posted: Mon Nov 01, 2004 6:59 pm    Post subject: | [quote] |  
          | 
 |  
          | Fixed-width fonts not only look sucky, but are also difficult to read. A much better approach is to describe every character by its position in the image and its width, whereas height is fixed. Also, you need variable whitespace width and variable height between the lines. 
 Something like:
 
 
  	  | Code: |  	  | [Font]
 MaxHeight=12
 SpaceLength=8
 LinespaceHeight=0
 Image=100:0
 
 ...
 
 [68]
 x=0 ;  A
 y=0
 width=11
 
 [69]
 x=11 ;  B
 y=0
 width=10
 
 [70]
 x=21 ;  C
 y=0
 width=9
 
 ...
 
 | 
 |  | 
  
    | Back to top |  | 
  
    |  | 
  
    | Adam Mage
 
 
 Joined: 30 Dec 2002
 Posts: 416
 Location: Australia
 
 | 
        
          |  Posted: Mon Nov 01, 2004 9:51 pm    Post subject: | [quote] |  
          | 
 |  
          | Actually, i think DevX could probably dynamically find the character widths. 
 Using getpixel or whatnot untill he found a whole column of magic pink.
 _________________
 https://numbatlogic.com
 |  | 
  
    | Back to top |  | 
  
    |  | 
  
    | Aptyp Egg-Sucking Troll Humper
 
 
 Joined: 09 Jun 2004
 Posts: 36
 
 
 | 
        
          |  Posted: Mon Nov 01, 2004 10:08 pm    Post subject: | [quote] |  
          | 
 |  
          | What if it's a double quote? |  | 
  
    | Back to top |  | 
  
    |  | 
  
    | Bjorn Demon Hunter
 
  
 Joined: 29 May 2002
 Posts: 1425
 Location: Germany
 
 | 
        
          |  Posted: Mon Nov 01, 2004 11:31 pm    Post subject: | [quote] |  
          | 
 |  
          |  	  | Aptyp wrote: |  	  | What if it's a double quote? | 
 Use seperate color indexes for image background and character background. It's the only way to easily be able to see rows of characters too. Of course, Allegro's fonts are already doing this so you might as well use that system if you're using Allegro anyway. :-)
 |  | 
  
    | Back to top |  | 
  
    |  |