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
Java-Gaming.org
>
Games Center
>
Contests
>
Finished Contests
>
Tiny Game 2010
>
40x30 EGA Contest
Pages:
1
2
3
[
4
]
Print
40x30 EGA Contest
(Read 9038 times)
0 Members and 1 Guest are viewing this topic.
ShannonSmith
Sr. Member
Posts: 365
Medals: 13
Re: 40x30 EGA Contest
«
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.
kaoD
JGO n00b
Posts: 14
Re: 40x30 EGA Contest
«
Reply #91 on:
2010-08-18 01:33:08
»
Quote from: ShannonSmith on
2010-08-17 15:57:10
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.
ShannonSmith
Sr. Member
Posts: 365
Medals: 13
Re: 40x30 EGA Contest
«
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:
Please select a destination:
-----------------------------
Games Center
-----------------------------
=> Featured Games
=> Showcase
=> Contests
===> LWJGL16k - 2011
===> 4K Game Competition - 2012
===> JGO Comp Petite
===> Finished Contests
=====> 4K Game Competition - 2011
=====> 4K Game Competition - 2010
=====> 4K Game Competition - 2009
=====> 4K Game Competition - 2008
=====> 4K Game Competition - 2007
=====> 4K Game Competition - 2006
=====> 4K Game Competition - 2005
=====> Tiny Game 2010
=====> JGO Comp 2009
=====> 16K LWJGL Competition - 2005
=====> Java Technology Game Development Contest - 2004
-----------------------------
Discussions
-----------------------------
=> General Discussions
===> Suggestions
=> Business and Project Discussions
===> Jobs and Resumes
===> Community & Volunteer Projects
=> Miscellaneous Topics
-----------------------------
Game Development
-----------------------------
=> Newbie & Debugging Questions
=> Articles & tutorials
=> Game Play & Game Design
=> Game Mechanics
===> Artificial Intelligence
=> Networking & Multiplayer
=> Performance Tuning
=> Shared Code
-----------------------------
Java Game APIs & Engines
-----------------------------
=> Engines, Libraries and Tools
===> Java 3D
===> JInput
===> jMonkeyEngine
===> Xith3D Forums
===> Tools Discussion
=> Java 2D
===> JavaFX
=> OpenGL Development
===> JOGL Development
===> LWJGL Development
=> Java Sound & OpenAL
===> JOAL Development
=> Java on Mobile Devices
===> Android
===> J2ME
Loading...