Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 2 3 [4]
  Print  
  40x30 EGA Contest  (Read 9038 times)
0 Members and 1 Guest are viewing this topic.
Online ShannonSmith

Sr. Member
**

Posts: 365
Medals: 13



« Reply #90 on: 2010-08-17 15:57:10 »

Quote
Is the letter misplacement in the array intentional, or is it unintended and caused only on my computer for some reason?

I could have included zeros in the FONT array for a 1-1 match with ascii so the
1  
int value = FONT[s.charAt(i) - 28];
wouldn't include the -28 I can't remember why I didn't it was probably to match up with a square texture grid or something.

Offline kaoD

JGO n00b
*

Posts: 14



« Reply #91 on: 2010-08-18 01:33:08 »

I could have included zeros in the FONT array for a 1-1 match with ascii so the
1  
int value = FONT[s.charAt(i) - 28];
wouldn't include the -28 I can't remember why I didn't it was probably to match up with a square texture grid or something.
Thanks for the answer, but I was asking because I had to tweak the array. Uppercase "I" was missing, and lowercase letters were off by one space. Thanks for the code too, I'm using it in my game and works flawlessly.
Online ShannonSmith

Sr. Member
**

Posts: 365
Medals: 13



« Reply #92 on: 2010-08-18 12:41:59 »

Your right, it is missing... I must have accidentally deleted it when formatting the code to fit in a forum post (was one line of source). Hex for 'I' is 0x7497.

Pages: 1 2 3 [4]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.138 seconds with 22 queries.