Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (604)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (654)
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  
  Java for platformer  (Read 2000 times)
0 Members and 1 Guest are viewing this topic.
Offline securobo

Junior Newbie

« Posted 2011-03-16 00:43:15 »

Hi, everyone. I would like to know how possible it is to create a smooth scrolling platformer game using java. For example a game such as Super Mario Bros. on a Nintendo.

Can someone recommend a platformer game that is smooth scrolling as an example.

Is it possible to create something like that as a fullscreen application.

For example, I am running Windows 7 at 2048 x 1152. Is it possible to create a game that takes up full resolution. Please excuse what might seem a very simple question, but I have something more specific in mind. Do Java games require a browser to run? Or can you run applications as self contained programs, such as *.exe.

I have looked into alot of information and my questions were mostly answered, but what I am looking for is an explanation from a game programmers perspective. What can actually be accomplished with java.

I have never for example heard of Java applications (games) being bought off the shelf. However there are OpenGL libraries for Java. So obviously it's possible to create 3D apps.Again I am looking for a detailed explanations to convince me that the language is worth picking up over other languages. Game Development in mind. Please tell me a little about your successes and or failures. It would be very helpful.
Offline princec

« JGO Spiffy Duke »

Medals: 556
Projects: 3
Exp: 16 years

Eh? Who? What? ... Me?

« Reply #1 - Posted 2011-03-16 00:55:39 »

We do ok with Java. There's two scrolling games on our site - Droid Assault and Revenge of the Titans. Not platformers but you should get the general gist that it's easily capable, and also, we distribute standalone installers for the games, there's no requirement for a JVM to be present on Windows.

Cas Smiley

Offline securobo

Junior Newbie

« Reply #2 - Posted 2011-03-16 00:58:12 »

Thank you, I'll check those games out right now.

As for the standalone installer. Is it the same concept as python, that it embeds an interpreter? If so, does that become part of the program? or is it a supporting file?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Eli Delventhal

JGO Kernel

Medals: 42
Projects: 11
Exp: 10 years

Game Engineer

« Reply #3 - Posted 2011-03-16 00:58:45 »

100% possible. You can make anything in Java.

You can check out Infinite Mario Bros, a game Markus Persson (also known as Notch) made a long while ago. I can't find it on the internets anymore but the source is kicking around.

Check out this video of an AI that plays the game:

The source with the AI (and also the mario project) is in the video description.

See my work:
OTC Software
Offline princec

« JGO Spiffy Duke »

Medals: 556
Projects: 3
Exp: 16 years

Eh? Who? What? ... Me?

« Reply #4 - Posted 2011-03-16 01:07:08 »

As for the standalone installer. Is it the same concept as python, that it embeds an interpreter? If so, does that become part of the program? or is it a supporting file?
We just install the entire JVM (lib and bin directories, basically) into the game's install folder alongside the jars, dlls, and launcher exe. Well we would do but the whole thing is Moleboxed at the moment but that's another story.

Cas Smiley

Offline securobo

Junior Newbie

« Reply #5 - Posted 2011-03-16 01:18:08 »

I just finished checking out Titan Attacks. It is sweet. I love it. I am really going to look into Java now.

I have questions of course.

For a game such as Titan Attacks. Is Java just as capable of keeping things running if it's redesigned at full resolution? I understand that it would be overkill on the playability side, but in some cases it could be nice. Why for example is the game design decision for the game to be such a small screen. I know alot of games are like that. Is it mostly for compatibility with small screens? Or is there some consideration because of the language and screen libraries and such.

The installer for Titan Attacks. Is that commercial? Also, you mention the launcher. I assume that's a platform specific program. Is that something from oracle? or third party.
Offline securobo

Junior Newbie

« Reply #6 - Posted 2011-03-16 01:59:49 »

OK, just noticed, the installer is nullsoft. Very good. Just got excited about java, did not notice the small details.
Offline princec

« JGO Spiffy Duke »

Medals: 556
Projects: 3
Exp: 16 years

Eh? Who? What? ... Me?

« Reply #7 - Posted 2011-03-16 09:17:35 »

The launcher's just a really simple .exe that invokes the JVM with a bunch of set parameters.
The only limits on the resolution of the game are the fillrate of the graphics card, nothing to do with Java. We made those original games small in case something interesting happened in the phone space or we wanted to deploy as applets, but nothing did, and we never got around to applets seriously.

Cas Smiley

Offline philfrei
« Reply #8 - Posted 2011-03-16 10:10:00 »

Have you looked at the games in the Showcase section of this site?
Also, check out

Pros: Java is very fast, rivals C. But if you want to focus on a specific platform(s) you do have the option of  programming the bulk in Java and then embedding key customized components written in C or whatever native language. There is a lot of support for scripting languages as well. Java's Jython code executes faster than Python, I hear. Java has a big community, lots of helpful people. Some excellent IDE choices. And the price is right.

Cons: mixed reputation in the gaming world, not available so much on consoles, not as much market penetration as Flash, though still respectible. If you are just learning it, there are some significant conceptual hurdles and technical hurdles. There's a lot of "I just want to do X" but you have to learn to handle the simple thing you want to do as part of a more generalized, more complicated framework. Seems to be easy for people to lose patience and say/think the language is bad or slow when the problem is in their understanding. Lots of handwringing about Java's mismanagement and imminent doom. (Check the TIOBE site to get a perspective on that one.

"We all secretly believe we are right about everything and, by extension, we are all wrong." W. Storr, The Unpersuadables
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

bilznatch (15 views)
2015-08-04 11:03:17

SHC (38 views)
2015-08-01 03:58:20

Jesse (24 views)
2015-07-29 04:35:27

Riven (44 views)
2015-07-27 16:38:00

Riven (25 views)
2015-07-27 15:35:20

Riven (27 views)
2015-07-27 12:26:13

Riven (18 views)
2015-07-27 12:23:39

BurntPizza (40 views)
2015-07-25 00:14:37

BurntPizza (48 views)
2015-07-24 22:06:39

BurntPizza (33 views)
2015-07-24 06:06:53
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 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‑
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!