Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2] 3 4
  ignore  |  Print  
  Doodle Jump for PC  (Read 62826 times)
0 Members and 1 Guest are viewing this topic.
Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #30 - Posted 2011-02-13 09:48:11 »

I'm in the US and it is 4:47 am where I am (i don't sleep much Cheesy )

Offline bobjob

JGO Knight


Medals: 10
Projects: 4


David Aaron Muhar


« Reply #31 - Posted 2011-02-13 09:55:07 »

I'm in the US and it is 4:47 am where I am (i don't sleep much Cheesy )
the joys of getting into programming, it really takes a toll on a persons bio'clock.

My Projects
Games, Webcam chat, Video screencast, PDF tools.

Javagaming.org with chat room
Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #32 - Posted 2011-02-13 09:57:29 »

my parents hate it and they're doing all they can to control me Tongue
too bad they're asleep haha

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej
« Reply #33 - Posted 2011-02-16 10:33:58 »

Thank you for the removal of the popup but I cannot use the keyboard like before. Other applets in the showcase sections work fine on my machine (I have tested ApoMario for example).

Offline ReBirth
« Reply #34 - Posted 2011-02-16 11:50:26 »

The game works well here so I can't give any feedback. I have advice, why dont make your own image and title for cpright safety? it's not hard to draw an unanimated character (I think) Smiley

Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #35 - Posted 2011-02-16 18:30:39 »

Thank you for the removal of the popup but I cannot use the keyboard like before. Other applets in the showcase sections work fine on my machine (I have tested ApoMario for example).
Every button I have set works fine. You have to click to focus after clicking on "Play Now!"

The game works well here so I can't give any feedback. I have advice, why dont make your own image and title for cpright safety? it's not hard to draw an unanimated character (I think) Smiley
I wanted to make it look like the original because people want something very similar to the actual Doodle Jump.
Plus I can't draw on a computer to save my life Tongue

Offline gouessej
« Reply #36 - Posted 2011-02-17 10:08:38 »

Every button I have set works fine. You have to click to focus after clicking on "Play Now!"
I do this as the mouse works but not the keyboard. When I'm in the game, I can use the mouse to shoot and that's all, I cannot move with the keyboard.

Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #37 - Posted 2011-02-17 22:31:27 »

Every button I have set works fine. You have to click to focus after clicking on "Play Now!"
I do this as the mouse works but not the keyboard. When I'm in the game, I can use the mouse to shoot and that's all, I cannot move with the keyboard.
That is very strange. I hope I'm not insulting you with this last question, but are you using the arrow keys?

Offline gouessej
« Reply #38 - Posted 2011-02-18 12:04:36 »

Every button I have set works fine. You have to click to focus after clicking on "Play Now!"
I do this as the mouse works but not the keyboard. When I'm in the game, I can use the mouse to shoot and that's all, I cannot move with the keyboard.
That is very strange. I hope I'm not insulting you with this last question, but are you using the arrow keys?
Yes I am. I tried to use both arrow keys and A & D. When I press a key, it works like the applet does not have the focus, the browser handles the key. This problem happens even though I click onto the applet.

Offline ReBirth
« Reply #39 - Posted 2011-02-19 11:16:37 »

The keys are similiar to one of browser's shortcuts maybe?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej
« Reply #40 - Posted 2011-02-19 12:44:07 »

The keys are similiar to one of browser's shortcuts maybe?
No. As I said, other applets using the same keys work just fine. Maybe the KeyListener and the MouseListener are not on the same component.

Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #41 - Posted 2011-02-19 20:39:16 »

The keys are similiar to one of browser's shortcuts maybe?
No. As I said, other applets using the same keys work just fine. Maybe the KeyListener and the MouseListener are not on the same component.
The KeyListener and MouseListener are on JApplet's ContentPane.

Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #42 - Posted 2011-02-24 19:27:59 »

Ok here is how it works. I have 2 components, one for the Menus, one for the GameWorld. When you click play, I remove the Menus component and add the GameWorld component. The KeyListener and MouseListener objects are, however, added directly onto the JApplet, not on either component.

Offline philfrei
« Reply #43 - Posted 2011-02-25 03:09:56 »

Just tried it. Fun! Good sf/x too. I liked discovering what the different objects do. No bugs or problems to report, that I came across. Nicely done!

So, this is a copy of a game on a hand-held? Copying is a good way to learn. I hope your plans include ambitions for designing and writing your own, too.

Thx!

"Greetings my friends! We are all interested in the future, for that is where you and I are going to spend the rest of our lives!" -- The Amazing Criswell
Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #44 - Posted 2011-02-25 03:22:52 »

Just tried it. Fun! Good sf/x too. I liked discovering what the different objects do. No bugs or problems to report, that I came across. Nicely done!

So, this is a copy of a game on a hand-held? Copying is a good way to learn. I hope your plans include ambitions for designing and writing your own, too.

Thx!
Thanks!
What does sf/x mean Tongue
And this was my first ever game so I wanted to test my graphics and designing abilities!

Offline Mike

JGO Wizard


Medals: 74
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #45 - Posted 2011-02-25 08:08:06 »

What does sf/x mean Tongue
And this was my first ever game so I wanted to test my graphics and designing abilities!

Sound effects Smiley

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #46 - Posted 2011-02-25 18:36:17 »

What does sf/x mean Tongue
And this was my first ever game so I wanted to test my graphics and designing abilities!

Sound effects Smiley

