2D graphics rendering in Java - java

I'm developing a game similar to pokemon (Yellow/Red/Blue) and I'm kind of lost on how to create an interactive map. Any thoughts on this would be helpful, I'm not even sure where to begin.

Try contacting Toni Epple and see if he will release an early version of his JavaFX Game Engine.
An article on using the framework as a TileEngine for Pokemon like games.
The engine makes use of the TMX tile map format and integrates JavaFX with Box2D for physics.
Here is SpaceInvaders in 175 LOC.
Even if you the engine is not yet available publicly, Toni's TileEngine blog entry should provide with some good background knowledge on how to get started.
Here is a YouTube link to the engine doing path finding on a TileMap and Toni has other demos in his YouTube account.
The Java Gaming forums provide excellent resources for Java game development and an active and helpful community.

You may want to learn to use JavaFX to develop your game.
Here is one tutorial, but there are many on the Internet:
http://carlfx.wordpress.com/2012/03/29/javafx-2-gametutorial-part-1/
I think that Swing is too difficult to work with compared to JavaFX, but it would be another option. For more info to help you decide you can look at this question: https://stackoverflow.com/questions/1318645/javafx-or-swing

Related

How designer-friendly is PlayN and are there libraries I should know about to be more designer friendly?

I'm on a small tactics game development team where we only have one programmer, and I am attempting to assist in programming. We are both learning PlayN (indie team) and I'm wondering if there are any visual or data driven tools, or libraries that can assist with a more data (HTML/XML/Spreadsheet) driven approach for major components (menu system, story/cutscene system (might also be used for unit encyclopedia and win/loss screens), the main game (tiles/units/UI/inventory)) so that we can have a rapid/iterative dev cycle.
Is PlayN the best engine for a multiplatform (key platform Android) game for devs getting into Android/mobile development or should we look at a different engine?
I have been doing my research - I already know a little bit about SimpleTMX and TriplePlay, but on the lookout for more tools to speed up development.
As far as I know, Google PlayN does not have any editor or something else. The first step would be to even write a level loader. I don't have any ideas wheater PlayN can load files like XML. It's just a library for code.
For creating 2d multiplatform games you should take a look at Gamemaker Studio. Just google it. It has lots of things like collisions and physics built in bit it's expensive. For 3d games you could take a look at Unreal Engine, Unity, Delta Engine or Cryengine but they're also very expensive.

Android Gaming Frameworks

I was considering creating a 2D game, and was wondering if there are any good open source or potentially paid (if not too expensive) frameworks for developing games.
Anything out there already?
Thanks.
AndEngine is for Android.
libgdx is desktop/android framework.
Check out Unity, it's rather nice, though the terms are a bit expensive.
I have heard good things about Corona.
http://www.anscamobile.com/
I have looked for a decent Android game framework and not been able to find many. The best I have found is the Cocos2D port for android but it is quite dated and you need to reference the IOS documents to learn how to use it and there is very little support.
If you want cocos2d for android the best solution is WiEngine

What is a good resource for help on codes to use for App?

I am a novice programmer when it comes to Java, I have Java:How To Program 7th Ed. that I am reading. My major is Computer Science so I have a little bit of knowledge about what yo do but as for the Application. I am trying to make a game app and was wandering what would be a good source to reference for various things inside of the app mainly the game play.
I'm not a very experienced programmer myself, but a general good idea is to read the Framework Topics in the Dev Guide on d.android.com completely. It gives a good view of what is possible within Android.
It's not a complete guide on how-to though, but it's good to see what Android is capable of before you start anything.
Plus indeed the online tutorials, but be careful as there are also a lot of tutorials for older versions of Android, which sometimes have deprecated stuff in them. And sometimes I found some tutorials which were simply wrong and had a lot of errors in them, so it's always a good idea to look at the comments on the article. But this is general internet knowledge ;)
Plus there are some books especially about Game development for Android.
(Beginning Android Games by Mario Zechner, for instance. I don't have the book but the title seems like something you need ;) )
If you want, you can also use adobe AIR to develop games for newer versions of Android.
Good luck.
As a beginner, you should not directly jump to game programming. You should first work on some Hello Wrold type programs. Go thorough the online tutorials. A lots of excellent material is available for free on internet. Best Luck.

Browser based 3D games with LWJGL in Java

I want to create a browser based 3D game using LWJGL with the Java programming language.
Can anyone please provide me with a small example of creating a window and a box in it?
LWJGL mainly uses a wiki, forum, and IRC community to educate eachother.
Feel free to drop by #lwjgl on irc.freenode.net - there are alot of useful people hanging out there, including the creators of LWJGL.
You can find the wiki here.
To answer your specific question, you probably want to read this wiki entry:
Basic Display
Another thing to note is that many of the famous NeHe tutorials have an LWJGL version of the source code listed at the bottom of the page. This basic tutorial may be what you are looking for: http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=02
There's also an older tutorial by Kevin glass that teaches you how to write a 2D game, but the last chapter focuses on rendering it using LWJGL: http://www.cokeandcode.com/info/tut2d-4.html
On a side note, if you ever think about doing 2D-only games, check out Slick (also written by Kevin Glass). It uses LWJGL in the backend but provides an API that is familiar to Java2D users.

JavaFX in the wild?

Does anybody know of any real-world web applications based on JavaFX? I'm an experienced Java programmer considering starting a website while I'm not at my day job. I don't have a lot of expertise on the UI side, so I'm looking for the best way to leverage my existing skills to create something that can provide an awesome RIA experience. Only trouble is, I don't know of any sites that are implemented using JavaFX, since it's so new. I'd like to see what it's capable of.
Found here quite an interesting stories. Top two listed below.
TweetBox
TweetFX
I think the best example of what JavaFX can do is in the examples on JavaFX.com.
However, it's still early in the JavaFX days thus you will be in pioneer days. Which means there are potential rich rewards to be had, but also - many unknowns.
What I think JavaFX "sweet-spots" are:
1 - If you either have Photoshop skills or are collaborating with someone who is - JavaFX provides the only real platform that lets you take Photoshop and generate a UI. Normally you mock-up in Photoshop and try your best to replicate, JavaFX can leverage it natively.
2 - You get all of the goodies from Java libraries "for free".
3 - Can leverage the UI skills to mobile (those that JavaFX will run on anyway).
However, if you are just wanting to have a Java GUI but would rather wait for more polish on JavaFX - I would recommend grabbing MigLayout & go with Swing on Java 6u10 or later.
There are a few JavaFX apps from the JavaFX Coding Challenge; my personal favorite is Music Explorer FX.
The new version of Indaba Music's software was written in JavaFX; the old version was in Flash.
In my personal opinion I would not use JavaFX for web. Simply because HTML5 is crushing everyone in sight. Now, I totally recomend the use of JavaFX for desktop applications.

Categories