Flash, Java, or both

Hello, my name is MindofCorruption97 and I would like to ask a question. Depending on both programs (Flash AS3 and Java) which ones better suited for game developing. Also, is it possible to add a Flash game onto a java JFrame and somehow combine the two codes together in some way?

Combine them seems impossible. Furthermore flash are being left now to html5.

What platforms are you developing for?

Cas :slight_smile:

Well I’m currently using java, but was just curious about flash.

Flash is…not good. It’s unsupported and slow. The only advantage is that you can pick it up very quickly.

Also, you can’t ask Flash questions or post Flash games on JGO ;D

For desktop games Java is probably a better choice with its powerful JVM, solid built-in API’s and access to low level API’s like OpenGL.

Flash on the other hand excels at web games especially for the casual market. Its also much easier to monetise Flash using web ads, sell to web portals, etc. It also has a pretty solid toolset which is easier to pick up for none programmers and artists.

Really depends on the type of games you want to make and audience you are targeting.

HTML5 would be much, much better to learn seeing as it’s on the rise.

Is it possible to develop in flash without paying a lot of money on software? I was going to give it a go. I got a book on it and everything, but even the open source software was like £400. I’m still not sure if I am missing something.

Open Source software for £400? ???

Anyway, you should look for ActionScript as that’s what you use to develop the game part of Flash games.

Maybe it is on the rise but the performance is still very bad except with Chrome 19 and Chromium 18 on all machines I tested. It is not mature enough.

MindOfCorruption97, Flash is working worse than before under GNU Linux and will be discontinued on mobiles. What not going on using Java?

You have to remember how crappy Java was in the beginning, although I didn’t personally experience it. It was slow, kind of like HTML5. But now it’s pretty good. I think HTML5 will get better over time, especially since it’s getting popular.

PlayN and AllBinary Platform kinda have Flash support via java.

My support is J2ME/BB, Android, J2SE, HTML5, Flash, and eventually Native via a subset of Java.

While PlayN has Android, J2SE, HTML5, Flash, and promised IOs support.

So not only is it possible it has already happened, but I have not released all my stuff and PlayN is a lower level framework.

Simple breakdown, IMO:

Use Java if:

  • You are targeting desktop
  • You want to learn OpenGL/GLSL
  • You want better hardware acceleration
  • You want a solution that will likely still be relevant 5+ years down the road
  • You don’t own Flash Pro
  • You are targeting mobile web browsers through HTML5 (i.e. using LibGDX or GWT)
  • You are targeting Android (i.e. LibGDX)

Use AS3/Flash Pro if:

  • You want a visual environment integrated with your game, i.e. for graphics and such
  • You want a simple all-in-one platform for making/distributing 2D games
  • Your game is vector-heavy
  • You are targeting a casual market
  • You are targeting web users, or you hope to monetize through web portals
  • You are targeting iOS or Windows Phone

Flash is pretty good but it’s slowly being replaced by HTML5. This will take a few years at least, so you can still make some money off it in the mean time.

PlayN is also another cool option, haven’t tried it with Flash.

Can we at JGO, clever chaps that we are, at least not contribute to the propagation of the lie?

Javascript, or whatever framework you use to generate the javascript from a far cleaner base language. But still - its javascript. HTML 5 is just a markup language with some additional tags which just happen to be useful for creating games using Javascript.

Ok, pedant :slight_smile: Maybe “HTML5” is de facto referred to now to encompass the whole gamut of required technologies - Javascript and HTML5 and several of the Javscript APIs supported by all the browsers.

Cas :slight_smile:

True, I am a pedantic ahole. But even I have a place in society :wink:

http://www.flashdevelop.org/

Doesn’t give you the visual editor that comes with Adobe but you it support ActionScript and can create .swf files.

Well its just… javascript is bad / nobody really wants to learn or use it and HTML 5 just sounds nicer.
“It’s like covering a turd with ice cream sprinkles.”

He, sucks to be all those novices that run into the world to learn HTML “the solution to all problems in the world” 5 and then figure out the incredibly ugly truth looming beneath that layer sprinkles :wink:

I can already see the first posts. “Okay, I managed to create a canvas. Now which buttons do I push to make it do stuff?”

I’m really fed up with ultra-indulgent comments and articles about WebGL. Java and WebGL are not comparable, the first one is not only a language but rather a platform, the second one is a Javascript API. I remember how Java was in 2002 and it was faster than WebGL. I got only between 0.5 and 2 FPS simply to display a teapot with an NVIDIA Quadro 5000 :o Make plenty of suppositions about its future if you want but please come down to Earth: WebGL is extremely slow on lots of machines. I already explained it here.

It still requires half a second to draw a teapot on a graphics card able to treat 950 000 000 triangles per second.

I just say that WebGL is not mature enough now. It doesn’t mean that it won’t be mature in ten years.