Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
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]
  ignore  |  Print  
  JavaFX 2.0 port of KevGlass's Space Invaders(windows only)  (Read 4526 times)
0 Members and 1 Guest are viewing this topic.
Offline namrog84

JGO Ninja


Medals: 46
Projects: 4


Keep programming!


« Posted 2011-06-09 18:58:34 »

So there is a lot of lack of FX2.0 tutorials or reference files, I decided to port the kevglass's classic spave invaders tutorial/sample code over to javaFX.

I can't promise the "best practices" programming, because honestly, I just started using FX for the first time, never used fxscript. I can find no more bugs, but I know of at least 1 potential problem.


applet version (FX2.0 runtime required)
http://www.newrog.com/java/asteroidfx/spaceinvadersfx.html
Note*  Do not use this as a judgment for javaFX 2.0 performance, because there are at least 1-2 things I personally know of that make it a little less than "ideal"

source
http://www.newrog.com/java/asteroidfx/space_fx_namrog.zip

original tutorial/code from kevglass:
http://www.cokeandcode.com/info/tut2d.html

javaFX 2.0 beta run times(requires free oracle account right now)
http://www.oracle.com/technetwork/java/javafx/downloads/index.html


1 added feature to show 1 FX built in feature.
at the press any key screen at lunch, press A or S for large or small scale,  if you press it ingame, it only changes the bullet size.  I know other engines have scaling as features, but java I dont think ever had that great of built in scaling, and now its a simple .scaleX(value);


I hope and plan to continue to add/improve this to show more javaFX specific built in functions, I will also throw up a tutorial page later on with those features explained in more detail.  I figured since there is a LWJGL port, why not a javaFX2.0 port  Smiley

"Experience is what you get when you did not get what you wanted"
Offline CommanderKeith
« Reply #1 - Posted 2011-06-09 20:37:45 »

Thanks for making this.
I'm looking forward to seeing some javafx apps do their thang.

For some reason your app won't run for me though, even though I just updated to the very latest java 6 update 26. Do you need to have a custom beta java install to run javaFX?

Cheers,
Keith

Offline namrog84

JGO Ninja


Medals: 46
Projects: 4


Keep programming!


« Reply #2 - Posted 2011-06-09 20:58:35 »

Thanks for making this.
I'm looking forward to seeing some javafx apps do their thang.

For some reason your app won't run for me though, even though I just updated to the very latest java 6 update 26. Do you need to have a custom beta java install to run javaFX?

Cheers,
Keith


As of right now, you do require a manual install Java FX 2.0 Beta Runtime.

When it is out of beta, they will bundle them together, but for the time being you need to install something.

JavaFX 2.0 Beta Runtime (build 30) (requires free oracle account right now)
http://www.oracle.com/technetwork/java/javafx/downloads/index.html

"Experience is what you get when you did not get what you wanted"
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline TheMatrix154

Junior Member


Medals: 2



« Reply #3 - Posted 2011-06-10 06:49:14 »

Oracle sux...

Quote
5. What operating systems are supported by JavaFX?

JavaFX 2.0 will be fully supported on 32-bit and 64-bit versions of Microsoft Windows XP, Windows Vista, and Windows 7. Early Access versions of JavaFX 2.x for Mac OS and Linux will be made available at a later date, but support for these platforms will not be included as part of the JavaFX 2.0 final release.
(source)

*deadly irony on*
Does cross platform mean we Support Win 32 / 64 bit for XP, Vista and Windows 7?
*deadly irony off*

Offline ra4king

JGO Kernel


Medals: 345
Projects: 3
Exp: 5 years


I'm the King!


« Reply #4 - Posted 2011-06-10 08:08:18 »

Oracle sux...

Quote
5. What operating systems are supported by JavaFX?

JavaFX 2.0 will be fully supported on 32-bit and 64-bit versions of Microsoft Windows XP, Windows Vista, and Windows 7. Early Access versions of JavaFX 2.x for Mac OS and Linux will be made available at a later date, but support for these platforms will not be included as part of the JavaFX 2.0 final release.
(source)

*deadly irony on*
Does cross platform mean we Support Win 32 / 64 bit for XP, Vista and Windows 7?
*deadly irony off*
Loving how that statement is dripping with sarcasm and irony Tongue

But yeah this is a load of bollocks. No support for Mac or Linux on final release?!?

Offline gouessej
« Reply #5 - Posted 2011-06-10 11:16:49 »

Thanks for this port but without Linux & Mac support, JavaFX is completely useless.

Offline Mike

JGO Wizard


Medals: 76
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #6 - Posted 2011-06-10 11:40:12 »

Thanks for this port but without Linux & Mac support, JavaFX is completely useless.

Because that's 90% of the market? ;-)

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 77
Projects: 15


★★★★★


« Reply #7 - Posted 2011-06-10 11:50:51 »

As important as those two operating systems are for JavaFX to succeed, I'd rather see them get it right on at least one platform first rather than spread their development resources too thin and end up with something crappy.
Offline namrog84

JGO Ninja


Medals: 46
Projects: 4


Keep programming!


« Reply #8 - Posted 2011-06-10 11:52:58 »

I agree with kappa, windows is the majority of the platform and always has been, they need to get performance and stability top notch. I'd have to hope to believe that by FX2.1 or earlier that there will be full support for mac and linux. Its not a matter of if, but when. Of course there will be support

"Experience is what you get when you did not get what you wanted"
Offline princec

JGO Kernel


Medals: 378
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #9 - Posted 2011-06-10 12:57:32 »

I agree with kappa, windows is the majority of the platform and always has been, they need to get performance and stability top notch. I'd have to hope to believe that by FX2.1 or earlier that there will be full support for mac and linux. Its not a matter of if, but when. Of course there will be support

Except for me, where it's about 50% of my market.

Cas Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline namrog84

JGO Ninja


Medals: 46
Projects: 4


Keep programming!


« Reply #10 - Posted 2011-06-10 12:58:25 »

I agree with kappa, windows is the majority of the platform and always has been, they need to get performance and stability top notch. I'd have to hope to believe that by FX2.1 or earlier that there will be full support for mac and linux. Its not a matter of if, but when. Of course there will be support

Except for me, where it's about 50% of my market.

Cas Smiley

really?  is mac 50% or linux 50%? or both combined?

edit: nice, well in that case, I hope mac and linux support comes super soon!

"Experience is what you get when you did not get what you wanted"
Offline princec

JGO Kernel


Medals: 378
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #11 - Posted 2011-06-10 13:00:56 »

really?  is mac 50% or linux 50%? or both combined?
The Humble Indie Bundle #2, of which we were a major part, netted us about $180,000, of which approximately $45,000 came from Mac and $45,000 came from Linux.

Cas Smiley

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

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

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

TehJavaDev (69 views)
2014-09-10 06:39:09

Tekkerue (34 views)
2014-09-09 02:24:56

mitcheeb (56 views)
2014-09-08 06:06:29

BurntPizza (40 views)
2014-09-07 01:13:42

Longarmx (25 views)
2014-09-07 01:12:14

Longarmx (32 views)
2014-09-07 01:11:22

Longarmx (31 views)
2014-09-07 01:10:19

mitcheeb (39 views)
2014-09-04 23:08:59
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!