Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (523)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (591)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Newbie & Debugging Questions / Re: Where to add keylistener with FullScreen? on: 2004-02-18 00:08:21
Well before I tried adding "addKeyListener(this)" to area where we create the frame. When i added "mainFrame.addKeyListener(this)" to the part I initialized other objects which is also after the creation of the mainFrame, my key listener started working.
Also i was wondering:
When i tried the keyboard input from the wiki, my vk_arrow keys do not work? Left, Right, Down, Up generate the same key instance and i'm not sure why. VK_ESCAPE works perfectly, but its these virtual arrow keys that make my program annoying. Sigh..
2  Game Development / Newbie & Debugging Questions / Re: Where to add keylistener with FullScreen? on: 2004-02-16 14:36:40
Hum..wow..
all i had to do was type "mainFrame.addKeyListener(this);"
but i dont' understand why when i typed "addKeyListener(this);", it did not accomplish the same thing? Perhaps the compiler doesn't know what to add to exactly ?

Thanks very much kev.
3  Game Development / Newbie & Debugging Questions / Re: Where to add keylistener with FullScreen? on: 2004-02-13 11:36:10
cough..which one please..? Am still stuck
4  Game Development / Newbie & Debugging Questions / Re: Where to add keylistener with FullScreen? on: 2004-02-08 20:02:38
do you mean replace 'this' with mainFrame? or use "addKeyListener(this)" when i construct a fullscreen window?
5  Game Development / Newbie & Debugging Questions / Where to add keylistener with FullScreen? on: 2004-02-08 11:52:34
Hello all, i went through the wiki for some help on fullscreen and keyboard input. I looked at the code and tested it out.
Now that i've somewhat understood how fullscreen works, thanks to the wonderful and clear comments made, i began tinkering around the code. (IE Displaying random objects, pictures, etc...) But the thing that I can't seem to get right is the keylistener.

I'm also using my Deitel java book for reference, but everything they do requires swing and they added "addKeyListener(this)" within the constructor of the class.
I looked through the fullscreen code and saw that well although some of it is similar to swing, i don't think it really uses it. (I'm a newbie to java ). I was wondering where i Should implement "addKeyListener(this)" because so far i can't get keyboard input to work and its frustrating me !!

Thanks!
6  Game Development / Newbie & Debugging Questions / Wheres the online book? on: 2003-12-21 14:28:20
Huh I know a user on these forums had posted a link to his online book: It was about java game programming and I found it really useful. He wasn't quite done with it, but the chapters he had finished were incredibly useful. But my computer got reformatted and I have lost the link.

I'm sorry if it sounds vague, but does anyone have the URL still? (The author did post here and I can't seem to find it even with a search)
7  Discussions / Miscellaneous Topics / Re: This is like relearning Java all over... on: 2003-06-28 01:58:55
X_X.
Event driven mean like switch/if statements about a certain event? Or maybe i'm misunderstanding the phrase.

Are threads a big part of programming a game? I read some of you hate threads and mainly use a loop. But how do you control the timing of the loop? With a thread? a Timer? maybe a counter?

(Sorry if this is like a newbie question, but it feels relevant enough to the answers posted)
8  Discussions / Miscellaneous Topics / Re: This is like relearning Java all over... on: 2003-06-26 21:52:07
a nice hot cup of Java...har har Tongue

i like hot coco..
9  Discussions / Miscellaneous Topics / Re: This is like relearning Java all over... on: 2003-06-26 15:19:26
great..another thing i should throw out..
so much..

X_X
hopefully i can get this soon..maybe a month i can start to develop my own ideas and simple games..
10  Discussions / Miscellaneous Topics / Re: This is like relearning Java all over... on: 2003-06-26 13:52:18
I've had this 'Black Art of Java Game Programming'. I understand the concepts in there, but most of the API is deprecated and quite old. But the concepts many of you use here are quite, shall i say advanced? Such as BufferStrategy, and page flipping etc... I think the only thing this book ever covered about less flicker was DoubleBuffering and I know how to do that. But the problem with the book is, its all applets. Just applets.
11  Discussions / Miscellaneous Topics / This is like relearning Java all over... on: 2003-06-26 12:59:10
I'm not new to Java, i've been doing it since 1999. But its all mostly applications and whatnot. Nothing like a game. I've done basic, non graphic heavy games, like breakout, pong etc..using only basic java shapes and my own classes. But these were all applets, and I used to think applets were the way to go.
But BAM i come to these forums and i see that i'm quite outdated and the applets i've seen are useless <almost>.
Learning to do fullscreen itself is quite a task and I'm still having trouble :\ But its nice refresh, and I really want to learn how to do all this. But game programming is a totally new direction...even school courses I have to throw out the window.
Sometimes it feels like quicksand and i can't get out.
Anyone have a hard experience first time programming java for games? I'd like to hear how you got through it.
12  Java Game APIs & Engines / Java 2D / Re: Loading Tiles on: 2003-06-25 12:53:43
heh sorry..i used to use getImage() too.
But how does ImageIO.read() work?

sorry if i bothered anyone..but new X_X
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Gibbo3771 (12 views)
2014-11-24 19:59:16

trollwarrior1 (35 views)
2014-11-22 12:13:56

xFryIx (74 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50

digdugdiggy (46 views)
2014-11-12 21:10:15

digdugdiggy (40 views)
2014-11-12 21:09:33

kovacsa (66 views)
2014-11-07 19:57:14

TehJavaDev (70 views)
2014-11-03 22:04:50

BurntPizza (68 views)
2014-11-03 18:54:52

moogie (83 views)
2014-11-03 06:22:04
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!