Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (117)
games submitted by our members
Games in WIP (563)
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]
  ignore  |  Print  
  Electron Golf 4k  (Read 4374 times)
0 Members and 1 Guest are viewing this topic.
Offline ra4king

JGO Kernel


Medals: 346
Projects: 3
Exp: 5 years


I'm the King!


« Reply #30 - Posted 2012-01-29 22:25:39 »

@Riven
seems like ?: breaks syntax coloring for true/false.

@OP
Why use a JApplet? It's best to skip Swing and just use Applet directly. I've had focus problems with Swing before so I try to avoid it as much as possible if I'm not using any Swing components.

Offline LonghornDude08

Senior Newbie





« Reply #31 - Posted 2012-01-29 22:29:26 »

I can't exactly remember, but when I just had Applet, my graphics were completely FUBAR'd
Offline LonghornDude08

Senior Newbie





« Reply #32 - Posted 2012-01-29 22:33:19 »

Just changed it to Applet. For some reason the uploaded version is flashing a bit. Try it out while I figure out how to stop this madness
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline LonghornDude08

Senior Newbie





« Reply #33 - Posted 2012-01-29 23:18:36 »

took care of the flashing by un-overriding the paint method
Offline LonghornDude08

Senior Newbie





« Reply #34 - Posted 2012-02-01 05:38:48 »

Any word on whether it works now or not?
Offline Shazer2

Junior Member


Medals: 3


Aspiring developer.


« Reply #35 - Posted 2012-02-01 05:42:22 »

Any word on whether it works now or not?

I can confirm that it now works.

~Shazer2 Smiley

"When you want to be successful as bad as you want to breathe, then you will be successful." - Eric Thomas
Offline ra4king

JGO Kernel


Medals: 346
Projects: 3
Exp: 5 years


I'm the King!


« Reply #36 - Posted 2012-02-01 11:58:21 »

I'm confirming keyboard input works for me too now Smiley

What did you change?

Offline LonghornDude08

Senior Newbie





« Reply #37 - Posted 2012-02-02 01:37:55 »

AWESOME!  Grin

What did you change?

The main change was going from JApplet to Applet. As a consequence, I no longer used paint()/repaint() (the screen would flash black) and instead used getGraphics(). My guess is the former made the most difference. I'm not too sure why swing was the problem; my initial guess might be correct in that the compression screwed with it a little.
Offline ra4king

JGO Kernel


Medals: 346
Projects: 3
Exp: 5 years


I'm the King!


« Reply #38 - Posted 2012-02-02 01:55:27 »

I really doubt compression can do anything to the original bytecode that would cause a different execution path. I do agree that it is most likely the usage of Applet over JApplet that fixed the issue Smiley

Pages: 1 [2]
  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.

Grunnt (13 views)
2014-09-23 14:38:19

radar3301 (14 views)
2014-09-21 23:33:17

BurntPizza (31 views)
2014-09-21 02:42:18

BurntPizza (22 views)
2014-09-21 01:30:30

moogie (20 views)
2014-09-21 00:26:15

UprightPath (29 views)
2014-09-20 20:14:06

BurntPizza (33 views)
2014-09-19 03:14:18

Dwinin (48 views)
2014-09-12 09:08:26

Norakomi (75 views)
2014-09-10 13:57:51

TehJavaDev (105 views)
2014-09-10 06:39:09
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!