Question:
How to write a video game using Java?
anonymous
2011-05-03 13:38:41 UTC
I know the basics of Java (aka what they teach in AP Computer Science A), but I want to know how to add graphics, design maps and worlds for the characters in the game, and use keyboard and mouse input to make the characters move and interact with the world. If anyone could give me a rundown on that or point me to a tutorial site, that would be great.
Nine answers:
Mike C
2011-05-03 14:22:14 UTC
You in fact can make games in Java. The standard Java edition comes with several different graphics libraries. However, they are a little more complicated to use than the ones you are already familiar with. The Java API for the Java SE 1.6 lists all of the libraries that comes with the language.



Here is Oracle's site that shows you how to do 2-Dimensional graphics:

http://download.oracle.com/javase/tutorial/2d/index.html



I believe Java also supports 3-D graphics, but I have never messed with that. Good luck!



P.S. As someone who has made games and graphics in Java before, know that there is much more math involved than the typical application.
Miguel Ulloa
2011-05-03 14:24:00 UTC
Java is a general purpose language and although you can create anything with it it's not the most approachable for game design and development. There is plenty of outdated pages out there that will point you towards applets. I would not recommend using applets unless you want to limit yourself to Web browsers. Instead use JavaFX, which is a lot more modern technology similar to Flash. JavaFX is an software development kit to design and develop Rich Internet Applications or RIAs. I believe many IDEs support it, and provide an interface which will allow you to design your game by dragging and dropping GUI elements. As for IDE, I am bias towards eclipse, but it does not come with JavaFX plugin already installed. If you are new at this, I would instead recommend using Sun's Netbeans which already comes with a JavaFX Composer. You can create art in other applications and actually export them to Java FX. If you are new to Java, you do not need to buy a book. With yous a little bit of discipline you can teach yourself following the "New To Java" trail, tutorial. It is an awesome resource. I place it as my last reference.
Ken
2011-05-03 14:21:47 UTC
I disagree with nick as well, you definitely do not need to know c++ to code games in java. Here is a link of a fairly good tutorial for java gaming design.

http://www.thenewboston.com/?cat=35&pOpen=tutorial



It would be beneficial to understand java well to make programming games easier. Try checking out this tutorial: http://download.oracle.com/javase/tutorial/reallybigindex.html
Trust
2011-05-03 13:41:30 UTC
It's not going to happen with just java.



You're going to need source codes that will link the buttons to actions and all that.



You will also need to know C++ and a lot more languages. You'll need a lot of programs that will come out to en efficient amount of money.



To get started MPGH is a good website for a lot of source codes and tutorials.



Go to the forum.



There are a bunch of hack source codes and Graphic design tutorials and stuff on there.
anonymous
2014-09-25 02:11:09 UTC
The secret word of trading success is "organized". You can't be successful without a strategy, a plan and some kind of technological support. I use a software called "autobinary signals" that is helping me a lot. There are plenty of them on the market. I recommend this one because it's very easy to use (you don't have to be an expert or have special skills to make money with it).



Check it out here. It's worth it: http://tradingsignal.toptips.org
anonymous
2011-05-03 14:00:49 UTC
Try Googling for 'make a game in java'.

Also I'd like to contradict Nick's answer, you wouldn't need to know any other languages to write a game in Java, there are many games written in pure Java! (I think)

I know you can't reply but I just wanted to point that out :L
apodace
2016-11-19 12:29:25 UTC
maximum of stable video games are performed with openGL or DirectX libraries (i'm speaking approximately 3-D video games like CS source), and additionally you may locate bindings for many languages. i think of the ideal alternatives for languages could be C and C++. OpenGL is transportable accross maximum operative structures so it fairly is a sturdy option to benefit, yet programming in 3-D is particularly not hassle-free, you need to renowned algebra and calculus. in case you want to software video games you notice embedded in web content, you are able to learn flash and it fairly is particularly hassle-free to software one. stable success.
SCHIESS
2014-12-19 00:50:44 UTC
the best trading software http://tradingsolution.info

i have attended a lot of seminars, read counless books on forex trading and it all cost me thousands of dollars. the worst thing was i blew up my first account. after that i opened another account and the same thing happened again. i started to wonder why i couldn,t make any money in forex trading. at first i thought i knew everything about trading. finally i found that the main problem i have was i did not have the right mental in trading. as we know that psychology has great impact on our trading result. apart from psychology issue, there is another problem that we have to address. they are money management, market analysis, and entry/exit rules. to me money management is important in trading. i opened another account and start to trade profitably after i learnt from my past mistake. i don't trade emotionally anymore.

if you are serious about trading you need to address your weakness and try to fix it. no forex guru can make you Professional trader unless you want to learn from your mistake.
anonymous
2011-05-03 13:39:17 UTC
try google?


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...