This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
For a while I've been considering buying a book entitled 'Java 6 Game Development' (or something like that)but have continually put it off.(What the heck my coding skills will be better in a few months anyway)....then I got onto thinking about how these books usually teach you...I will probably just end up memorizing a bunch of classes for graphics/timers etc... but the most valuable things I learn will be gaming design patterns/mechanics etc...
So I was wondering if I would maybe get off to a stronger start by maybe studying threads/IO in depth before I attempt to get into a game dev book...
What are your thoughts on this??
Duran, I think it's just a question of preference. How do you like to learn? Myself, I like project driven learning, I dive into a project, and if I find I am weak in a certain required area, the project goes on hold and I go back and do the basic learning.
So, If you delve into a book on gamedev, and then you find you need more skills on threading, I see nothing wrong with putting the gamedev book down for a while, learning the material on threads and IO, then going back to gamedev.
It kind of depends on your goals. If you want to become a well rounded programmer as quickly as possible, then maybe this approach I describe is not the best, maybe your suggestion is best.
no hard and fast rules on this topic, IMO.
by the way, if you are really into gaming, check out gamedev.net if you haven't already.
Yes ,maybe you're approach is sensible..I think I will do that.
Joined: May 13, 2009
Duran Harris wrote:Yes ,maybe you're approach is sensible..I think I will do that.
Cool. I'm certainly not an expert in java, for me a project is just a vehicle to make learning interesting, So I am not afraid to code something knowing it is probably not the best, and I might end up discarding it, but it is the best based on my knowledge at the time. Then as I learn more I think of ways to improve what I have, so my projects often go through a few iterations. That's the way I like to do it, if it works for you too, then great.
Well I will take your advice considering that you can make a java chess program...I tried to make a swing minesweeper but I couldnt figure out how to make it run at a reasonable speed.
Joined: May 13, 2009
Do you mean the Minesweeper ran too fast? There are are certainly ways to slow things down, maybe by making appropriate use of thread methods, or Swing Timer, etc.
As for the chess program, well it's not rocket science, it took a long time to get here, and there's a long way to go. And I certainly had to put my theories on project learning to the test. It's a hobby in and of itself that will keep me going for a long time to come.
good luck and see you around. This Game Development forum needs more activity.
No it was too slow..it was checking almost every tile on the board when i clicked..But it's fixed now.Was interested in making a calculator but the whole postfix notation seems a little difficult for me to follow....
Joined: May 13, 2009
If you want web references, here are two introductory articles on animation threads and Applets that I found very helpful. I think Javaworld does a great job of explaining basic concepts, these articles got me over the hump with regards to threads and animation
Just keep in mind that the material is somewhat dated, and makes reference to some deprecated methods such as stop(), so they should be supplanted with current info perhaps from the Sun Java Tutorial and API docs. Also, the articles do not deal with Swing. Nonetheless they are a very good introduction and they make the more up to date, and also more complex, material on threads in the Sun Java Tutorial easier to understand, for me anyways.
Check out the O'Reily Head First series, they did a book on Java SE 5 or 6 and they have a really spastic and fun way of explaining things. They have lots of source examples too, so it's really entertaining and interesting.
Andy Ranangnai wrote:Check out the O'Reily Head First series, they did a book on Java SE 5 or 6 and they have a really spastic and fun way of explaining things. They have lots of source examples too, so it's really entertaining and interesting.
granted thats a good book on Java SE.
but i fail to see how its relevant in the current discussion.