Mike
Thanks, I didn't know that abbreviation.

Also, I have included a link to the source code. Check out the first post of this thread Cheesy

Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #47 - Posted 2011-02-27 23:28:44 »

gouessej, is there something wrong with the listeners in Java?
Putting the Key and MouseListeners on:
-the component that draws the game does not work,
-the GlassPane does not work,
-the RootPane does not work,
-(out of desperation) the JLayeredPane does not work

Only the content pane works for me and the majority of people playing this game.

Is there an inconsistency with different version of Java and/or the operating system they're installed on?

Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #48 - Posted 2011-03-02 20:52:50 »

By the way, I just noticed the Featured Games section Tongue

Could you guys rate my game? Thanks! Smiley

Offline loom_weaver

JGO Coder


Medals: 17



« Reply #49 - Posted 2011-03-04 02:57:42 »

Same problem as gouessej.

Clicking the mouse works but the keys don't.  MacBook Pro, java 1.6.0_22, running in Safari.
Offline Captain Awesome

Junior Member


Medals: 2


Hi


« Reply #50 - Posted 2011-03-04 10:55:31 »

Same problem as gouessej.

Clicking the mouse works but the keys don't.  MacBook Pro, java 1.6.0_22, running in Safari.
Try updating java, latest version is release 24
Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #51 - Posted 2011-03-04 19:13:03 »

Same problem as gouessej.

Clicking the mouse works but the keys don't.  MacBook Pro, java 1.6.0_22, running in Safari.
Both of you are using Macs. So it must be a problem with Listeners with Java for Mac since the keys work on all Windows and Linux computers.

Write once, run everywhere huh? Grin

Offline Apo
« Reply #52 - Posted 2011-03-05 11:48:46 »

No not only on macs ... on my pcs with Windows Vista and Windows 7 same problem ... tested with release 24 and Java 7 running firefox.
Offline loom_weaver

JGO Coder


Medals: 17



« Reply #53 - Posted 2011-03-05 14:46:16 »

I did some testing the other day with a very basic applet and was able to get it (using KeyListener) working on my system within Safari.  I also tried downloading your source code and modifying it in a few different ways but no luck.  I managed to get JDoodleJump to run fine on my system when launched directly from my IDE but it still did not work when running it from Safari (the keys still didn't work).

I think the problem has something to do with slight differences across OS/browser/JRE combinations in how focus is handled.
Offline bobjob

JGO Knight


Medals: 10
Projects: 4


David Aaron Muhar


« Reply #54 - Posted 2011-03-05 19:58:35 »

to allow keyboard input into buggy java version on Mac. (64bit using Chrome) with my own applets I had to click in the address bar then click back on the applet

My Projects
Games, Webcam chat, Video screencast, PDF tools.

Javagaming.org with chat room
Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #55 - Posted 2011-03-05 22:49:46 »

JDoodleJump works in Safari, Internet Explorer, Firefox, and Chrome on my Windows 7 x64 box and my parent's Windows XP.

What is weird is how, like Apo said, it doesn't work on Firefox, Windows 7 when it works on mine. That doesn't help me try to narrow down the problem :/

Offline gouessej
« Reply #56 - Posted 2011-03-06 14:54:46 »

That doesn't help me try to narrow down the problem :/
I'm going to give a deeper look at your source code, I should be able to fix this bug.

Edit.: Please can you use Applet instead of JApplet? Is Swing mandatory?

Edit.: strange... the mouse adapter is not added on the same component than the key listener, I was right:
1  
gw.addMouseListener(new MouseAdapter() {


1  
addKeyListener(new KeyAdapter() {


Edit.2: I was right, you were wrong. The key listener in on a GameWorld that extends JComponent whereas the mouse adapter is on the content pane.

Offline Terminalord

Senior Newbie





« Reply #57 - Posted 2011-03-06 16:26:58 »

Fun little game. Good work.

Firefox 4 beta 12
Windows Vista

Terminalord
Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #58 - Posted 2011-03-06 17:41:35 »

Agh was that in the public source code? That must have been the wrong version then since in the current game on my website, both listeners are added to the content pane.

And I really don't see a difference between Applet and JApplet other than that JApplet supports Swing.
What is the advantage of using Applet?

Fun little game. Good work.

Firefox 4 beta 12
Windows Vista
Thanks!

Offline gouessej
« Reply #59 - Posted 2011-03-07 10:08:00 »

Agh was that in the public source code?
Yes.

That must have been the wrong version then since in the current game on my website, both listeners are added to the content pane.
Maybe try to put them both onto the GameWorld instance.

And I really don't see a difference between Applet and JApplet other than that JApplet supports Swing.
What is the advantage of using Applet?
Use Swing only if it is required. If you don't need Swing, you don't need to use a JApplet. Applet is generally a bit more reliable than JApplet.

Pages: 1 [2] 3 4
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

TehJavaDev (13 views)
2014-08-28 18:26:30

CopyableCougar4 (25 views)
2014-08-22 19:31:30

atombrot (38 views)
2014-08-19 09:29:53

Tekkerue (31 views)
2014-08-16 06:45:27

Tekkerue (30 views)
2014-08-16 06:22:17

Tekkerue (19 views)
2014-08-16 06:20:21

Tekkerue (29 views)
2014-08-16 06:12:11

Rayexar (66 views)
2014-08-11 02:49:23

BurntPizza (42 views)
2014-08-09 21:09:32

BurntPizza (34 views)
2014-08-08 02:01:56
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!